Repository navigation
Description
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 claimemail(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:373passesrequested_by_email=requester.emailto 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=trueascmapi-automationwithonBehalfOf: cmapi.requester: the plan'snamespace.yamlholdscmapi.net/requested-by-user: cmapi.requesterandcmapi.net/requested-by: cmapi.requester@ephico2real.com. It holds no employee ID (10102), no given or family name, nosub.- The same as
cmapi.requesteritself (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