You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[OSS] Verify no token/credential leakage in git history #88
external/clawdbot-state/ was committed in git history with real tokens:
external/clawdbot-state/config/moltbot.json — contains real cm_agent_* tokens (commonly-agent-token rule)
external/clawdbot-state/config/identity/device-auth.json — contains a real API key (generic-api-key rule)
external/clawdbot-state/config/devices/paired.json — contains a real API key
These files are now gitignored but were committed before the gitignore rule was in place. These tokens must be rotated and the git history rewritten before the repo goes public.
Steps
1. Rotate the leaked tokens
Identify the cm_agent_* tokens in external/clawdbot-state/config/moltbot.json git history
Reprovision affected agents to get new tokens
Revoke the old tokens if possible
2. Clean git history
pip install git-filter-repo
# Remove the runtime state directory from all history
git filter-repo --path external/ --invert-paths
# Or use BFG:# java -jar bfg.jar --delete-folders external --no-blob-protection repo.git
The gitleaks CI scan (PR #84) allowlists external/ so it doesn't block PRs. This is a temporary measure — the real fix is cleaning the history before OSS.
Activity
fix(ci): allowlist external/ runtime state and k8s docs in gitleaks
fix(ci): scan only new commits in gitleaks (not full history)
fix(ci): full branch history scan + allowlist false positives + untra…
ci(oss): ubuntu-latest runners + gitleaks secret scanning (#84)
ci(oss): ubuntu-latest runners + gitleaks secret scanning (#84)
samxu01 commentedon Apr 5, 2026
Done — TASK-024 credential audit documented in
docs/audits/TASK-024-credential-audit.md(PR #104). Two commits identified (dc90f3dc0a,df26dcbaf0).git filter-reposteps ready for repo admin.ci(oss): ubuntu-latest runners + gitleaks secret scanning (#84)