Tips & Tricks - DeployHQ Blog

Our products pack a punch when it comes to features and it would be easy to miss some of them. Here we post helpful tips & tricks about how to use our products & services.

How to Keep API Keys Out of Your Git Repository (With Code Examples)

Posted on

One git push with a hardcoded API key can compromise your infrastructure. This guide covers .env file setup, language-specific examples, automated secret scanning with git-secrets and truffleHog, and how to deliver secrets to production safely with DeployHQ.