homelab/.gitignore.md
nathan 623fdec2bf feat(security): add .gitignore and protection guide to prevent sensitive file commits
docs(audit): create comprehensive security audit report with critical findings and remediation steps
2026-04-12 00:16:21 -04:00

1.0 KiB

.gitignore Protection Guide

Created: April 12, 2026
Purpose: Prevent accidental commit of sensitive files

What This File Does

This .gitignore protects your homelab from accidentally committing:

  • .env files containing secrets
  • Private SSH keys and certificates
  • Backup files that might contain sensitive data
  • Log files with access tokens
  • Local configuration overrides

Verification

Check that .gitignore is working:

# Create a test .env file
echo "SECRET=test123" > test.env

# Try to see if Git tracks it
git status

# You should NOT see test.env in the output
# Clean up
rm test.env

Already Committed Secrets?

If secrets were already committed to Git history, see: