Loading
docs(adr): reject composite identities in ADR-020
Summary
- Problem: Rails sets a
gitlab.identitiesclaim when one party acts for another, such as an agent acting for a user. The othergitlabclaims then describe only the acting party. ADR-020 does not mention the claim, and the Artifact Registry's verifier reads only the top-level claims. So if a composite token ever carried the Artifact Registry's audience, the verifier would authorize the acting party alone and never check the user it acts for. - Decision: the Artifact Registry rejects a composite identity. A token whose
gitlab.identitiesnames any party, or whose claim cannot be read, is rejected. - Change: constraint 11 in "What must always hold", and a revisit entry in "Future work / open debates".
Checklist
- Reach: every end-user request authenticated by token exchange.
- Least sure: whether to reject composite identities or support them. Rejecting is the safe default until a feature needs an agent to act for a user here.
- Agreement: the Engineering Lead or a Staff+ cover, as for any ADR. Grzegorz Bizon raised the gap in gitlab-org/auth/iam!985 (merged).
- Durability: revisit when a feature needs composite identities in the Artifact Registry.
Follow-up: the verifier does not enforce this yet. It needs the pkg/userauth bump past gitlab-org/auth/iam!985 (merged) and a check that Identities is empty.
Related to gitlab-org/auth/iam!985 (merged)
Edited by Cameron Swords