Skip to content

docs: record that a call made for a user names who acts and how the management API takes bearers - #3370

Merged
fforootd merged 4 commits into
mainfrom
claude/nextgen-strategy-positioning-59c688
Nov 30, 2026
Merged

fforootd merged 4 commits into
mainfrom
claude/nextgen-strategy-positioning-59c688

Conversation

@fforootd

@fforootd fforootd commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Context

Summary

Records three decisions of 2026-11-25 in the documents that own them. Docs only; no code, contract or generated file changes.

  • Delegation (ADR 082 §7, §8 and §11; ADR 033 §3 and §5; events-for-people §4; glossary). The rule is stated once in ADR 082 §7, because it holds for every project's tokens, a customer's and the platform project's alike; ADR 033 keeps only what the management API does with a delegated call. Every call made for a user names who acts: a token issued for a user on behalf of another principal carries act, and Zitadel issues no token that hides its actor. A delegation (a user's consent to a client, a token exchange, or an operator's act-as that the user did not grant) has one delegation_id that the consent record, the tokens and every event share. Consent is its own record per user, client and API; it is not an authz_assignments row. There is no impersonation.
  • Platform bearer (ADR 036 amendment, ADR 037 note). The management API accepts access tokens from the platform project's issuer whose audience is the management API, checks the session on every call and admits exactly the operations a console session may call. A session cookie is accepted only from a browser on the issuer's own origin; every other caller presents a bearer. Adds the callers table and personal access tokens as a bridge on four conditions.
  • Identity model, application half accepted. An agent is an application and a client can act as itself or for a user; there is no agent kind. The authz principal type agent becomes client; the event actor enums drop agent and keep service; a personal access token's actor is its owner. Every principal client has an owner. An application may carry an agent label. An agent that must be a user gets a linked user (answers open question 6). "Impersonate" is removed as a mode, a right and a role; open question 2 is narrowed to the act-as switch and person-only actions.

Validation

  • node scripts/check-adrs-index.mjs → adr index: ok (89 records)
  • node scripts/check-pr-title.mjs --title "docs: record that a call made for a user names who acts and how the management API takes bearers" → ok
  • Every relative link and anchor in the nine changed files was checked with a script: none broken.
  • Not run: the repo defines no markdown lint for these files.

Release notes / changeset

  • No changeset required — no shipped behavior changed.

Notes

  • No new ADR number: the platform bearer is an amendment to ADR 036, which already lists the credential per plane and deferred operator PATs.
  • The code and the OpenAPI enums still list agent; the documents say so where they describe the wire. The rename is separate work.
  • Open for a customer's app (ADR 034, new open questions; ADR 082, question 8): ADR 034 binds users and teams to apps and says nothing about clients or delegated calls. Recorded as open: whether a client can hold an app grant; which permission claims a token carries when a client acts for a user (the user's grants as they are, or narrowed by the consented scopes); and whether an access token carries the delegation_id as a claim, so that an API outside Zitadel can record it.
  • Open question recorded, not settled (ADR 082, question 7): whether a first-hop token that a client obtains itself with the authorization code grant carries act beside client_id, or act appears only when a different principal presents the user.
  • One conflict left for review: the identity model lets a client hold personal access tokens in a few places, which contradicts "never a client's identity". Those passages are unchanged; a note says the ADR 036 conditions win.
  • Follows from the decisions but is not decided, so it is not in the documents: the delegation_type values for consent and act-as; what grantor holds for an operator's act-as and who may authorize one; how personal access tokens are stored and which actor kind a team-owned one has; what a v4 machine user's tokens become on import; how zitadel login gets its token (an OAuth public client or the claim handoff).
  • Other documents still say agent or treat impersonation as a non-goal (permission-storage.md, ADRs 053, 054 and 075); they are left alone.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Nov 30, 2026 9:22pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ No Changeset found

Latest commit: 59257a7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@fforootd
fforootd marked this pull request as ready for review November 30, 2026 21:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-30T21:16:02.285583Z 3e906e7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fforootd
fforootd enabled auto-merge November 30, 2026 21:16
@fforootd
fforootd added this pull request to the merge queue Nov 30, 2026
@fforootd
fforootd removed this pull request from the merge queue due to a manual request Nov 30, 2026
Main's docs now make llms-full.txt 650,605 characters on a preview host,
over the 650,000 cap, so every PR's docs deployment check fails. Operations
leaking back in would still multiply the size about twentyfold.
@fforootd
fforootd enabled auto-merge November 30, 2026 21:21
@fforootd
fforootd added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit b12371d Nov 30, 2026
17 checks passed
@fforootd
fforootd deleted the claude/nextgen-strategy-positioning-59c688 branch November 30, 2026 21:28
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Nov 30, 2026

This branch was successfully deployed

1 active deployment
Preview — 59257a7a Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant