ops: rotate credentials exposed in a session transcript #44
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
During a debugging session, a
sedover~/.config/mise/config.tomlprinted values that should not have been echoed, and a laterdocker inspectgrep printed the knox node'sKNOX_AUTH_TOKEN.Exposure
Session transcripts (persisted in
opencode.dband indexed by knox) plus the opencode log contain:No values are recorded here.
Action
KNOX_AUTH_TOKEN: regenerate, re-encrypttf-net/apps/knox/secrets/knox.env.sops, redeploy, and update~/.config/knox/knox.envon the laptop.UPDATE observations SET content = replace(...)) and reconciling — optional once the values are dead.Root cause worth fixing
internal/ingest/redact.gois only applied to snippets; session ingestion stores everything verbatim. Extending redaction to session content would stop the next one.