Skip to content

LDAP groups app-cmapi-rbac-<role> and cmapi.<role> test users, before the first import #110

Closed
13 of 13 issues completed

Description

@ephico2real2

Part of #14

Related: #94

Why

The owner's decision, 2026-11-06: cmapi's LDAP groups are named app-cmapi-rbac-<role>, and a dedicated GroupSync can come later if needed. The name must settle before the one-shot realm import.

What is wrong: today's ten cmapi-* groups do not say which role each grants (cmapi-qa-leads is an approver), they borrow real people as example members, and the realm reads all 11 real people in ou=People.

The change

  • Ten groups: app-cmapi-rbac- plus viewer, onboarding, requester, approver-prod, approver-qa, approver-uat, approver-platform, operator, admin, auditor. No consumer filter matches this prefix (GroupSync app-ocp-rbac-* and bda-rbac-*, realm corp app-ocp-rbac-ocp-*), read on CRC 2026-11-06.
  • 13 test users cmapi.<role>, outside the app-ssb-autobahnusers gate, so OpenShift's LDAP login and corp cannot see them. Passwords only as hashes in LDAP and in Secret cmapi-ldap-test-users.
  • CRC's realm reads only (uid=cmapi.*).
  • The ten old cmapi-* groups removed by exact name on the CRC run.

Acceptance criteria

  • Each test user's token groups and roles match the table, on real Keycloak with an LDAP stand-in, shown by deploy/tests/realm-test.py
  • The same holds on CRC at the run, shown by deploy/crc-proof.sh on CRC, which signs in each test user
  • cmapi.noaccess gets 403, shown by deploy/crc-proof.sh on CRC
  • A hash of every other LDAP entry is unchanged, shown by deploy/tests/ldap-identities-test.sh

Tasks

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Review ruled
  • Merged with its proof
  • Released on the default branch

Class

INV. The role groups, the test users and their tests are new.

Source

Proof: each test user's token groups and roles match the table, on real Keycloak with an LDAP stand-in in realm-test.py, and on CRC at the run. cmapi.noaccess gets 403. A hash of every other LDAP entry is unchanged.

Nothing is written to CRC or LDAP (the comment of 2026-11-06).

Sub-issues

Sub-issues

13 of 13 Issues completed
Loading 13 sub-issues

Activity

  1. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    In PR #112. Codex reviewed it; reviewer 2 is checking. Nothing written to CRC or LDAP.

  2. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    Defects found under this issue: #115, #116, #117. All are on PR #112, in review.

  3. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    Defect found under this issue: #118, CI's manifests job on PR #112.

  4. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    Defects found by reviewer 2 under this issue: #119, #120, #121, #122, #123, #124, #125, #126.

  5. added
    In-Progress
    on Nov 13, 2026
  6. added
    class:INV
    status:open
    task
    on Nov 13, 2026
  7. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    Work tag: In-Progress. Draft PR #112 (branch ldap-rbac-names, head ecc5cb3) closes this issue. Its commits are 83d9a60, ab5ac7b, 6729598 and be66382 on that branch. The pull request is not merged, and the branch is not the default branch. Nothing is applied to CRC or LDAP. 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

    In-Progressclass:INVstatus:opentask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions