Skip to content

docs/14 says the requester's email is kept in the database only; the plan puts it in Git as cmapi.net/requested-by #698

Backlog

Description

@ephico2real2

Part of #14

What is wrong

docs/14-authorization.md, "Who the request is recorded under", says the requester's email is kept in the database only:

  • l.281: "| email | The claim email (claims.py:60) | The database |"
  • l.285: "The record is Identity.record (claims.py:43-48). It is in the database only, and never in Git"

The code and the design put the email in Git too, as the Namespace annotation cmapi.net/requested-by:

  • cmapi/src/cmapi/core/identity/claims.py:3-5: "username and email go on the Namespace (cmapi.net/requested-by-user, cmapi.net/requested-by); names and employee ID stay in the database with the request."
  • cmapi/src/cmapi/core/pipeline.py:373 passes requested_by_email=requester.email to the renderer (core/render/manifests.py:23, :54).
  • docs/01 l.311 (cmapi.net/requested-by: ola@ephico2real.com # email from the token) and l.321 ("Employee ID and names never reach Git or the cluster"); docs/02 l.1020 (cmapi.net/requested-by | Annotation | Requester's email | Renderer).

So the behaviour is the designed one, and docs/14 is wrong: a reader of docs/14 (the authorization reference) is told the email never reaches Git. The table row for the username (l.280) names the label; the email row does not name the annotation.

Where it was seen

OB1 run 42, CRC, main cf1c0f4e62, 2026-11-26, read-only dry runs (workbench/cmapi/ob1-run42/logs/c42-obo14/, git-files-identity.txt):

  • POST /api/v1/clusters/CRC/namespaces?dryRun=true as cmapi-automation with onBehalfOf: cmapi.requester: the plan's namespace.yaml holds cmapi.net/requested-by-user: cmapi.requester and cmapi.net/requested-by: cmapi.requester@ephico2real.com. It holds no employee ID (10102), no given or family name, no sub.
  • The same as cmapi.requester itself (logs/c42-surr353/2-valid-pair.body): the same annotation.

How to prove the fix

A docs-only change: l.281 says "The database, and the annotation cmapi.net/requested-by of the namespace (docs/02, Metadata keys)", and l.285 says that only the email and the username of the record reach Git. python3 scripts/doc-citations.py --check passes. No code change.

Research mandate

Before the edit, read docs/01 "Requester identity", docs/02 "Metadata keys" and claims.py in full, and check whether any other reference doc (docs/15, docs/16) repeats "database only" for the email. Quote the sentence each change rests on.

Triage (2026-11-25): Low, documentation only: Backlog.

Activity

  1. added
    bug
    documentation
    sev:low
    Backlog
    on Nov 26, 2026
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

    Backlogbugdocumentationsev:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions