Repository navigation
fix(store): keep the reveal control for URL credentials after storage (#1523) - #1538
Conversation
…als still reveal (#1523) A URL-only credential is stored as [REDACTED], which the classifier can't re-parse, and the storage redactor and agent normalizer dropped the marker. Persist sensitive: true on redacted entries, keep it on the agent path, and let the classifier trust it, as the 1.7 line does.
|
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! |
Found while checking #1523 before the next candidate. A credential that's only detectable from the URL, like
MY_DSN=postgres://u:p@h/db, lost its reveal control once stored: the store wrote[REDACTED]and droppedsensitive, so nothing could re-derive it.AgentClientstripped the marker the same way. Values were never exposed.This keeps
sensitive: trueon redacted entries only, the way 1.7 does, and the agent normalizer keeps a marker that's exactlytrue. Tests check that no raw value lands in the stored JSON.Rows already stored by rc.10 have no marker, so a URL-only entry stays unrevealable until the next watcher refresh re-stores it.
Push gate passed. API payload tested. The rendered button and a live agent round trip weren't exercised.
Changelog
sensitive: true, so URL credentials remain classified after their values become[REDACTED].isSensitiveEnvEntryrecognizes[REDACTED]as sensitive only whensensitiveis exactlytrue.ContainerRuntimeEnvaccepts an optionalsensitiveflag.AgentClient.buildContainerReportpreserves it only when it is exactlytrue.Concerns