Repository navigation
fix(gateway): point admin auto-approve warnings at identityScopes - #129538
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
7460b51 to
6f5b0b6
Compare
|
Landing blocked by an infra flake, not this diff: |
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.
6f5b0b6 to
7cb581f
Compare
|
Merged via squash.
|
…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.
What Problem This Solves
The startup
SECURITY WARNINGforgateway.auth.trustedProxy.deviceAutoApprove.scopescontainingoperator.admin, and the remediation text of the criticalgateway.trusted_proxy_device_auto_approve_adminsecurity-audit finding, still tell operators to require manual approval "until per-identity roles are available". Per-identity admin grants shipped asgateway.auth.identityScopes(documented and recommended indocs/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 auditagainst 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
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 --checkclean on all four files.