RSA private keys should NEVER be stored in the project directory, even if they are gitignored.
All RSA keys have been moved to secure locations:
- Service Keys:
~/.snowflake/keys/ - User Keys:
~/.ssh/
✅ No keys are tracked in git - Verified with git ls-files
✅ All .p8 and .pub files are gitignored - See lines 40-41 in .gitignore
✅ Keys have been moved to secure locations - No keys remain in project directory
- Never store keys in the project directory
- Always use absolute paths to keys in your .env file:
SNOWFLAKE_PRIVATE_KEY_PATH=/Users/username/.snowflake/keys/snowddl_service_key.p8 - Set restrictive permissions on private keys:
chmod 400 ~/.snowflake/keys/*.p8
To verify no keys are exposed:
# Check for any key files in project
find . -name "*.p8" -o -name "*.pub" | grep -v ".venv"
# Verify gitignore is working
git check-ignore *.p8 *.pub
# Check if any keys are tracked
git ls-files | grep -E "\.(p8|pub)$"All commands should return empty or confirm files are ignored.
Last Security Audit: September 28, 2025 Status: ✅ SECURE - No keys exposed