Skip to content

feat(gateway): propagate authenticated principal context - #207

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/gateway-principal-context
Sep 3, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/gateway-principal-context

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

Summary

  • add a typed host-authenticated transport/principal request context
  • require Gateway providers to receive the context in both authorization and invocation hooks
  • bind CapabilityGatewayHttpConfig::for_principal to the verified bearer credential and propagate it through rmcp HTTP sessions
  • add fail-closed principal policy and no-leakage tests plus bilingual architecture/roadmap documentation

Validation

  • cargo fmt --all
  • cargo test -p a3s-use capability_gateway --all-features --locked
  • cargo test -p a3s-use --no-default-features --features mcp capability_gateway --locked
  • cargo clippy -p a3s-use --all-targets --all-features --locked -- -D warnings

This remains a contract/embedding increment: multi-principal token registries, live invocation-reference resolution, CLI wiring, and TLS termination remain separate work.

@ZhiXiao-Lin
ZhiXiao-Lin force-pushed the feat/gateway-principal-context branch from 9d48c9e to 8a903b6 Compare September 3, 2026 06:05
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 133b7a8 into main Sep 3, 2026
9 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/gateway-principal-context branch September 3, 2026 07:51
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