Repository navigation
Description
Background
In call chaining (§Call Chaining / §Multi-Hop), a resource acts as an agent to access a downstream resource. The spec explicitly preserves the act delegation chain across the hop (Upstream Token Verification step 4: "nesting the upstream token's act claim inside a new act object… preserves the complete delegation chain") and uses the upstream iss for routing/trust. But it is silent on sub across a domain boundary.
The gap
sub in AAuth is directed and namespaced by issuer:
- "the same
subvalue from a different PS is a different subject" (§PS-asserted access) - the PS provides "a directed
subidentifier for the resource" (§AS Response,requirement=claims)
When chaining crosses domains, the downstream auth token is issued by a different iss and should carry a different directed sub for the same user. The chaining narrative never states this, nor how the downstream issuer obtains the right sub. A reader is left to infer it from the directed-sub rules in other sections.
Surfaced during review of #23 (sub-agents), via this worked example: across booking@domain1 → payments@domain2, the act chain carries through (agent identifiers are global) but sub must be re-expressed as domain-2's directed identifier for the same user.
What needs discussion
-
State the behavior: across a domain boundary the downstream token carries a new
iss(the downstream issuer) and a new directedsubfor the same user, while theactchain is preserved. -
The mapping problem — how does one
(iss, sub)map to another(iss, sub)for the same human?- The PS is the cross-domain identity anchor (it knows
alice@domain1 ≡ alice@domain2). By what mechanism does it perform/assert the mapping? - Governed path (mission present): the PS brokers both hops and can supply the directed
subfor the downstream resource via the claims flow. Spell this out. - Ungoverned four-party path (no mission,
issis an AS): there is no PS in the loop — the downstream AS receives only theupstream_token+ the intermediary's agent token. How does it determine the user's directedsubin its own domain? Does it get a usersubat all, or only the agentactchain (i.e., agent-identity access with no user subject)?
- The PS is the cross-domain identity anchor (it knows
-
Privacy: directed/pairwise
submeans resources cannot correlate the user across domains. Confirm this property holds through chains and that nothing in the upstream token leaks a correlatable identifier downstream. -
Should the upstream
subever travel downstream at all, or only the downstream-issuer-asserted directedsub?
Related
- Add sub-agents — single-level depth, parent-mediated authorization #23 (sub-agents) — where this surfaced.
Activity
kenhuangus commentedon Jul 17, 2026
Implementation evidence from a four-party token runtime and delegation conformance pass:
We hit this gap as a concrete trust-boundary problem, not only a naming question. The safe behavior we could implement without inventing a cross-domain identity mapping was:
audnames an AS, the PS performs federation with that AS;act.agentchain;subis not copied into a token issued by a different issuer unless that issuer has an independently verified mapping for the person.Copying the upstream
subis unsafe because(iss, sub)is the identity tuple. Treating the oldsubas meaningful under the newisscan misidentify a person and defeats pairwise subject separation.A minimal normative rule that would unblock interoperable implementations:
subinto its own token namespace.subonly when it obtained or derived a downstream-directed identifier through an authenticated PS/claims federation step.suband carries only the verified agent/delegation facts (agent,act).actchain remains global-agent identity provenance and MUST NOT carry a correlatable user identifier.Suggested vectors:
subonly when issuer semantics are unchanged;sub;sub, preserveact.agent;subas downstream value: reject or ignore, never copy.This gives a fail-closed answer for the issue's ungoverned four-party case while leaving the actual
(iss, sub)mapping mechanism to the authenticated PS/claims flow.Acknowledge issue and pull request contributors
Forbid copying a directed sub across a delegation chain