Skip to content

fix(gateway): point admin auto-approve warnings at identityScopes - #129538

Merged
steipete merged 1 commit into
mainfrom
steipete/sleepy-colden-f3762e
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/sleepy-colden-f3762e

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The startup SECURITY WARNING for gateway.auth.trustedProxy.deviceAutoApprove.scopes containing operator.admin, and the remediation text of the critical gateway.trusted_proxy_device_auto_approve_admin security-audit finding, still tell operators to require manual approval "until per-identity roles are available". Per-identity admin grants shipped as gateway.auth.identityScopes (documented and recommended in docs/gateway/trusted-proxy-auth.md), so the runtime guidance points operators at a nonexistent future feature instead of the shipped fix.

This is operator-facing guidance on a critical finding, and stale guidance has real cost: on team.openclaw.ai an interim host-side "approve everything" script outlived its reason for existing precisely because the guidance never got updated to name the shipped alternative.

Why This Change Was Made

Both strings (plus their exact-string test copies) now direct operators to grant admin per identity via gateway.auth.identityScopes, matching what the trusted-proxy docs already recommend. Repo-wide grep shows no other "per-identity roles are available/become available" stragglers.

User Impact

Operators who enable admin device auto-approval (or run openclaw security audit against such a config) now get remediation guidance naming the shipped config surface instead of being told to wait for a feature that already exists. No behavior change: message text only.

Evidence

  • String-only diff: 4 files, 4 lines changed, production LOC net 0 (two message literals + two exact-string test expectations).
  • node scripts/run-vitest.mjs src/gateway/server.auth.trusted-proxy-device-autoapprove.test.ts src/security/audit-gateway-exposure.test.ts — 12 tests passed across both shards.
  • oxfmt --check clean on all four files.
  • Autoreview (Codex, gpt-5.6-sol, high): clean, no accepted/actionable findings.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete

Copy link
Copy Markdown
Contributor Author

Landing blocked by an infra flake, not this diff: checks-node-compact-large-2 deterministically fails two unrelated agent.test.ts terminal-session scenarios for this PR's specific lane bundling (agentic-agents-core-runner-cli-3 + agentic-gateway-methods). Forensics — including the 19ms-mock vs 216ms-real-SQLite timing proof of an isolate:false mock-binding race — are in #129677. Local proof on this head: the full src/gateway/server-methods shard (199 files / 3682 tests) passes under default, maxWorkers=3, and exact CI predecessor ordering; main and sibling gateway PRs (#129506, #129316) pass the same-named check with different bundling. Will land once the runner race is fixed or the bundling shifts.

The startup SECURITY WARNING and the critical security-audit remediation for
gateway.auth.trustedProxy.deviceAutoApprove.scopes containing operator.admin
still told operators to wait "until per-identity roles are available".
Per-identity admin grants shipped as gateway.auth.identityScopes and the
trusted-proxy docs already recommend them; the runtime guidance now names
that shipped fix instead of a nonexistent future feature.
@steipete
steipete force-pushed the steipete/sleepy-colden-f3762e branch from 6f5b0b6 to 7cb581f Compare August 25, 2026 23:51
@steipete
steipete merged commit d3c5d8e into main Aug 26, 2026
196 checks passed
@steipete
steipete deleted the steipete/sleepy-colden-f3762e branch August 26, 2026 00:13
@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 26, 2026
…enclaw#129538)

The startup SECURITY WARNING and the critical security-audit remediation for
gateway.auth.trustedProxy.deviceAutoApprove.scopes containing operator.admin
still told operators to wait "until per-identity roles are available".
Per-identity admin grants shipped as gateway.auth.identityScopes and the
trusted-proxy docs already recommend them; the runtime guidance now names
that shipped fix instead of a nonexistent future feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant