-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: status --deep falsely reports gateway.auth.mode="none" when token auth is configured via secret reference #87815
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
openclaw status --deepcan falsely reportGateway HTTP APIs are reachable without authandgateway.auth.mode="none"even when the live gateway is configured for token auth and the structured status/audit commands confirm auth is healthy.Steps to reproduce
gateway.auth.modeastoken, with the token supplied through a secret reference rather than inline plaintext.openclaw config get gateway --jsonand confirm the gateway auth mode istoken.openclaw status --deep --jsonandopenclaw security audit --deep --json.openclaw status --deep.Expected behavior
All status and audit surfaces should agree on gateway auth state. If token auth is configured and resolves correctly,
status --deepshould not emit thegateway.http.no_authwarning or claimgateway.auth.mode="none".Actual behavior
The human-readable
openclaw status --deepoutput emitsWARN Gateway HTTP APIs are reachable without authand saysgateway.auth.mode="none". In the same environment,openclaw config get gateway --jsonreportsauth.mode: "token",openclaw status --deep --jsonreportsauthWarning: null, andopenclaw security audit --deep --jsondoes not emit a gateway-auth finding.OpenClaw version
2026.5.27 (27ae826)
Operating system
Ubuntu 26.04 LTS
Install method
pnpm
Model
Not model-specific; reproduced entirely through CLI status commands
Provider / routing chain
Not model-specific; local CLI status and security-audit commands against a token-authenticated local gateway
Additional provider/model setup details
Gateway auth was configured in token mode with the token supplied through a secret reference/provider, not inline plaintext in the config file.
Logs, screenshots, and evidence
Impact and severity
Medium. It creates a false security/configuration alarm, can send operators chasing nonexistent auth drift, and undermines trust in
status --deepas a diagnostic surface.Additional information
Root cause appears to be in the status command's secret-target selection, not the actual gateway config. On this machine, inspecting the installed runtime showed the status path did not include
gateway.auth.tokenorgateway.auth.passwordin its secret-target set, so the pretty-text status audit evaluated unresolved secret references. The dedicated security-audit path did include those secret targets, resolved the token correctly, and stayed clean.