Repository navigation
feat: wire inbound auth into serve (WP10) - #117
Merged
Merged
Conversation
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
…ions Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
|
Caution Review failedThe pull request is closed. |
Move the identity log to a mux-level handler so /v1 requests are covered, and close resources when middleware construction fails. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
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
inbound_authblock toagent-config.yamlwith validation: enabling it withoutissuer,audience, orjwks_urlfails startup with the key name.inboundauth.Middleware; only/.well-known/agent-card.jsonand/healthare exempt. The entire/v1tree is protected, includingGET /v1/models.service.host: loopback when inbound auth is enabled and no host is set,0.0.0.0otherwise; an explicit host always wins. The health server uses the same resolved host.sub|azp|x-session-id(raw ID truncated to 64 chars first) and logs verifiedsub/azp/scope/audper A2A request. The raw token is never logged.inbound auth disabledwhen the block is absent.deploy/README.md.Test plan
make lint— 0 issuesgo test -race ./internal/cmd/ ./internal/bridge/— passmissing_tokenon/a2a,/,/v1/chat/completions,/v1/models; agent card and/healthexempt; valid token → 200sub=aliceand not the tokeninbound auth disabledx-session-idget separate histories🤖 Generated with Claude Code