1.1 KiB
1.1 KiB
Security Cleanup - April 9, 2026
What happened
Sensitive data (code exports containing potential tokens) was accidentally committed to git history in commit 2807a55.
Actions taken
- ✅ Removed sensitive files from tracking (code_export.txt, code_export.ps1.test.txt)
- ✅ Added proper .gitignore to prevent future leaks
- ✅ Used git-filter-repo to completely remove files from entire git history
- ✅ Prepared for force-push to rewrite remote history
Next steps (MANUAL)
- CRITICAL: Revoke the exposed Gitea token immediately in Gitea settings
- Generate a new Gitea token
- Update any services using the old token
- Execute:
git push --force origin masterto rewrite remote history - Notify any collaborators to re-clone the repository
Prevention
- .gitignore now blocks code_export.txt and similar files
- export_code.ps1 already has exclusions for sensitive patterns
- Always review git status before committing
Verification
After force-push, verify that sensitive files are not in history:
git log --all --full-history -- code_export.txt
# Should return nothing