Repository navigation
fix(gateway): use verified proxy identity for response history - #118607
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:34 AM ET / 09:34 UTC. ClawSweeper reviewWhat this changesThe PR preserves the verified trusted-proxy user on the Gateway request and uses it to scope OpenResponses continuation history. Merge readinessKeep this PR open for normal security-owner review and current-head CI. The patch fixes a current-main response-history isolation bug by carrying the trusted-proxy identity that authentication already verified, rather than hashing an unrelated forwarded bearer. Priority: P1 Review scores
Verification
How this fits togetherGateway HTTP authentication validates the proxy source and its configured user header before the OpenResponses endpoint handles a request. OpenResponses then uses an authentication-and-agent scope to decide whether a previous response may continue an existing session. flowchart LR
Client[OpenResponses client] --> Proxy[Trusted proxy headers]
Proxy --> Auth[Gateway authentication]
Auth --> Identity[Verified proxy user]
Identity --> Scope[Response history scope]
Scope --> Continuation[Prior response session]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +51. Total +55 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused owner-boundary repair after security-owner review, preserving the verified proxy identity as the sole trusted-proxy continuation subject and retaining the existing token/password fallback behavior. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with high confidence: current main prioritizes the bearer-derived scope, and the added Gateway integration scenario demonstrates the same bearer serving Alice and Bob under different verified proxy identities. Is this the best way to solve the issue? Yes. Carrying the already-verified authentication result across the existing request boundary is the narrowest maintainable fix; re-reading forwarded headers in OpenResponses would duplicate trust validation and risk drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ecc49b5a870b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Summary\n- Preserve the verified authenticated user at the existing Gateway HTTP authentication boundary.\n- Bind previous_response_id continuation to verified trusted-proxy identity instead of an unrelated forwarded bearer.\n- Preserve token and password authentication, local fallback, operator access, and explicit session selectors.\n\n## Verification\n- Existing real Gateway integration first reproduced two proxy identities colliding through the same incidental bearer.\n- Responses integration, auth-owner, and authentication fallback suites: 79 passed.\n- The same verified user retains continuation even when its unrelated forwarded bearer changes.\n- Independent structured security autoreview: clean, confidence 0.97.