Stop pasting .env files into Slack: encrypting repo secrets with the SSH keys your team already has
Every team I've worked on starts with good intentions about secrets. Nobody wants .env files floating around in Slack DMs or random Google Docs.
Then a new engineer joins on Monday morning, wants to run the backend locally, and nobody wants to spend two hours setting up IAM roles for a cloud secrets manager just so they can get a local Postgres URL and a Stripe test key. So someone sighs, copies .env.local, and pastes it into Slack. Six months later there are four slightly different copies of .env floating around and nobody knows which API key is still valid.
Why heavy secret managers fail at the local dev layer
Tools like Vault or AWS Secrets Manager are great for production pods, but for local development they add friction right where people are least patient. If pulling a dev config requires a VPN, an SSO login that expires every 8 hours, and a custom CLI wrapper, developers will work around it.
Using SSH keys you already trust
Every developer who can git push to your repo already has an ed25519 SSH key on their machine, and their public key is usually sitting right there on GitHub (https://github.com/<user>.keys).
Tools like age (or sops / dotenc) let you encrypt .env.dev directly against a list of SSH public keys and commit .env.dev.enc straight into the repository.
bash# Encrypt .env.dev for three teammates using their existing SSH pubkeys age -e -R ./team_ssh_keys.txt -o .env.dev.enc .env.dev # Teammate decrypts locally with their private key—no extra logins age -d -i ~/.ssh/id_ed25519 .env.dev.enc > .env.dev
When someone joins, you add their public key to team_ssh_keys.txt, re-encrypt once, and git push. When someone leaves, you remove their key and rotate the dev secrets. Git history tracks who changed what, nobody has to install a cloud agent, and Slack stays clean.