Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:47 PM ET / 20:47 UTC. ClawSweeper reviewWhat this changesThe PR makes Doctor recognize configured trusted-proxy mode as an authentication mechanism for an exposed Gateway, retaining a network-access warning and directing operators to the deep security audit. Merge readinessKeep this PR open for a security-owner decision: it cleanly aligns Doctor’s authentication classification with the current deep audit, but deliberately downgrades an existing exposed trusted-proxy diagnosis from critical to warning. Priority: P2 Review scores
Verification
How this fits togetherDoctor converts Gateway configuration into operator-facing health warnings, while Gateway startup and request authorization enforce proxy rules. The deep security audit separately reports trusted-proxy boundary risks and configuration defects. flowchart LR
A[Gateway configuration] --> B[Doctor security check]
B --> C{Exposed Gateway}
C --> D[Authentication classification]
D --> E[Doctor warning and guidance]
A --> F[Gateway startup and authorization]
A --> G[Deep security audit]
F --> H[Enforced proxy boundary]
G --> H
Decision needed
Why: The source proves the proposed split matches the current audit classifier and leaves runtime authorization unchanged, but the acceptable severity for routine operator guidance is a security-policy choice. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch does not alter Gateway authorization, but it changes routine exposed-Gateway security guidance and needs owner acceptance of the retained deep-audit boundary. PR surfaceSource 0, Tests +36. Total +36 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the aligned classification only if the security owner confirms that ordinary Doctor should identify the auth mechanism while Do we have a high-confidence way to reproduce the issue? Yes, by source: current main’s exposed-bind branch emits the critical missing-auth finding whenever no shared secret exists, whereas the PR’s fixture selects trusted-proxy mode with the documented required configuration. Is this the best way to solve the issue? Unclear: the change matches the current deep-audit classification and retains runtime enforcement, but only a security owner can decide whether that diagnostic split is the best operator-facing policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9b123e263448. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What 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 (22 earlier review cycles; latest 8 shown)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e93c3f261a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
e93c3f2 to
b9e810a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
b9e810a to
7a8a6e0
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
7a8a6e0 to
323929c
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@codex review Please review this exact base-synced PR head. The PR body and refreshed GIF/MP4 are pinned to this SHA and |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Retrying once after the initial exact-head request received no reaction or review in the full response window. The head is unchanged; exact-head CI, the 13-case live matrix, refreshed media proof, 129/129 focused tests, formatting, and the changed-surface gate are all green. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@clawsweeper re-review Exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head Please re-review this unchanged head and reconcile the PR labels with the published exact-head verdict. No code or evidence has changed since that review. |
|
@clawsweeper re-review |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Still active. I rechecked this against current The branch is now conflict-marked because the newer Doctor/Gateway refactor superseded some surrounding flow changes. I am refreshing the bounded trusted-proxy readiness fix onto current Please keep this PR open. |
|
Current-main refresh is now live at exact head This replaces the old conflict-heavy branch with one commit adapted to the current structured Doctor finding flow. The implementation now uses side-effect-free Gateway-owned runtime-policy and trusted-identity seams; Doctor does not call the full runtime resolver or synthesize an HTTP request. The runtime remains on the same extracted paths. Validation on the exact head:
GitHub reports the PR as mergeable and no longer conflicting. The patch bytes are identical to the independently reviewed The remaining substantive decision is the existing Gateway security-owner boundary: Doctor emits a warning only after local runtime/readiness checks pass, while the deep security audit remains intentionally critical because it cannot prove the external proxy or firewall. Confirmation from @openclaw/openclaw-secops on that boundary would satisfy the prior rank-up request. Exact-head hosted checks are complete: all applicable checks passed, 0 failed. The prior unrelated 285 ms audit timing flake cleared on this current-main run. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Final exact head
The prior ClawSweeper review found no supported line-level correctness issue. Its remaining rank-up moves were a green final CI head and Gateway security-owner acceptance of the scoped warning boundary. CI is now satisfied; the owner decision remains explicitly requested above. @codex review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
2.0 refresh is now pushed at exact head I rebuilt the branch from current The updated proof binds the exact parent/head trees and shows:
Both media files were independently decoded and privacy-audited; hashes and receipts are in the updated PR body. Local exact-head changed-surface gates, production build, and fresh autoreview are green. The remaining owner question for @openclaw/openclaw-secops is now narrow: does this Doctor classification match the trusted-proxy auth boundary already used by Gateway startup and the canonical audit (including the audit alignment merged in #131196)? No runtime auth, startup policy, config/schema, or request authorization changes here, and the deep audit remains intentionally critical. |
|
@codex review |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Thanks @veteranbv. The Doctor misclassification this PR addressed is superseded by #145379 ( |
Fixes #91284.
What Problem This Solves
This PR was rebuilt from current
mainafter the 2.0 architecture landed. Ikept the existing PR because it remains the canonical fix linked from the issue,
but replaced the previous readiness framework instead of carrying it forward.
The shipped bug is still reproducible in OpenClaw 2026.8.1: a healthy
non-loopback Gateway using
gateway.auth.mode="trusted-proxy"is reported byopenclaw doctoras “without authentication,” followed by token-generationremediation. The deep security audit correctly recognizes trusted-proxy auth and
retains its intentional critical proxy-boundary reminder.
Root cause
Doctor's network-exposure check predates trusted-proxy auth. It treated only a
token or password as authentication, while Gateway startup and the canonical
security audit already treat trusted-proxy as an explicit auth mode.
The missed integration is in Doctor's classification, not in Gateway startup or
request authorization.
Fix
gateway.bind_no_auth, “without authentication,” or token repairwhen the resolved auth mode is
trusted-proxy.gateway.bind_network_accessiblewarning and usemechanism-neutral authentication-boundary guidance.
gateway.trusted_proxy_authindependently critical inopenclaw security audit.defaults, protocol, and stored data unchanged.
This intentionally does not claim that Doctor proved reverse-proxy,
firewall, header, origin, or allowlist readiness. Those checks remain owned by
Gateway startup/request authorization and the canonical deep audit. That owner
split is also why the 2.0 refresh can be net-neutral production code instead of
maintaining a second readiness engine in Doctor.
Evidence
Control parent:
6862adf79f98f3aa57388083d039a1c6d71031e6Exact PR head:
14fd3c58c7fa314b9fe8470566f791914e77f6d3The recording uses the same synthetic trusted-proxy config on both Git trees:
remediation;
authentication-boundary guidance;
gateway.trusted_proxy_authascritical;
MP4 proof
The media contains only synthetic RFC/example data and public Git SHAs. Both
formats were fully decoded and independently audited for provenance, visible
claims, readable holds, and private-data leakage.
0e12b1537c91cd2535ed7f9728eba45de132e05077f7e9127d1fe496654444eaaa75f9f47bd99e1f13ab1827033a33ccf200e71928bd9e7542cd008614432c3aVerification
gateway.bind_no_auth, then passed on the fix.health projection, canonical audit, Gateway startup, and request auth.
import-cycle, API/plugin-boundary, state/storage, schema, and policy checks
passed.
0.97.
Production delta: +3 / -3 (net 0).
Regression-test delta: +36.
The repository's Codex dependency gate was also checked against Codex commit
32f48598a0609a882e5847f0d3e35d6d67f375bcatcodex-rs/network-proxy/src/proxy.rs:1162andcodex-rs/exec-server-protocol/src/protocol.rs:120; those unrelated proxy andprotocol surfaces do not participate in this Doctor/Gateway classification.
Test plan
1 neutral aggregate CodeQL summary, 0 failed
trusted-proxy classification boundary