Log scrubber: redact rma_ API keys and tk_ Vikunja tokens #86
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-84-log-scrubber"
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?
What changed
The log scrubber now also redacts rma_ API keys (keeping their 10-character prefix readable) and tk_ Vikunja tokens; red-then-green C13, precommit C14.
Red, then green
bash -o pipefail -c 'eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/log_scrubber_test.exs 2>&1 | tail -3'60213ac): exit 1df7584d): exit 0Checks
bash -o pipefail -c 'eval "$(mise activate bash --shims)"; mix precommit 2>&1 | tail -3', exit 0bash -o pipefail -c 'eval "$(mise activate bash --shims)"; MIX_ENV=test mix test test/rm_analyzer/log_scrubber_test.exs 2>&1 | tail -3', exit 0Risks
Patterns are by shape: a tk_ word of 16+ letters/digits in a log line would be redacted too; a Vikunja token format other than tk_ plus alphanumerics wouldn't be. No docs change (no doc lists the scrubber's patterns). Branch is local only (fix-84-log-scrubber @
df7584din ~/work/rm-analyzer-1-6-1/rm-analyzer-84).Prover
Passed (Sonnet): Read the diff and ApiKeys' key format; the rma_ and tk_ patterns redact full tokens, leave the 10-char prefix and stk_ words alone, and the tests fail on main. Untested: other Vikunja token formats, tokens glued to a preceding word character.
Every command above was run by Fortysix's Basecamp itself, on the branch named.