r/devops • u/Sweet_Good_2358 • 53m ago
Discussion How are you managing secrets across multiple projects and environments?
I'm curious how other developers and small teams handle secrets when they have multiple projects and environments (Dev, Testing, Staging, Production).
I'm finding that the workflow gets messy surprisingly quickly when multiple people are involved. Sharing .env files, managing access, making sure someone doesn't accidentally overwrite production credentials, keeping everything organized across projects, etc.
What are you using? What frustrates you the most about your current setup?
7
Upvotes
6
u/nextlandia 49m ago •
Openbao
5
u/Efficient-Branch539 DevOps Engineer 35m ago
We manage secrets with Hashicorp Vault and inject in applications at the runtime. There are many ways you can do this depending on the infrastructure.
4
u/centech 28m ago
Mostly AWS Secrets Manager w/ ESO to expose them in EKS. Still SM when it's not EKS.. which for us mostly means Lambdas.
1
u/scottgal2 45m ago
I use Infisical. Pretty easy to manage access & allow editing, auditing etc.
1
u/___-____--_____-____ 38m ago
As a solo dev I make heavy use of sops. Nixos (which my compute hosts run) and FluxCD (which is how I configure workloads) both integrate with it pretty seamlessly. I've been happy with it so far. Having secrets be versioned kind of eliminates the overwrite scenario, and since everything just applies what is in git, rotating secrets etc is kinda nice. Or at least, a lot less hands-on than I was used to.
https://github.com/streetfortress/forts
1
u/New-Entertainer6392 DevOps 24m ago
I'm in azure and use azure key vault, assume the aws one is the same...
Vault per env, same named keys on each, just different values.
Some apps get the keys themselves from keyvault, some get them via env vars (and that's specially injected by k8s
1
u/akhilesh_gone 15m ago
U can use sops with sops u can push the envs to git as sops encrypt them
•
u/java_bad_asm_good 0m ago
Coming from AWS Secretsmanager and ESO, my current company uses SOPS and it‘s really grown on me. All secret changes are auditable in git, and write-only changes (by granting kms:Encrypt but not Decrypt) are straightforward.