test(e2e): cover OIDC/JWT claim -> dynamic key mapping#560
Merged
Conversation
Closes the OIDC-map gap in the dynamic-key e2e (WOR-1560). Boots the release binary with key_management.oidc_claim_map plus a jwt auth provider on an AI origin (dead upstream), mints a key capped at 1 rpm, then sends an HS256 JWT whose key_ref claim names that key: the first request passes the gate and the second is 429, proving the JWT identity resolved to the key and its rate limit was enforced. A JWT signed with the wrong secret is 401 at the gate. Local only (e2e is excluded from the required CI gate). Verified green against a freshly built release binary. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X19S6eQzKKExZ9RUPAHuGy
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.
Closes the OIDC-map gap in the dynamic-key e2e (WOR-1560).
Boots the release binary with
key_management.oidc_claim_map(claim_field: key_ref) plus ajwtauth provider on an AI origin whose upstream is a dead loopback port. Then:max_requests_per_minute: 1,key_refclaim names that key,sk-bearer) and the key's rate limit was enforced through the OIDC mapping,Verification: e2e is excluded from the required CI gate by project policy, so this is verified by a local run against a freshly built release binary (
cargo test -p sbproxy-e2e --release --test key_oidc_map→ 1 passed). The last WOR-1560 gap, cross-replica invalidation, needs a two-node mesh in the harness and is left as a follow-up.