Repository navigation
fix(store): redact *_KEY env values in the JSON store (#1523) - #1535
Conversation
The env reveal button and the login password toggle asked for 'eye', which had no entry, so icon() returned the raw name and nothing rendered.
ENCRYPTION_KEY, LITELLM_MASTER_KEY and similar stayed plaintext because the container redaction list had no KEY rule while the debug dump did. Add KEY as an exact segment plus the CLIENTKEY, SIGNINGKEY and ACCESSKEY compounds. HASH is left out: GIT_COMMIT_HASH style names are ordinary. The startup scrub runs on every start, so stores rc.4 already cleaned pick up the new names on the next start. It now logs how many values in how many containers it redacted, counts only.
|
No actionable comments were generated in the recent review.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Same fix as the 1.8 PR, for the 1.7 JSON store (#1523).
KEYis now an exact sensitive segment, plusCLIENTKEY,SIGNINGKEYandACCESSKEY, and the missingeyeicon is added.1.7 has no scrub marker. The scrub runs on every start and only rewrites changed docs, so stores cleaned by rc.4 pick up the new names automatically. A test seeds an rc.4-shaped store and checks the secrets are gone and a second start logs nothing.
Old store backups aren't scrubbed. Push gate passed. Reveal icon checked by tests and reading callers, not rendered.
Changelog
KEYsegments and theACCESSKEY,CLIENTKEY, andSIGNINGKEYnames. Add startup redaction for persisted container environment values, with counts-only logging and saves only when startup cleanup changes the store.eyeicon mapping for supported icon libraries. Add icon mapping tests.Concerns