Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.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
`openclaw doctor --fix` and `openclaw secrets audit` flag
`models.providers.wafer-zdr.request.headers.Wafer-ZDR` as a
plaintext secret-bearing field.
The value is `"required"` — a static routing string, not a credential.
The name-heuristic appears to be over-triggering on the header name
`Wafer-ZDR` despite it containing no documented auth/credential fragment
(`authorization`, `x-api-key`, `token`, `secret`, `password`,
`credential`).
Expected: static non-credential routing headers should not trigger the
plaintext secret warning.
Actual: Doctor reports:
WARNING: openclaw.json contains plaintext secret-bearing config fields.
Paths: models.providers.wafer-zdr.request.headers.Wafer-ZDR
Version: 2026.5.28 (e932160) | OS: Windows
Reacted by clawsweeper
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.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
Activity
clawsweeper commentedon Jun 3, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 1, 2026, 8:22 AM ET / 12:22 UTC.
Summary
Keep open: current
mainstill deliberately reports a plaintext finding for staticmodels.providers.*.request.headers.*values, while its own direct-header path and the documented audit policy use a name-based sensitivity rule. The linked candidate PR was closed unmerged, so it is not implementation provenance. Likely related people: Peter Lee (medium) and lukaIvanic (medium) are the strongest history routes for the secrets/Doctor surfaces.Reproducibility: yes. —at source level with high confidence. Current Doctor and audit tests construct a static
X-Proxy-Regionrequest header and explicitly expect the false-positive warning/finding, matching the reportedWafer-ZDRmechanism.Root-cause cluster
Relationship:
canonicalCanonical: #89664
Summary: This issue is the canonical report for static request-header false positives; the linked PR was a candidate implementation but closed unmerged.
Members:
fixed_by_candidate: [codex] fix security audit request headers #95303 - Its body explicitly targets this issue's request-header policy mismatch, but it closed unmerged and therefore remains only a candidate repair.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
Current source proves the defect, but the existing
clawsweeper:no-new-fix-prand security-review routing signals mean a new automated repair should not be dispatched from this review.Security
Needs attention: The defect is a security-diagnostic policy mismatch; any repair must preserve warnings for genuinely credential-bearing request headers.
Review details
Best possible solution:
Apply the existing shared model-provider header-sensitivity policy to
models.providers.*.request.headers.*in both Doctor and the secrets audit, with regression coverage for static routing headers and sensitive authorization headers.Do we have a high-confidence way to reproduce the issue?
Yes—at source level with high confidence. Current Doctor and audit tests construct a static
X-Proxy-Regionrequest header and explicitly expect the false-positive warning/finding, matching the reportedWafer-ZDRmechanism.Is this the best way to solve the issue?
Yes. Reusing the existing name-based sensitivity policy for request headers is the narrowest coherent fix because it aligns the two audit paths, direct-header sibling behavior, and the documented policy while preserving sensitive-header detection.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Authorization,X-API-Key, and provider-specific token or secret headers.Codex review notes: model internal, reasoning high; reviewed against 142ad75c4336.
Label changes
Label justifications:
P2: This is a bounded false-positive security-audit defect that creates operator noise but does not stop provider runtime traffic.impact:security: Doctor and the secrets audit incorrectly classify a non-secret value on a credential-capable surface, weakening trust in security diagnostics.impact:auth-provider: The affected configuration is a model-provider request-header surface used for provider routing and authentication transport.Evidence reviewed
Security concerns:
src/secrets/model-provider-header-policy.ts:31The current policy is intentionally conservative. A repair should exempt only names that fail the shared sensitivity predicate and must retain positive coverage for
Authorizationand similar credential headers.Confidence: 0.95
What I checked:
isLikelySensitiveModelProviderHeaderNameonly when the target id ismodels.providers.*.headers.*; request transport headers therefore continue to reach the generic plaintext warning path. (src/commands/doctor-security.ts:215, 0991fad3a34b)models.providers.*.request.headers.*. (src/secrets/audit.ts:217, 0991fad3a34b)X-Proxy-Regionunderrequest.headersto produce a Doctor warning and aPLAINTEXT_FOUNDaudit finding, whereas the same static header under direct provider headers is exempt. (src/commands/doctor-security.test.ts:411, 142ad75c4336)docs/cli/secrets.md. (docs/cli/secrets.md:65, 142ad75c4336)models.providers.*.request.headers.*as an audited SecretRef-capable target, and the configuration docs describe it as extra headers merged with provider defaults. (src/secrets/target-registry-data.ts:283, 142ad75c4336)Likely related people:
fix(config,secrets)history entry covering the current Doctor/audit file set, making this the strongest available route for the audited-secret behavior. (role: recent secrets-area contributor; confidence: medium; commits: 8539640abc3c; files:src/secrets/audit.ts,src/commands/doctor-security.ts)src/commands/doctor-security.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.steipete commentedon Oct 24, 2026
Thanks for filing this. We're closing older issues that no longer look actionable on current
main.Static request header values are deliberately flagged by the audit as potential plaintext secrets. Moving the value to a SecretRef silences it; please open a fresh issue if you want to propose a different audit rule.