[cleanup] Truncate logs/app.log to remove leaked auth header #7
Loading…
Reference in a new issue
No description provided.
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?
Historical entries in
logs/app.logcontain the base64-encodedAuthorization: Basic …header from the old "Assets AQL curl for debugging" log line (already removed from source in this branch). Even after the Jira API token is rotated, this file is worth truncating so it doesn't ship stale credentials into any backup / snapshot / container image.Steps:
: > logs/app.logrg 'ATSTT3xFfGF|d2ViZXgtYm90' logs/ /tmp/logs/is.gitignored, so this is a local-only cleanup.Done locally (not committed —
logs/is.gitignored).Before:
logs/app.log= 228,569 bytes with 171 lines matching the leakedBasic <base64>Authorization header from prior debug logging.After: both
logs/app.logandlogs/webex-callbacks.logtruncated to 0 bytes.Ran a repo-wide sweep for the leaked-token signatures (
ATATT3xFfGF|ATSTT3xFfGF|xai-HuVvBmB5|d2ViZXgtYm90|BEGIN * PRIVATE KEY) withlogs/andnode_modules/excluded — no matches..envstill contains live tokens but is.gitignored.The tokens themselves still need to be treated as compromised at some point (see issue #1's blocker context) — truncation only stops the leak from spreading via a future log-share, not from any copy that was previously in memory or an offsite log ingest.