Skip to content

docs(agent-identity): set act.iss to the agent trust domain and make agent SPIFFE IDs opaque - #2834

Merged
ChrisJBurns merged 5 commits into
mainfrom
docs/agent-identity-act-iss-sub
Nov 18, 2026
Merged

ChrisJBurns merged 5 commits into
mainfrom
docs/agent-identity-act-iss-sub

Conversation

@ChrisJBurns

@ChrisJBurns ChrisJBurns commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Why: ToolHive v0.66.0 refuses its own issuer as the act.iss of an actor-token validator, so the design's act.iss = AS-1 can't be configured. Register Mecatl's actor-token validator at hosted AS-1 #2654 registers Mecatl's validator at hosted AS-1 and needs the value settled first. This records what was agreed on fix(identitybroker): map ToolHive v0.66.0 actor reasons from AS-1 #2823.
  • act.iss and act.sub (credentials-and-lifecycle.md step (7), implementation.md, mcp-authorization.md):
    • act.iss is the agent trust domain, spiffe://<trust domain>.
    • act.sub is the instance's SPIFFE ID, spiffe://<trust domain>/agent/<ag_ identifier>, so it sits inside the namespace act.iss names. ToolHive says a later release may refuse an agent ID outside it.
    • AS-2 lists the trust domain among the actor issuers it accepts from AS-1.
  • Opaque agent SPIFFE IDs (step (4), "Instance identity and creation ancestry", agent-definitions.md, implementation.md "SPIFFE identifier construction", audit.md):
    • The SVID's sub is that same opaque SPIFFE ID, so act.sub is the SVID's own subject. This is the shape the actor-profile draft gives for a JWT-SVID actor token.
    • Definition, incarnation, and creation ancestry move out of the ID into the broker's registry, which keys each instance by its incarnation. Registration check 7 compares an earlier registration of the same incarnation.
    • The name charset and the caps (63 bytes per name, 8 child levels) stay as registry limits; the SPIFFE URI-length reasoning goes.
  • The ID-JAG, V, and SVID examples, the test bullets, and the ToolHive work-list rows match. The act row goes from "Partly" to "Yes".

Stacked on #2823.

Effect on open tickets

None of these has started; each needs a small edit once this merges.

Approval keying (merged in from #2835)

  • Trust domain names aren't unique, so the external-mode approval in step (8) check 9 keys on the ID-JAG's iss (AS-1, the source issuer) plus act.iss (the trust domain). The approval record in mcp-gateway-modes.md, the M2 row, and the external-approval test bullet match.
  • Delegated access: user approval at an external gateway toolhive#7158's approval record has no source issuer yet; that's ToolHive's to change.

Issue relationship

Relates to #2654

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe):

Test plan

Baseline checks

  • Linting (task lint): docs only
  • Fast offline test suite (task test): docs only
  • Pre-review race suite (task test:race): docs only
  • Offline demo (go run ./cmd/mecademo): not affected
  • Markdown changed: task docs:check (strict): 236 documents, 0 broken links or anchors, 0 orphans. Full task docs not run locally (needs buf for the protobuf reference, unchanged here); CI runs it.
  • User docs/user-facing behavior changed: site build (task site:build): not applicable
  • Guarded engine API affected: compatibility check (task api:check): not applicable
  • Intentional engine API change: task api:update + engine/CHANGELOG.md: not applicable

User-facing change

None. Design docs only.

@ChrisJBurns ChrisJBurns changed the title docs(agent-identity): set act.iss to the agent trust domain docs(agent-identity): set act.iss to the agent trust domain and make agent SPIFFE IDs opaque Nov 17, 2026
Base automatically changed from fix/identitybroker-as1-actor-reasons to main November 17, 2026 17:36
@ChrisJBurns
ChrisJBurns force-pushed the docs/agent-identity-act-iss-sub branch from 6cd452b to f04dbd5 Compare November 17, 2026 17:39
@ChrisJBurns
ChrisJBurns force-pushed the docs/agent-identity-act-iss-sub branch from 37b3a3a to b2eb5f6 Compare November 17, 2026 22:19

@jhrozek jhrozek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. The act.iss / opaque SPIFFE ID change is consistent across the docs, and the audit-store follow-up covers the investigator mapping.

Two nits, neither blocking:

  • mcp-gateway-modes.md:98 (not a changed line, so no inline comment): the AS-1 integration requirement still says the ID-JAG's act "holds the actor's opaque ag_ identifier". It now holds the SPIFFE ID. Maybe: "returns an ID-JAG whose single-level act holds the actor's opaque SPIFFE ID, with act.iss set to the agent trust domain."
  • implementation.md:22: see the inline comment.

ChrisJBurns and others added 5 commits November 18, 2026 14:42
ToolHive v0.66.0 refuses its own issuer as an actor validator's act.iss.
act.iss becomes the agent trust domain, and act.sub a SPIFFE ID in it
that names the instance only by its ag_ identifier. AS-2 accepts the
trust domain as an actor issuer from AS-1.

Co-authored-by: Mecatl <[email protected]>
An agent instance's SPIFFE ID becomes spiffe://<trust domain>/agent/<ag_>,
so act.sub is the SVID's own subject. Definition, incarnation, and
creation ancestry stay in the broker's registry, which keys each instance
by its incarnation. The name and depth caps stay as registry limits.

Co-authored-by: Mecatl <[email protected]>
With opaque agent SPIFFE IDs, investigators trace an agent to its
parent through the registration events, which are durable, not the
broker's live registry. The registration event names the instance's
ag_ identifier and SPIFFE ID so a gateway record joins to it.

Co-authored-by: Mecatl <[email protected]>
…version

The AS-1 integration requirement still said act holds the opaque ag_
identifier; it holds the agent's SPIFFE ID, with act.iss the trust
domain. The version-segment note now refers to the ID, not to the
definition names, which no longer appear in it.

Co-authored-by: Mecatl <[email protected]>
@ChrisJBurns
ChrisJBurns force-pushed the docs/agent-identity-act-iss-sub branch from 2bdc82c to 38e9010 Compare November 18, 2026 14:42
@ChrisJBurns
ChrisJBurns merged commit e2ed557 into main Nov 18, 2026
37 checks passed
@ChrisJBurns
ChrisJBurns deleted the docs/agent-identity-act-iss-sub branch November 18, 2026 14:44
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.

2 participants