Menu

I want to put secrets and env vars in git, fight me

#devops#redditdevops#secrets#yaml#repo
Reading 0:00
15s threshold

So at work we have all the Kubernetes manifests in one repo then we have ArgoCD pointed at that repo. Within that repo we use kustomize and have a pretty vanilla kustomize setup:

/services /my-app /base deployment.yaml ... /overlays /dev kustomization.yaml /prod kustomization.yaml

So basically I would love to be able to do something like this:

/services /my-app /base deployment.yaml ... /overlays /dev kustomization.yaml .env <- secrets stored as plain text here /prod kustomization.yaml

I understand why you don't want to commit secrets to git. I just wish there was a good way to do it. I have seen things like SOPS but I don't like that the secrets are encrypted. Having to deal with them being encrypted is as much of a headache as just using an external secrets manager.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.