Repository navigation
fix(secrets): skip unnecessary managed proxy injection for zero-binding runs - #143231
roboclaw-bot wants to merge 1 commit into
Conversation
…ng runs Co-authored-by: steipete <[email protected]> Co-authored-by: Kimiyu-186 <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 4, 2026, 9:40 AM ET / 13:40 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR preserves inherited proxy and certificate settings for Gateway commands with no secret bindings or explicit routing policy, with regression coverage and documentation. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful, distinct repair, and no blocking defect was found in the pinned patch. Current main still injects managed settings for empty bindings, but its process-owned, worker-backed implementation requires refreshing this conflicted draft. The protected maintainer label also prevents cleanup closure. Priority: P2 Review scores
Verification
How this fits togetherGateway exec prepares and launches agent subprocesses. Secret Egress supplies managed proxy settings that let those subprocesses use protected credentials at permitted destinations. flowchart TD
A[Gateway exec request] --> B[Validate run admission]
B --> C[Read secret bindings]
C --> D{Bindings or captured routing policy?}
D -->|Yes| E[Supply managed proxy settings]
D -->|No| F[Preserve inherited network settings]
E --> G[Launch subprocess]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +8, Tests +176, Docs +2. Total +186 across 7 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the omission decision with the active proxy's captured policy across server and worker paths, while preserving process-grant revocation and explicit routing requirements. Do we have a high-confidence way to reproduce the issue? Yes, from source: current Gateway spawn registers empty bindings and overlays managed proxy and CA settings even without routing policy. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes, the captured-policy guard is a focused repair that preserves lockdown and secret-bearing behavior; it must now be carried into current main's process and worker owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1e5bfe69a8b6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
What Problem This Solves
Gateway exec currently injects managed authenticated proxy settings even when its run has no secret bindings and the running proxy has no traffic or bypass-routing policy. That can replace inherited networking settings unnecessarily.
Why This Change Was Made
The running proxy owns the captured policy. Its handle now exposes whether routing is required without bindings; the registry omits managed settings only for zero bindings with an explicit false result. A later configuration snapshot cannot weaken the active policy.
User Impact
Empty-binding runs without traffic/bypass policy retain their inherited network settings. Explicit allowlists (including [] lockdown), configured bypass hosts, and nonempty bindings keep managed routing. Existing admission, authentication, CA, destination-binding, and revocation code is unchanged. Autoreview is unchanged. This is not a universal fix for authenticated-proxy consumer compatibility.
Evidence
openclaw/agent-skillsPR. After that fix, the Codex engine turn fails through the managed proxy WebSocket transport (trivial calls succeed via HTTPS fallback; the high-reasoning review turn does not). Three review attempts failed identically atcodex engine failed (1). No review verdict exists. Human review is requested on this draft.Scope / Related Work
Related #140609 handles lowercase proxy aliases; this change addresses whether zero-binding injection is necessary, not alias precedence. No live proxy/configuration, credential, TLS, approval, or egress-host changes.
Co-author trailers on the commit: steipete and Kimiyu-186.
Worked on by: