Files
codex/codex-rs/network-proxy/src
viyatb-oai 494c43b0c5 Bind JWT bearer grants to HTTPS proxy hooks (#64942)
## Why

A sandboxed client needs to authenticate to an allowed HTTPS endpoint
without receiving the upstream JWT.

## What changed

Let an HTTPS proxy hook exchange a guest bearer alias for a JWT scoped to
the requesting environment and exact resource path. Recheck the hook
policy and grant after establishing upstream TLS, then attach the JWT to
the outgoing request.

## Testing

Add tests for rejecting ambiguous rules and unsafe paths, preserving
ordinary header stripping outside the bound path, and rejecting an alias
after its grant is dropped.

GitOrigin-RevId: 41837b45abcbe97b4dd73c65964d59c661879b46
2026-12-01 07:07:36 +00:00
..