Skip to content

feat: scrub secrets from conversation.jsonl (#41) - #97

Merged
itscooleric merged 2 commits into
devfrom
feat/scrub-conversation-jsonl
Mar 26, 2026
Merged

itscooleric merged 2 commits into
devfrom
feat/scrub-conversation-jsonl

Conversation

@itscooleric

Copy link
Copy Markdown
Owner

Scrubs API keys, tokens, and secret env var values from conversation.jsonl at every copy point in session-logger. Literal value replacement + regex patterns for Anthropic/OpenAI/GitHub/GitLab tokens.

Tested locally — catches sk-ant-, ghp_, github_pat_, glpat-, sk-*, and all SECRET_NAMES values.

itscooleric and others added 2 commits March 25, 2026 14:12
New scrub-jsonl.py script redacts secrets in JSONL files via:
1. Literal env var value replacement (SECRET_NAMES blocklist)
2. Regex patterns for API keys/tokens (Anthropic, OpenAI, GitHub, etc.)

Wired into session-logger.sh at all three conversation copy points
(initial watcher copy, periodic re-sync, final cleanup copy).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Status bar now reads `[clide v5.1]` instead of just `[clide]`.
Reads from /etc/clide-version (baked at build time).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@itscooleric
itscooleric marked this pull request as ready for review March 25, 2026 19:26
@itscooleric
itscooleric merged commit 6ab0a66 into dev Mar 26, 2026
4 checks passed
@itscooleric
itscooleric deleted the feat/scrub-conversation-jsonl branch March 26, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant