Secrets Management and Credential Security
The Day Our Database Password Went Public on GitHub
What You'll Learn
The Secrets Problem
HashiCorp Vault: The Foundation
Vault Installation and Setup
Vault Initialization
Storing Secrets in Vault
Dynamic Secrets
PostgreSQL Dynamic Secrets
AWS Dynamic Credentials
Application Integration
Node.js with Vault
Kubernetes Integration
External Secrets Operator
Vault Agent Sidecar
CI/CD Secrets Management
GitLab CI with Vault
Secret Rotation
Git Secret Scanning
Pre-commit Hook with Gitleaks
GitLab Secret Detection
GitHub Secret Scanning
Best Practices
1. Never Commit Secrets
2. Use Short-Lived Credentials
3. Principle of Least Privilege
4. Audit Everything
5. Rotate Regularly
Key Takeaways
What's Next
Last updated