Skip to content

Bootstrap: align with AAuth Protocol -11 and prepare -02 - #205

Merged
dickhardt merged 2 commits into
mainfrom
bootstrap-11-review
Sep 28, 2026
Merged

dickhardt merged 2 commits into
mainfrom
bootstrap-11-review

Conversation

@dickhardt

Copy link
Copy Markdown
Owner

Aligns AAuth Bootstrap Guidance with AAuth Protocol -11 and prepares it for submission as -02. Only draft-hardt-aauth-bootstrap.md changes.

Changes

  • Front matter: removed the fixed date so the submission is dated on the day it is submitted. No sibling-draft references to retarget; the protocol and signature-key references already point at datatracker.
  • Introduction: "how agents present that identity to PSes, resources, and ASes" now says where the agent token goes: always to the PS, to an AS through the PS, and to a resource only in agent identity and resource-managed access. -11 Keying Material; Why No Agent Identifier Reaches a Resource.
  • What Bootstrapping Is Not: cites Agent-Person Binding by section name.
  • Terminology, Agent token: dropped the claim list, which omitted dwk, iat, and jti. ps is carried whenever the agent has a PS, not "optionally". -11 Agent Governance; Agent Token Structure.
  • Self-Hosted Agents: new paragraph. A resource that calls downstream must be its own AP, with aauth-agent.json on its own origin and the same issuer as its resource metadata. Its agent token is not bound to one person. -11 Intermediary Agent Identity.
  • Many Agents, One Operator: the AP key "never signs an HTTP message to a PS" was wrong. It also signs the AP's revocations to the PS under the jwks_uri scheme. -11 Keying Material; Token Revocation.
  • Agent Identifier Strategies: the local part must meet the protocol's character and length rules, which now allow uppercase and reserve +. A base64url thumbprint fits as it stands. Comparison is exact, with no case-folding. -11 Agent Identifiers (Agent identifier local part: allow uppercase letters #164).
  • Refresh Patterns: the agent refreshes when five minutes remain, top down. A lifetime must leave room for that margin, so the high-assurance example changes from 5–15 minutes to 15–30. -11 Expiry and the Refresh Margin.
  • Two-Key Refresh: the naming JWT carries the ephemeral key in cnf.jwk, which the jkt-jwt scheme requires. It no longer says "typically". HTTP Signature Keys -09, jkt-jwt.
  • Key Rotation vs Token Refresh: the agent replaces its person tokens and auth tokens after every refresh in either pattern, so a new ephemeral key adds no work. -11 Person Token Structure and Auth Token Structure exp caps; Re-authorization.
  • Sub-Agent Tokens: a sub-agent token's iss equals its parent's. That is stated in the section intro, in hosted-AP step 4, and as the reason only the parent's AP can issue the token. -11 Sub-Agent Identity.
  • Sub-Agent Tokens: "later present the sub-agent's resource token with its own" left out presented_token. The sentence now cites Parent-Mediated Authorization instead of restating it. Hosted-AP step 3 cites Agent Token Verification.
  • Trust in the AP: AP-attested claims reach the PS and the AS. A resource sees them only in agent identity and resource-managed access. -11 Why No Agent Identifier Reaches a Resource.
  • Ephemeral Key Compromise: the one-lifetime bound also covers the person tokens and auth tokens obtained with the key, because neither can outlive the agent token. -11 Person Token Structure; Auth Token Structure.
  • Durable Key Compromise: revoking the enrollment does not end the current agent token. The AP revokes it at the PS, which then revokes what it issued to that sub. A resource that accepted the agent token directly is not told. -11 Token Revocation, Revocation Cascade.
  • Identifier Stability: "the same value at every PS / colluding PSes" did not fit -11, where an agent has one PS. The text now says the sub reaches the PS, the AS, and resources in two modes, and resources can correlate it. In person-token modes they see a directed identifier. -11 Directed Identifiers.
  • AP Visibility: the AP's view includes sub-agent issuance. A PS reports nothing of a revocation back to the AP. -11 Why a PS Reports Nothing to the Agent Provider.
  • Document History: -02 bullets for each change above.

Every protocol citation names a heading that exists in -11. mmark and xml2rfc run with no warnings.

Needs a decision

  1. hwk at the AP versus -11 Keying Material. -11 says "AAuth does not use the hwk scheme" and lists the agent token as presented to "the PS and the AP always". Bootstrap uses hwk for web enrollment step 3 and for Single-Key Refresh. At enrollment no agent token exists yet, so "always" cannot hold literally. One option is to scope the -11 sentence to protocol requests. The other is to have Single-Key Refresh present the current agent token under the jwt scheme, which works inside the refresh margin.
  2. Body coverage at AP endpoints. -11 requires content-digest and content-type coverage on body requests to a PS, an AS, or a revocation endpoint. AP endpoints are not in that list. Bootstrap's refresh example POSTs a JSON body without covering it. The hosted sub-agent request carries the sub-agent's public key in its body. Should bootstrap recommend the same coverage? That would apply the -11 rule by analogy.
  3. Two-key rotation and pending grants (Pending grant lifetime, and key rotation across a pending grant #108). The ephemeral key changes at every refresh. A deferred request bound to the old key meets the case Pending grant lifetime, and key rotation across a pending grant #108 holds for -12. Not changed here.
  4. Existing internal inconsistency, not from -11. Per-Install Identity says the AP has "no user-account system, no (user, durable_jkt) mappings". The web and mobile sketches record (ap_user, durable_jkt) after the user logs in to the AP.

In the protocol spec

  • Introduction, HTTP Clients Need Their Own Identity: "An agent identifier ... is bound to a signing key, published at a well-known URL". This invites the reading that Bootstrap's Many Agents, One Operator corrects: only the AP's key is published, and agent keys are not.
  • Design Rationale, Why Agents Are Under an Agent Provider: "AAuth therefore requires every agent to hold a token issued by a distinct AP, not self-signed" and "An agent that is also its own AP would bypass this layer". This conflicts with Roles (a self-hosted agent is its own AP) and with Intermediary Agent Identity (an intermediary MUST be its own AP).

🤖 Generated with Claude Code

https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN

Where the agent token goes, ps when the agent has a PS, intermediaries
as their own AP, the AP key signing revocations under jwks_uri, the
agent identifier rules, the five-minute refresh margin, sub-agent iss,
revocation of a compromised agent's token at the PS, and privacy of the
agent sub. Removed the fixed date for submission.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
A request with a body to an AP endpoint should cover content-digest and
content-type, following -11 Covered Components. The refresh example shows
it, and a new example shows the hosted sub-agent request. Per-Install
Identity no longer claims the AP keeps no account mappings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
@dickhardt

Copy link
Copy Markdown
Owner Author

Applied Dick's decisions in cc75f8e:

  • Body coverage at AP endpoints: a request with a body to an AP endpoint (enrollment, refresh, or sub-agent issuance) should cover content-digest and content-type, following -11 Covered Components. The recommendation sits after the refresh example, and the example now shows Content-Digest and both components in Signature-Input. Hosted sub-agent step 2 says the body carries the sub-agent's public key, and a new example request follows the steps. Its path and member names are marked illustrative.
  • Per-Install Identity: the AP may know which of its accounts enrolled an install, but it issues each install its own identifier and does not join installs into one agent. The "no user-account system, no (user, durable_jkt) mappings" claim is gone, and the enrollment sketches are unchanged.
  • Document History: -02 bullets for both.
  • No change to the hwk text or for Pending grant lifetime, and key rotation across a pending grant #108.

The build is clean, with no mmark or xml2rfc warnings.

@dickhardt
dickhardt merged commit 4550f76 into main Sep 28, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant