Repository navigation
test(e2e): prove A-to-B auth, deny codes, and token isolation - #119
Merged
Merged
Conversation
Agent A calls agent B through a2a_call; a stand-in supervisor injects a test-issuer token. The test asserts B logs the verified identity, every deny code reaches A's tool result, and the raw token is absent from B's provider input, logs, and session store. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One in-process test proving the Phase 2 definition of done:
newServeHandlerwith inbound auth on.httputil.ReverseProxy) injects a test-issuer token per request.buildRuntimeand calls B througha2a_call.Asserted:
[completed] B says hi.sub=aliceand the fullazpSPIFFE ID.peer engineering-analyst: <status> <code>:401 token_expired,403 invalid_audience,403 insufficient_scope,403 caller_not_allowed,401 missing_token,503 jwks_unavailable.Test plan
No earlier-WP defects were exposed; the test passed against the merged code.