Skip to content

docs(agent-identity): record AS-1 in-process calls, AS-2's anonymous routes, and distinct issuers - #2773

Merged
ChrisJBurns merged 1 commit into
mainfrom
docs/agent-identity-as2-routes
Nov 12, 2026
Merged

ChrisJBurns merged 1 commit into
mainfrom
docs/agent-identity-as2-routes

Conversation

@ChrisJBurns

Copy link
Copy Markdown
Contributor

Design-only companion to #2744. Review them side by side: this PR records the end-state rules that #2744's review surfaced, and #2744 implements its part of them. Shortcuts, and the tickets that remove them, stay in the issues, not the design.

What

  • implementation.md, "Modulith constraints": "No in-process shortcut may skip a check" now also covers the broker's own calls to AS-1. AS-1 is a broker module, so the broker reaches it in process in every deployment. Those calls go through the handler AS-1 serves on its network routes, with the same checks and limits, and AS-1 decides what it exposes in process.
  • threat-model.md, "Protections in both deployments": new "Anonymous traffic at the embedded AS-2" item. The embedded gateway's authorization server is reachable before sign-in, like AS-1, so it gets the same global rate limits (token endpoint and the rest in separate buckets) and query and body size caps.
  • credentials-and-lifecycle.md, step (7): new "Configured AS-2 issuers" rule. No AS-2 issuer configured for mecatl may name the same server as AS-1's issuer, because mecatl authenticates to both with one key. Mecatl refuses such a configuration at startup.

Left out on purpose

These are shortcuts or undecided implementation details, tracked in issues:

Related

…routes, and distinct issuers

- The broker's own in-process calls to AS-1 go through the handler AS-1
  serves on its network routes, with the same checks and limits.
- The embedded AS-2's anonymous routes are rate-limited and size-capped
  like AS-1's.
- No AS-2 issuer configured for mecatl may name the same server as AS-1's
  issuer, since mecatl authenticates to both with one key.

Co-authored-by: Mecatl <[email protected]>
@ChrisJBurns
ChrisJBurns merged commit f9056e7 into main Nov 12, 2026
37 checks passed
@ChrisJBurns
ChrisJBurns deleted the docs/agent-identity-as2-routes branch November 12, 2026 22:30
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Nov 18, 2026
2 tasks
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