Skip to content

fix(security): recognize loopback trusted proxy authentication - #131196

Merged
steipete merged 2 commits into
mainfrom
codex/why-simplify-proxy-20260827
Aug 27, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/why-simplify-proxy-20260827

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor
Additional instructions

Keep Allow edits from maintainers enabled for this PR.

What Problem This Solves

Fixes an issue where operators running the Control UI through an explicitly allowed loopback trusted proxy would receive a critical “Gateway auth missing on loopback” security-audit finding despite configured proxy authentication. Its remediation recommends a token, but trusted-proxy startup rejects mixed token configuration.

Related: #91268 covers the separate Doctor readiness diagnostic; this change only repairs openclaw security audit.

Why This Change Was Made

The audit already recognized trusted-proxy authentication for non-loopback binds, but omitted it from the loopback classification. Both diagnostics now share the same shared-secret-or-trusted-proxy classification; loopback additionally retains its existing Tailscale Serve allowance. The proxy-specific checks reuse the existing trusted-proxy list instead of reading it twice.

This changes diagnostics only. Runtime authentication, startup validation, config/defaults, identity scopes, and the internal direct-client password fallback are unchanged. Missing proxy configuration and exposure warnings remain, including the intentional critical gateway.trusted_proxy_auth reminder.

No documentation change is needed: this restores the documented loopback trusted-proxy behavior and security-audit checks. The documented prohibition on mixed token configuration remains enforced.

User Impact

Operators no longer receive a misleading missing-auth finding or token recommendation for a configured loopback trusted proxy. They still receive the proxy-boundary and loopback opt-in warnings that describe the actual trust configuration.

Production delta: +6/−6, net 0 lines. Test delta: +60/−9, net +51 lines. No new configuration or runtime policy.

Evidence

The expanded regression failed before the production change on gateway.loopback_no_auth. After the change, 38 tests in five files pass, covering proxy guardrails on loopback and LAN, Tailscale scope, shared credentials, auth selection, HTTP auth, and loopback logging. Formatting, targeted lint, and git diff --check pass.

OPENCLAW_VITEST_MAX_WORKERS=1 \
OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/tmp/why-openclaw-repair/proxy-vitest-cache \
node scripts/run-vitest.mjs \
  src/security/audit-gateway-exposure.test.ts \
  src/security/audit-gateway.test.ts \
  src/security/audit-loopback-logging.test.ts \
  src/security/audit-gateway-auth-selection.test.ts \
  src/security/audit-gateway-http-auth.test.ts

The local changed-file gate and dist build encountered an unrelated stale shared pi-tui dependency: TuiMainScreen was missing, with consequent type errors. Local dependencies were not reconciled. Separate frozen dependency installs in clean remote source checkouts then built both versions successfully. This is not a claim that the entire typecheck or release matrix passed remotely.

Built CLI before/after: both versions ran node scripts/run-node.mjs --version, then node openclaw.mjs security audit --json, with isolated HOME/state/config and no operator credentials.

Finding Before After
gateway.loopback_no_auth critical absent
gateway.trusted_proxy_auth critical critical
gateway.trusted_proxy_allow_loopback warn warn
summary.attack_surface info info

The result changed from 2 critical / 1 warn / 1 info to 1 critical / 1 warn / 1 info; only the false-positive finding disappeared.

Real Gateway admission: each built version also ran node openclaw.mjs gateway run --port <ephemeral>. Actual loopback WebSocket connections with synthetic forwarded headers showed the allowlisted identity connecting and successfully calling health; missing and unlisted identities were rejected on both versions. Both rejection responses surfaced CONTROL_UI_DEVICE_IDENTITY_REQUIRED, so this establishes admission outcomes, not distinct proxy-auth error reporting. No external identity provider, deployed reverse proxy, browser rendering, provider request, or npm-package installation was tested. Control UI assets began building at startup and were canceled during controlled shutdown; no GUI proof is claimed.

Remote provenance: provider blacksmith-testbox, lease tbx_01m12hb5xw8f7p6n1t294xjw3b; hosting workflow run. The workflow checkout was f5ccf4c38135c4cb6c8d3f78a5445c88863bcb75; it was not used as the tested product source. The recipe created two detached temporary checkouts at the exact baseline below and applied only the reviewed patch to the candidate. Every baseline tracked file was checked against its Git blob; candidate tracked content matched the recorded fingerprint. Node was v24.19.0; each checkout ran its own pnpm install --frozen-lockfile.

Tested input Identity
Baseline commit 6e827231257cf7c9c26ecd54fdc73d8c30afa5d8
Candidate baseline plus reviewed patch
Patch SHA256 4180d10e3037f8bf831fdbc9ef660f404169865f01d93e75e4c3a8924a979674
Candidate tracked-source fingerprint 6adf814157af54d233678b96b9c0aad61f832aaff124d929ed4662c93f126723

Remote recipe invocation, with candidate.patch, run-remote.py, and ws-proof.mjs staged under /tmp/proxy-proof:

python3 /tmp/proxy-proof/run-remote.py \
  80ab0c90f7ba21e808a5dea78d5381f7c85b682a5dd52657ad8cf80cbc802a12 \
  4180d10e3037f8bf831fdbc9ef660f404169865f01d93e75e4c3a8924a979674 \
  6adf814157af54d233678b96b9c0aad61f832aaff124d929ed4662c93f126723

Arguments are the production-owner content SHA256, patch SHA256, and tracked-source fingerprint. The final remote recipe exited 0. Earlier staging attempts failed before proof completion because the workflow checkout had advanced, then because shared workspace dependency links pointed at the wrong checkout; neither is counted as product proof. Saved evidence includes summary.json, audit JSON, Gateway logs, WebSocket outcomes, build logs, and source manifests. The workflow link identifies the hosting job; it is not a claim that these foreground proof artifacts were published as Actions artifacts. Both Gateway processes and the lease were stopped, and lease completion was verified.

AI-assisted implementation. A separate isolated Codex review of the final diff completed with no findings at its P0-only scope; this is not an exhaustive P1/P2 review. No production changes followed that review.

Loopback guidance follow-up

Addressed the review's missing-consent/source guidance concern and Rank-up move in the existing critical gateway.trusted_proxy_auth remediation. Same-host proxy requests are rejected unless gateway.auth.trustedProxy.allowLoopback=true and gateway.trustedProxies includes their loopback source; the message now states both requirements and limits enablement to a deliberate same-host trust boundary. Restoring gateway.loopback_no_auth would incorrectly allege unauthenticated exposure and recommend a forbidden shared token. No authentication policy, config/default, severity, or new diagnostic branch changed.

Five new guidance regressions failed before this correction and pass afterward, including invalid consent/source and valid exact IPv4, CIDR, and IPv6 configurations. 43 focused tests pass. Full PR production delta is now net 0 (+6/−6); tests net +51 (+60/−9). Formatting, targeted lint, and diff checks pass. A fresh isolated independent Codex review found no P0 issues; it was P0-only. No source changed after that review.

Fresh built-CLI and actual Gateway proof used Blacksmith Testbox tbx_01m12kw942908ej1y5p5txvj1p, hosted by workflow run 33120767365. The workflow checkout was 4088c4c11528f48d4f20acfd919f2ecefd933e4e, but the tested baseline and candidate were separate temporary checkouts of exact 90a2792a8a527488a34491d0402324d789cab7ae, with only the reviewed guidance patch applied to the candidate. Both received their own frozen dependencies and passed dist-backed builds. Every tracked source file was verified before and after execution.

Guidance patch SHA256: fea84caebe72b84e6a8ab23e987e2637e0ee68796be63addf25873a60b2930f5.
Candidate tracked-source fingerprint: a428d9ed0705dcc7d555abf7094a96658e3e3f756e4e244419f036b657797870.

Each version ran four node openclaw.mjs security audit --json configurations and real loopback WebSocket admission against four Gateway processes. Missing loopback consent rejected all connections; a nonmatching trusted source rejected them with HTTP 403. Exact 127.0.0.1 and CIDR 127.0.0.0/8 setups admitted the allowlisted synthetic identity, whose health RPC succeeded; missing and unlisted identities were rejected. All audit IDs/severities remained unchanged, including the critical proxy reminder and applicable loopback warning. Only the candidate included the new critical remediation sentence.

Recipe, with the source patch and WebSocket probe staged alongside it:

python3 /tmp/proxy-guidance-proof/run-remote.py \
  07e4e8adc4cd3341d1619fd9f74c05ae5f48b0bde4e12613aab27e88f18b9b08 \
  fea84caebe72b84e6a8ab23e987e2637e0ee68796be63addf25873a60b2930f5 \
  a428d9ed0705dcc7d555abf7094a96658e3e3f756e4e244419f036b657797870

The remote recipe exited 0; all eight Gateway processes and the lease were stopped, with completion verified. This proves built CLI and process/network behavior with synthetic headers, not an external IdP, deployed reverse proxy, browser UI, provider call, or npm installation. IPv6 coverage is local config-collector coverage only. Missing-consent/identity rejections surfaced CONTROL_UI_DEVICE_IDENTITY_REQUIRED, so no distinct internal rejection-reason claim is made. The workflow link identifies the host job; foreground evidence was retrieved separately, not published as Actions artifacts.

The repeated local changed-file gate passed its guards but remained blocked at core typecheck by shared dependency mismatches (pi-tui, markdown-it, and Google FinishReason). No local dependency reconciliation was attempted. Clean remote dependency builds succeeded; a full remote typecheck/release matrix was not run. AI-assisted follow-up; no transcript included.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 27, 2026
@steipete
steipete marked this pull request as ready for review August 27, 2026 21:32
@steipete
steipete requested a review from a team as a code owner August 27, 2026 21:32
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 27, 2026, 5:39 PM ET / 21:39 UTC.

ClawSweeper review

What this changes

The PR updates Gateway security-audit classification so trusted-proxy mode counts as authentication on loopback binds, while retaining Tailscale’s loopback-only allowance.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the patch correctly identifies trusted-proxy as an authentication mode, but it also suppresses the loopback missing-auth diagnostic for configurations that runtime rejects because they lack an allowed loopback proxy path.

Likely related people: steipete (high-confidence recent owner) and vincentkoc (medium-confidence historical trusted-proxy owner).

Priority: P2
Reviewed head: 90a2792a8a527488a34491d0402324d789cab7ae

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch has strong local contract context but needs one correction to preserve a useful security diagnostic.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate; the prepared media belongs to the adjacent Doctor PR and was not used as evidence here.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; the prepared media belongs to the adjacent Doctor PR and was not used as evidence here.
Evidence reviewed 6 items Introduced suppression: The introduced classifier treats every trusted-proxy mode as loopback authentication, without checking whether a same-host proxy is permitted and configured.
Runtime contract: Runtime rejects loopback trusted-proxy requests unless the source is trusted and allowLoopback is explicitly enabled; it continues to reject missing proxy configuration before authorization.
Regression coverage masks invalid loopback setup: The new bind matrix reuses a trusted-proxy fixture with only 10.0.0.1 and no allowLoopback, changes it to loopback, and asserts the missing-loopback-auth finding is absent.
Findings 1 actionable finding [P2] Keep loopback diagnostics tied to usable proxy authentication
Security Needs attention Mode-only loopback authentication classification: The audit suppresses the loopback missing-auth diagnostic without requiring the runtime’s explicit loopback proxy consent and trusted source, obscuring an unusable authentication boundary.

Live Verification

Command: proof_dir=$(mktemp -d) && trap 'rm -rf "$proof_dir"' EXIT && printf '%s\n' '{"gateway":{"bind":"loopback","trustedProxies":["127.0.0.1"],"auth":{"mode":"trusted-proxy","trustedProxy":{"userHeader":"x-forwarded-user","allowLoopback":true}}}}' › "$proof_dir/openclaw.json" && pnpm build && OPENCLAW_CONFIG_PATH="$proof_dir/openclaw.json" OPENCLAW_STATE_DIR="$proof_dir/state" node openclaw.mjs security audit --json

Result: FAIL (failed) — step 1 expect_output gateway.trusted_proxy_auth: expected terminal output was not visible within 30 seconds: "gateway.trusted_proxy_auth"

$ node --import ./scripts/tsx.mjs scripts/build-all.mts
[build-all] plugins:assets:build
$ node --import ./scripts/tsx.mjs scripts/bundled-plugin-assets.mts --phase build
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 107.82 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[build-all] plugins:assets:build done in 2.24s
[build-all] tsdown-ai
[PLUGIN_TIMINGS] Your build spent significant time in plugins. Here is a breakdown:
  - tsdown:deps (47%)
  - rolldown-plugin-dts:generate (22%)
  - rolldown-plugin-dts:fake-js (20%)
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.

[tsdown-build] invocation 1/1 finished in 4.8s
[build-all] tsdown-ai done in 5.48s
[build-all] tsdown-packages
[tsdown-build] invocation 1/1 finished in 23.7s
[build-all] tsdown-packages done in 24.3s

Assertions:

  • FAIL expect_output: gateway.trusted_proxy_auth

How this fits together

The Gateway security audit turns configured bind and authentication settings into operator-facing exposure findings. Gateway startup and request authorization then enforce the actual trusted-proxy source, loopback, header, and identity requirements.

flowchart LR
  A[Gateway configuration] --> B[Security audit]
  B --> C[Authentication classification]
  C --> D[Loopback findings]
  A --> E[Gateway runtime authorization]
  E --> F[Trusted proxy admission]
  D --> G[Operator remediation]
Loading

Before merge

  • Keep loopback diagnostics tied to usable proxy authentication (P2) - auth.mode === "trusted-proxy" is not enough on a loopback listener: runtime rejects the request unless allowLoopback is true and the proxy source is trusted. The new test rebinds a 10.0.0.1/no-allowLoopback fixture to loopback and asserts that gateway.loopback_no_auth disappears, so an unusable same-host proxy setup loses the specific critical remediation. Require a loopback-capable proxy configuration before suppressing or replace it with a focused critical finding.
  • Resolve security concern: Mode-only loopback authentication classification - The audit suppresses the loopback missing-auth diagnostic without requiring the runtime’s explicit loopback proxy consent and trusted source, obscuring an unusable authentication boundary.
  • Resolve merge risk (P1) - Merging would remove the loopback-specific critical finding for an unusable trusted-proxy setup; the remaining generic trusted-proxy warning does not identify the missing loopback opt-in or local trusted source.
  • Complete next step (P2) - The P2 repair is concrete, but this maintainer-labeled security-boundary PR requires owner review before changing its diagnostic policy.

Findings

  • [P2] Keep loopback diagnostics tied to usable proxy authentication — src/security/audit-gateway-config.ts:88-89
  • [medium] Mode-only loopback authentication classification — src/security/audit-gateway-config.ts:88
Agent review details

Security

Needs attention: The patch weakens a security diagnostic for loopback trusted-proxy configurations that cannot authenticate at runtime.

PR surface

Source -1, Tests +17. Total +16 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 5 6 -1
Tests 2 26 9 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 31 15 +16

Review metrics

Metric Value Why it matters
Production versus test delta production +5/−6 (net −1); tests +26/−9 (net +17) The focused repair is net-negative in production code, but its expanded matrix currently encodes the invalid loopback configuration as authenticated.

Merge-risk options

Maintainer options:

  1. Restore a usable loopback-auth predicate (recommended)
    Require explicit loopback consent and a loopback trusted-proxy source before suppressing the loopback diagnostic, with regressions for both missing conditions.
  2. Accept mode-only classification
    Land the current behavior knowing that unusable loopback trusted-proxy configurations lose the more specific remediation.

Technical review

Best possible solution:

Only suppress or replace the loopback missing-auth diagnostic when trusted-proxy configuration can authenticate a same-host proxy: explicit allowLoopback plus an explicit loopback entry in trustedProxies, while retaining a focused critical diagnostic for invalid loopback proxy setups.

Do we have a high-confidence way to reproduce the issue?

Yes—source reproducible: use a loopback bind with trusted-proxy mode, trustedProxies set only to a non-loopback address, and no allowLoopback; the PR suppresses the loopback finding while runtime rejects the only possible loopback proxy request.

Is this the best way to solve the issue?

No. The mode-only predicate is too broad; the audit should follow the documented runtime condition for a usable same-host trusted proxy rather than infer authentication from mode alone.

Full review comments:

  • [P2] Keep loopback diagnostics tied to usable proxy authentication — src/security/audit-gateway-config.ts:88-89
    auth.mode === "trusted-proxy" is not enough on a loopback listener: runtime rejects the request unless allowLoopback is true and the proxy source is trusted. The new test rebinds a 10.0.0.1/no-allowLoopback fixture to loopback and asserts that gateway.loopback_no_auth disappears, so an unusable same-host proxy setup loses the specific critical remediation. Require a loopback-capable proxy configuration before suppressing or replace it with a focused critical finding.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ef858c0f1bb8.

Labels

Label justifications:

  • P2: This is a bounded but concrete false-negative security-audit diagnostic for an invalid trusted-proxy setup.
  • merge-risk: 🚨 security-boundary: The PR changes which configuration states the audit recognizes as an authentication boundary.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; the prepared media belongs to the adjacent Doctor PR and was not used as evidence here.

Evidence

Security concerns:

  • [medium] Mode-only loopback authentication classification — src/security/audit-gateway-config.ts:88
    The audit suppresses the loopback missing-auth diagnostic without requiring the runtime’s explicit loopback proxy consent and trusted source, obscuring an unusable authentication boundary.
    Confidence: 0.96

What I checked:

Likely related people:

  • steipete: Authored the audit extraction and the current proposed classifier; history shows concentrated recent work across this audit and Gateway-auth surface. (role: recent audit and Gateway contributor; confidence: high; commits: 0a633d836fba, 90a2792a8a52; files: src/security/audit-gateway-config.ts, src/gateway/auth-resolve.ts)
  • vincentkoc: Commit history identifies the explicit loopback trusted-proxy feature work, including the original loopback opt-in repair. (role: historical trusted-proxy feature owner; confidence: medium; commits: 7b18bd03bb6c; files: src/gateway/auth.ts, docs/gateway/trusted-proxy-auth.md)

Rank-up moves

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

  • Require a loopback-capable trusted-proxy configuration before suppressing the diagnostic and cover missing allowLoopback and missing loopback-source cases.

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.

@steipete

Copy link
Copy Markdown
Contributor Author

Addressed the actionable loopback-setup guidance gap and the related Rank-up move without restoring the incorrect missing-auth exposure diagnostic.

gateway.loopback_no_auth says unauthenticated access is possible and recommends a token. Neither describes a trusted-proxy setup whose loopback consent or trusted source is missing: the request is rejected, and mixed token configuration is forbidden. The existing gateway.trusted_proxy_auth critical finding remains present for both valid and invalid proxy configurations. Its remediation now explicitly states:

Same-host proxy requests are rejected unless gateway.auth.trustedProxy.allowLoopback=true and gateway.trustedProxies includes their loopback source; enable only for a deliberate same-host trust boundary.

This is a diagnostic repair, not an authentication policy change or a claim that mode alone proves usable ingress. Five new regression cases cover missing consent, missing matching loopback source, valid exact IPv4, valid loopback CIDR, and valid IPv6 configuration. Each requires the critical guidance, preserves the existing loopback opt-in warning where enabled, and excludes the false unauthenticated-access finding. All five failed before the guidance change; all 43 focused audit tests pass afterward. Runtime matching remains CIDR-aware; the audit's stricter localhost helper remains scoped to X-Real-IP risk scoring and is not reused as an admission predicate.

The final PR is net zero production lines. No config/defaults, runtime authentication, finding severity, or new diagnostic branch changed. Fresh independent isolated review found no P0 issues. Exact-source built CLI and live synthetic Gateway admission proof is recorded separately with its actual source identity and limits; it does not claim external identity-provider or browser proof.

@steipete
steipete merged commit e68aa7b into main Aug 27, 2026
237 checks passed
@steipete
steipete deleted the codex/why-simplify-proxy-20260827 branch August 27, 2026 22:26
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
…law#131196)

* fix(security): recognize loopback trusted proxy authentication

* fix(security): explain same-host trusted proxy requirements
steipete added a commit that referenced this pull request Aug 28, 2026
Share exact-IP and CIDR parsing between the trusted-proxy wizard and runtime matching. Reject malformed and empty list entries with expected-form guidance, preserve runtime matcher behavior, and recognize loopback CIDR aliases for the existing explicit consent prompt. Follow up on #131132; the diagnostic correction in #131196 did not validate this input.
steipete added a commit that referenced this pull request Aug 28, 2026
…trusted proxies (#131475)

* fix(onboard): probe remote gateways with saved TLS pins

Honor the configured remote certificate pin in onboarding and configure readiness probes while keeping trust scoped to the exact saved endpoint. Retain explicit-pin precedence and exercise the real self-signed TLS handshake, rejection before credentials, and wizard config propagation. Follow up on #131042.

* fix(configure): validate trusted proxy addresses with the runtime parser

Share exact-IP and CIDR parsing between the trusted-proxy wizard and runtime matching. Reject malformed and empty list entries with expected-form guidance, preserve runtime matcher behavior, and recognize loopback CIDR aliases for the existing explicit consent prompt. Follow up on #131132; the diagnostic correction in #131196 did not validate this input.

* fix(configure): align readiness and loopback consent with runtime

Keep remote TLS pins and edge-auth inputs through health readiness polling by reusing the existing probe parameters. Keep remote config out of local health probes and cover polling through a real TLS socket.

Check loopback consent against runtime proxy matching for both parsed bases and containing ranges, preserving mapped IPv4 and exact IPv6 zone semantics. Extend consent and URL-binding coverage without changing runtime authorization or config schemas.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…trusted proxies (openclaw#131475)

* fix(onboard): probe remote gateways with saved TLS pins

Honor the configured remote certificate pin in onboarding and configure readiness probes while keeping trust scoped to the exact saved endpoint. Retain explicit-pin precedence and exercise the real self-signed TLS handshake, rejection before credentials, and wizard config propagation. Follow up on openclaw#131042.

* fix(configure): validate trusted proxy addresses with the runtime parser

Share exact-IP and CIDR parsing between the trusted-proxy wizard and runtime matching. Reject malformed and empty list entries with expected-form guidance, preserve runtime matcher behavior, and recognize loopback CIDR aliases for the existing explicit consent prompt. Follow up on openclaw#131132; the diagnostic correction in openclaw#131196 did not validate this input.

* fix(configure): align readiness and loopback consent with runtime

Keep remote TLS pins and edge-auth inputs through health readiness polling by reusing the existing probe parameters. Keep remote config out of local health probes and cover polling through a real TLS socket.

Check loopback consent against runtime proxy matching for both parsed bases and containing ranges, preserving mapped IPv4 and exact IPv6 zone semantics. Extend consent and URL-binding coverage without changing runtime authorization or config schemas.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant