Skip to content

SEC-01: Existing LDAP server: the admin passwords sit in a ConfigMap #35

Open

Description

@ephico2real2

Part of #14

What is wrong: On the existing LDAP server in namespace ldap-testing, ConfigMap ldap-config holds LDAP_ADMIN_PASSWORD, LDAP_CONFIG_PASSWORD and LDAP_READONLY_USER_PASSWORD, and the Deployment reads them with envFrom. Anyone who can read ConfigMaps in that namespace can read the directory admin password, and it is also in kubectl.kubernetes.io/last-applied-configuration where that was applied. The usual practice is a Secret, with RBAC around it.

Where: ConfigMap ldap-config in namespace ldap-testing on CRC. No file in this repository defines it, so there is no file:line. The file that defines it is not in ~/gitRepos, so the fix belongs with that source.

How to prove it: List the keys of the ConfigMap, and print no value: oc get configmap ldap-config -n ldap-testing -o json | jq '.data | keys'. The three password keys must be absent after the fix.

Measured or inferred: Measured on CRC when filed. Values were not printed while finding this. This sweep did not read the cluster again.

Severity: High. If a person can read ConfigMaps in ldap-testing, that person gets the admin password of the shared directory.

What must hold after the fix: The three passwords are in a Secret, and the ConfigMap holds none of them. RBAC limits who can read that Secret.

Research: Not done yet.

Solution: Not written. This is not cmapi's server, and other projects share it, so this session has not changed it. The owner decides the change (HANDOVER-AND-RESUME.md, "Steps only the owner can take", Wave 8).

Class: TDT. The setup works today, but the passwords in a ConfigMap are an earlier shortcut.

Activity

  1. added
    bug
    on Nov 5, 2026
  2. added
    Blocked
    class:TDT
    sev:high
    status:owner-action
    on Nov 13, 2026
  3. changed the title [-]Existing LDAP server: the admin passwords sit in a ConfigMap[/-] [+]SEC-01: Existing LDAP server: the admin passwords sit in a ConfigMap[/+] on Nov 13, 2026
  4. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    Work tag: Blocked. The blocker is the owner's decision on the shared LDAP server (HANDOVER-AND-RESUME.md, "Steps only the owner can take", Wave 8). The server is not cmapi's, and no file in this repository defines it. To unblock: the owner decides who moves the three passwords to a Secret. Read from gh and git at 2026-11-13T09:18Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Blockedbugclass:TDTsev:highstatus:owner-action

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions