Repository navigation
Redact bare Fireworks API keys - #98226
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 30, 2026, 9:33 PM ET / 01:33 UTC. Summary Reproducibility: yes. Source inspection on current main shows the Fireworks raw-token prefixes are absent from both Node and browser redaction corpora, and the linked issue gives synthetic calls against those exact entry points. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this focused redaction fix after required CI, or keep the linked issue open until an equivalent patch ships. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main shows the Fireworks raw-token prefixes are absent from both Node and browser redaction corpora, and the linked issue gives synthetic calls against those exact entry points. Is this the best way to solve the issue? Yes. Updating both redaction corpora and the Node fast-path prefilter with boundary-aware patterns is the narrow maintainable fix, and the current potential merge commit avoids the unrelated stale-base drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 35af831fd0bc. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph change authorizedThis PR includes dependency graph changes. A repository admin or member of
A later push changes the PR head SHA and requires a fresh security approval. |
|
/allow-dependencies-change |
|
/allow-dependencies-change |
|
Merged via squash.
|
|
Landed verification for
Linked issue #98225 auto-closed on merge. Post-land duplicate searches found no separate related issue or PR. |
Closes #98225
What Problem This Solves
Fixes an issue where Fireworks users could have bare API key material shown unchanged in logs, tool output, or Control UI tool details when the key was not attached to a sensitive field name such as
FIREWORKS_API_KEY.Why This Change Was Made
OpenClaw already redacts generic API-key assignments, auth headers, and many provider-specific raw token prefixes. Fireworks raw token prefixes were missing from the default Node redaction pattern set, the fast-path prefilter, and the browser-only Control UI display redactor.
This adds Fireworks
fw-...,fw_..., andfpk_...token shapes with a non-identifier left boundary so short ordinary strings remain visible. It does not change Fireworks authentication or provider behavior.User Impact
Fireworks provider users get the same raw-token masking protection as other first-class provider users across logs and browser-rendered tool details. Short non-key strings such as
fw-tooshort,fw_tooshort, andfpk_tooshortcontinue to render unchanged.Evidence
Runtime proof on PR commit
17c915e0b2dea8cbc6cd9006081b72e8fe953359, using synthetic in-memory token strings only ('fw-' + 'C'.repeat(40),'fw_' + 'A'.repeat(40), and'fpk_' + 'B'.repeat(40)). No real credentials were used.The proof exercises the actual PR implementations of
redactSensitiveText(..., { mode: "tools" })and the browser-onlyredactToolDetail(...)entrypoint.Focused verification:
node scripts\run-vitest.mjs src\logging\redact.test.ts --testNamePattern="masks expanded vendor-prefix token corpus|does not redact ordinary identifiers containing short token-prefix substrings"1 Test File passed2 passed | 106 skippednode scripts\run-vitest.mjs ui\src\ui\browser-redact.test.ts --testNamePattern="redacts tool detail credential families without Node config imports"1 Test File passed1 passed | 1 skippedgit diff --check$env:PYTHONUTF8='1'; python .agents\skills\autoreview\scripts\autoreview --mode localautoreview clean: no accepted/actionable findings reported