Skip to content

fix(doctor): recognize trusted-proxy authentication - #91268

Closed
veteranbv wants to merge 1 commit into
openclaw:mainfrom
veteranbv:fix-doctor-trusted-proxy-auth
Closed

veteranbv wants to merge 1 commit into
openclaw:mainfrom
veteranbv:fix-doctor-trusted-proxy-auth

Conversation

@veteranbv

@veteranbv veteranbv commented Jun 7, 2026 •

Copy link
Copy Markdown

Fixes #91284.

What Problem This Solves

This PR was rebuilt from current main after the 2.0 architecture landed. I
kept 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 by
openclaw doctor as “without authentication,” followed by token-generation
remediation. 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

  • Do not emit gateway.bind_no_auth, “without authentication,” or token repair
    when the resolved auth mode is trusted-proxy.
  • Keep the existing gateway.bind_network_accessible warning and use
    mechanism-neutral authentication-boundary guidance.
  • Keep gateway.trusted_proxy_auth independently critical in
    openclaw security audit.
  • Leave Gateway runtime validation, request authorization, config/schema,
    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: 6862adf79f98f3aa57388083d039a1c6d71031e6
Exact PR head: 14fd3c58c7fa314b9fe8470566f791914e77f6d3

The recording uses the same synthetic trusted-proxy config on both Git trees:

  1. the exact parent reproduces the false unauthenticated critical and token
    remediation;
  2. the exact head reports the network-accessible warning with
    authentication-boundary guidance;
  3. the exact head's deep audit still reports gateway.trusted_proxy_auth as
    critical;
  4. 224 owner and sibling tests pass across 5 files / 3 Vitest shards.

OpenClaw 2.0 trusted-proxy Doctor proof

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.

  • MP4: H.264, 1400×900, 25 fps, 117.88 s, 2,947 frames; SHA-256
    0e12b1537c91cd2535ed7f9728eba45de132e05077f7e9127d1fe496654444ea
  • GIF: 1400×900, 25 fps, 117.88 s, 2,947 frames; SHA-256
    aa75f9f47bd99e1f13ab1827033a33ccf200e71928bd9e7542cd008614432c3a

Verification

  • Regression first: the new test failed on the exact parent with
    gateway.bind_no_auth, then passed on the fix.
  • Exact-head focused suite: 224 passed, 0 failed across Doctor, structured
    health projection, canonical audit, Gateway startup, and request auth.
  • Changed-test selection against current main: 35 passed, 0 failed.
  • Exact-head changed-surface gate: formatting, typechecks, lint, dead-code,
    import-cycle, API/plugin-boundary, state/storage, schema, and policy checks
    passed.
  • Full production build passed.
  • Fresh mandatory autoreview: no actionable findings; patch-correct confidence
    0.97.
  • Independent whole-diff/deslop review: no blocking finding.

Production delta: +3 / -3 (net 0).
Regression-test delta: +36.

The repository's Codex dependency gate was also checked against Codex commit
32f48598a0609a882e5847f0d3e35d6d67f375bc at
codex-rs/network-proxy/src/proxy.rs:1162 and
codex-rs/exec-server-protocol/src/protocol.rs:120; those unrelated proxy and
protocol surfaces do not participate in this Doctor/Gateway classification.

Test plan

  • Reproduce the released false unauthenticated diagnosis on the exact parent
  • Prove the exact head reports an authenticated network-exposure warning
  • Prove the deep trusted-proxy audit reminder remains critical
  • Preserve none/token/password, startup, audit, and request-auth siblings
  • Run focused tests, changed-surface gates, build, and fresh autoreview
  • Complete exact-head hosted CI: 215 succeeded, 50 intentionally skipped,
    1 neutral aggregate CodeQL summary, 0 failed
  • Obtain Gateway/security-owner confirmation that this matches the existing
    trusted-proxy classification boundary

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 7, 2026
@clawsweeper

clawsweeper Bot commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:47 PM ET / 20:47 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Needs maintainer review before merge - 4 items remain

Keep 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
Reviewed head: 14fd3c58c7fa314b9fe8470566f791914e77f6d3
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused, net-neutral patch and supplied before/after proof are strong, but security-owner confirmation remains necessary for the changed diagnostic policy.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (recording): The PR supplies SHA-pinned before/after CLI recording artifacts for the changed Doctor collector, with hashes matching the downloaded GIF and MP4; the available GIF was inspected, while MP4 frame analysis is unavailable here because ffprobe is absent. This reviewer-side limitation does not negate the existing proof-sufficient evidence.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (recording): The PR supplies SHA-pinned before/after CLI recording artifacts for the changed Doctor collector, with hashes matching the downloaded GIF and MP4; the available GIF was inspected, while MP4 frame analysis is unavailable here because ffprobe is absent. This reviewer-side limitation does not negate the existing proof-sufficient evidence.
Evidence reviewed 6 items Introduced diagnostic change: The PR’s introduced hunk changes the exposed-bind condition so trusted-proxy mode bypasses the critical missing-auth finding and receives the existing warning path.
Current main still has the reported behavior: Fetched main retains the pre-PR condition that treats every exposed configuration without a shared secret as unauthenticated, including trusted-proxy mode.
Deep audit uses the proposed classification: The canonical security audit already defines Gateway authentication as a shared secret or trusted-proxy mode, then emits separate critical trusted-proxy boundary findings.
Findings None None.
Security Needs attention Confirm the warning-level trusted-proxy diagnosis: This condition routes any exposed trusted-proxy configuration to a warning even when proxy details are incomplete; the deep audit still reports those defects, so the remaining question is the intended diagnostic boundary rather than a demonstrated authorization bypass.

How this fits together

Doctor 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
Loading

Decision needed

Question Recommendation
Should Doctor treat configured trusted-proxy mode as authentication for exposed-bind severity while leaving proxy readiness and boundary validation to the deep security audit? Confirm the diagnostic split: Accept the warning-level Doctor result for configured trusted-proxy mode while retaining the deep audit’s critical proxy-boundary findings.

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

  • Resolve security concern: Confirm the warning-level trusted-proxy diagnosis - This condition routes any exposed trusted-proxy configuration to a warning even when proxy details are incomplete; the deep audit still reports those defects, so the remaining question is the intended diagnostic boundary rather than a demonstrated authorization bypass.
  • Resolve merge risk (P1) - Merging changes the normal Doctor result for every exposed trusted-proxy configuration from a critical missing-auth diagnosis to a warning; the deep audit retains specific critical findings, but accepting that diagnostic split is a security-boundary decision.
  • Complete next step (P2) - A security owner must choose the acceptable Doctor-versus-deep-audit diagnostic boundary before merge.

Findings

  • [medium] Confirm the warning-level trusted-proxy diagnosis — src/commands/doctor-security.ts:365
Agent review details

Security

Needs 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 surface

Source 0, Tests +36. Total +36 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 3 0
Tests 1 36 0 +36
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 39 3 +36

Review metrics

Metric Value Why it matters
Production versus regression-test delta production +3/-3 (net 0); tests +36/-0 The diagnostic behavior change is net-neutral production code with focused coverage for the new warning path.

Merge-risk options

Maintainer options:

  1. Confirm the audit split (recommended)
    A security owner can approve the documented separation between Doctor’s mechanism classification and the deep audit’s boundary validation.
  2. Preserve the critical diagnosis
    Keep the existing Doctor severity until an owner-approved validation scope can distinguish complete and unsafe trusted-proxy configurations.

Technical review

Best possible solution:

Adopt the aligned classification only if the security owner confirms that ordinary Doctor should identify the auth mechanism while openclaw security audit --deep remains the authoritative readiness and boundary check.

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.

Labels

Label changes:

  • add proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The PR supplies SHA-pinned before/after CLI recording artifacts for the changed Doctor collector, with hashes matching the downloaded GIF and MP4; the available GIF was inspected, while MP4 frame analysis is unavailable here because ffprobe is absent. This reviewer-side limitation does not negate the existing proof-sufficient evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is recording.

Label justifications:

  • P2: This is a bounded but operator-facing security-diagnostic correction.
  • merge-risk: 🚨 compatibility: Existing exposed trusted-proxy deployments receive a different Doctor severity and remediation path after upgrade.
  • merge-risk: 🚨 security-boundary: The PR changes how routine diagnostics communicate the authentication boundary for a remotely reachable Gateway.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (recording): The PR supplies SHA-pinned before/after CLI recording artifacts for the changed Doctor collector, with hashes matching the downloaded GIF and MP4; the available GIF was inspected, while MP4 frame analysis is unavailable here because ffprobe is absent. This reviewer-side limitation does not negate the existing proof-sufficient evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR supplies SHA-pinned before/after CLI recording artifacts for the changed Doctor collector, with hashes matching the downloaded GIF and MP4; the available GIF was inspected, while MP4 frame analysis is unavailable here because ffprobe is absent. This reviewer-side limitation does not negate the existing proof-sufficient evidence.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The PR supplies SHA-pinned before/after CLI recording artifacts for the changed Doctor collector, with hashes matching the downloaded GIF and MP4; the available GIF was inspected, while MP4 frame analysis is unavailable here because ffprobe is absent. This reviewer-side limitation does not negate the existing proof-sufficient evidence.

Evidence

Security concerns:

  • [medium] Confirm the warning-level trusted-proxy diagnosis — src/commands/doctor-security.ts:365
    This condition routes any exposed trusted-proxy configuration to a warning even when proxy details are incomplete; the deep audit still reports those defects, so the remaining question is the intended diagnostic boundary rather than a demonstrated authorization bypass.
    Confidence: 0.93

What I checked:

  • Introduced diagnostic change: The PR’s introduced hunk changes the exposed-bind condition so trusted-proxy mode bypasses the critical missing-auth finding and receives the existing warning path. (src/commands/doctor-security.ts:365, 14fd3c58c7fa)
  • Current main still has the reported behavior: Fetched main retains the pre-PR condition that treats every exposed configuration without a shared secret as unauthenticated, including trusted-proxy mode. (src/commands/doctor-security.ts:365, 9b123e263448)
  • Deep audit uses the proposed classification: The canonical security audit already defines Gateway authentication as a shared secret or trusted-proxy mode, then emits separate critical trusted-proxy boundary findings. (src/security/audit-gateway-config.ts:88, 9b123e263448)
  • Runtime and documentation retain strict proxy controls: Gateway startup requires trusted-proxy configuration and a nonempty proxy list; the documentation requires trusted proxy sources, identity headers, and direct-access restrictions. (src/gateway/server-runtime-config.ts:177, 14fd3c58c7fa)
  • CLI entry point: Both structured Doctor health and the interactive Doctor flow invoke the same security-warning collector, so the test covers the changed owner boundary rather than an unused helper. (src/flows/doctor-core-checks.ts:836, 14fd3c58c7fa)
  • Proof artifact identity: Downloaded GIF and MP4 hashes match the SHA-pinned values in the PR body; the supplied video could not receive frame analysis because ffprobe is unavailable in this reviewer environment. (14fd3c58c7fa)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • dailytrap: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Obtain security-owner confirmation that the ordinary Doctor warning and deep-audit critical findings are the intended long-term boundary.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (22 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-21T02:06:28.361Z sha 6724506a4ea7e24d4cdd667e8a54cef88308dccd :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T12:00:45.321Z sha 6724506a4ea7e24d4cdd667e8a54cef88308dccd :: needs maintainer review before merge. :: none
  • reviewed 2026-08-05T00:30:18.985Z sha 6724506a4ea7e24d4cdd667e8a54cef88308dccd :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T00:44:30.256Z sha da620159af45efd24b91710931f54e7d008efee4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T01:01:54.218Z sha 00482c43cd723b1cd50fe31e2bab459b9ace56fe :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-23T01:30:33.639Z sha 00482c43cd723b1cd50fe31e2bab459b9ace56fe :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T01:41:21.697Z sha 00482c43cd723b1cd50fe31e2bab459b9ace56fe :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T20:33:16.625Z sha 14fd3c5 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/commands/doctor-security.ts Resolved
Comment thread src/commands/doctor-security.ts Resolved
Comment thread src/commands/doctor-security.ts Resolved
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 7, 2026
@veteranbv
veteranbv force-pushed the fix-doctor-trusted-proxy-auth branch from e93c3f2 to b9e810a Compare June 7, 2026 23:58
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed size: XS proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Jun 7, 2026
@veteranbv

Copy link
Copy Markdown
Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@veteranbv
veteranbv force-pushed the fix-doctor-trusted-proxy-auth branch from b9e810a to 7a8a6e0 Compare June 8, 2026 00:05
@veteranbv

Copy link
Copy Markdown
Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 8, 2026
@veteranbv
veteranbv force-pushed the fix-doctor-trusted-proxy-auth branch from 7a8a6e0 to 323929c Compare June 8, 2026 00:20
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 8, 2026
@veteranbv

Copy link
Copy Markdown
Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jun 8, 2026
@veteranbv

Copy link
Copy Markdown
Author

@codex review 6724506a4ea7e24d4cdd667e8a54cef88308dccd

Please review this exact base-synced PR head. The PR body and refreshed GIF/MP4 are pinned to this SHA and main snapshot a53461b2b1550107c0fbf383b2396af14ea7b880; the isolated 13-case live matrix, 129/129 focused tests, seven-file format check, and full changed-surface gate all pass. Hosted CI is still running and is marked pending.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 6724506a4e

ℹ️ 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".

@veteranbv

Copy link
Copy Markdown
Author

@codex review 6724506a4ea7e24d4cdd667e8a54cef88308dccd

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.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 6724506a4e

ℹ️ 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".

@veteranbv

Copy link
Copy Markdown
Author

@clawsweeper re-review

Exact head 6724506a4ea7e24d4cdd667e8a54cef88308dccd is stable. Exact-head hosted CI and openclaw/ci-gate are green, Codex found no major issues, the 13-case clean-room CLI matrix and refreshed GIF/MP4 are SHA-pinned in the PR body, and no review threads remain unresolved.

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@veteranbv

Copy link
Copy Markdown
Author

@clawsweeper re-review

Exact head 6724506a4ea7e24d4cdd667e8a54cef88308dccd is unchanged, with all 129 hosted checks green and no unresolved review threads. Your current exact-head verdict reports Overall: 🐚 platinum hermit, Proof: 🦞 diamond lobster, Patch quality: 🐚 platinum hermit, and ready for maintainer review, but the visible PR labels still show rating: 🦐 gold shrimp and status: 📣 needs proof.

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.

@veteranbv

Copy link
Copy Markdown
Author

@clawsweeper re-review

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@veteranbv

Copy link
Copy Markdown
Author

Still active. I rechecked this against current main (aca83ac00c7b): the Doctor misclassification remains in src/commands/doctor-security.ts, and the linked issue is still source-reproducible.

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 main, dropping overlap that main already owns, then will rerun exact-head focused and changed-surface proof and refresh the SHA-pinned evidence. After that, the requested Gateway security-owner decision on the warning boundary should be the remaining maintainer step.

Please keep this PR open.

@veteranbv

veteranbv commented Aug 23, 2026 •

Copy link
Copy Markdown
Author

Current-main refresh is now live at exact head 00482c43cd723b1cd50fe31e2bab459b9ace56fe (parent 008412212f4334bf9fe83d36d3f93364991e2302).

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:

  • 38 trusted-proxy regression cases
  • 377 focused tests across 7 files / 3 shards
  • changed-surface format, type, lint, import-cycle, API/plugin-boundary, storage/media, and policy gates passed
  • docs gate passed, including 6,532 internal links with 0 broken
  • fresh mandatory autoreview and verified secret scan: 0 findings
  • audited before/after/fail-closed MP4 + GIF are linked in the updated PR body; no private path or credential appears in the media

GitHub reports the PR as mergeable and no longer conflicting. The patch bytes are identical to the independently reviewed da620159af45 refresh; the rebase only incorporated non-overlapping logging/UI changes from main.

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.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: da620159af

ℹ️ 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".

@veteranbv

veteranbv commented Aug 23, 2026 •

Copy link
Copy Markdown
Author

Final exact head 00482c43cd723b1cd50fe31e2bab459b9ace56fe is stable.

  • all applicable hosted checks passed, 0 failed
  • 0 unresolved review threads
  • patch diff is byte-identical to the independently reviewed da620159af45 refresh
  • final SHA-pinned VHS proof is updated in the PR body, with exact base-tree binding and independently audited before/fixed/fail-closed/377-test screens

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
@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 00482c43cd

ℹ️ 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".

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-31T20:17:19.728411Z 14fd3c5 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@veteranbv

Copy link
Copy Markdown
Author

2.0 refresh is now pushed at exact head 14fd3c58c7fa314b9fe8470566f791914e77f6d3.

I rebuilt the branch from current main instead of carrying the previous readiness framework forward. The old +444 production-line policy engine is gone; the refreshed fix is +3/-3 production lines (net 0) plus one pre-fix-failing regression test.

The updated proof binds the exact parent/head trees and shows:

  • the parent falsely reports trusted-proxy as unauthenticated and recommends generating a token;
  • the head reports the existing network-accessible warning with mechanism-neutral boundary guidance;
  • security audit still reports gateway.trusted_proxy_auth as critical;
  • 224 owner/sibling tests pass across 5 files / 3 shards.

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.

@veteranbv

Copy link
Copy Markdown
Author

@codex review

@veteranbv

Copy link
Copy Markdown
Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 14fd3c58c7

ℹ️ 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".

@steipete

Copy link
Copy Markdown
Contributor

Thanks @veteranbv. The Doctor misclassification this PR addressed is superseded by #145379 (0e29319a6a3) on main, which recognizes trusted-proxy authentication while preserving the separate security audit; it ships in the next release after 2026.9.4. Once published, hosts blocked by an installed updater can use npm i -g openclaw@latest, then openclaw doctor and openclaw gateway restart. Closing this PR; please reopen (or open a fresh one) with the exact version and Doctor output if the misclassification persists on the containing release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: doctor reports complete trusted-proxy gateway auth as unauthenticated

2 participants