|
|
|
|
|
by campbel
977 days ago
|
|
> If you want secure config storage on Kubernetes, you end up using Secrets, which ends up being key-value like env vars anyway. You can load the secret file directly into the app, no need to load it as env vars or keep it strictly as key-value pairs. > If you want similar security with Git you need a layer of encryption, which breaks diffs and requires additional tooling. This all leads back to why high-level deployment tools like Heroku were created. You can use tools like ejson[1] or sops[2] to get encrypted files checked into Git that have key level granularity on diffs. There is definitely a place for higher level abstractions than Kubernetes. Mostly it gives operators a standard platform to build from when teams outgrow the PaaS sandbox. [1] https://github.com/Shopify/ejson
[2] https://github.com/getsops/sops |
|
Now you're getting away from the spirit of 12factor and hard-coupling them again. The intent is for the app to consume the secrets but have no knowledge or care where they came from.
Edit: misread as "load the secrets directly into the app." Yeah, this is just env vars but different.