News for hackers. Stuff that matters.
Re:The Twelve-Factor App by kagakuninja on Thursday October 12, 2023 @01:54PM (#37860530)
I don't use kubernates. We have JVM servers running on AWS. We load secrets from Secrets Manager. Configs are mostly HOCON files stored in S3. The knowledge of where to find them is configured via env vars.

We use a custom setup in which the config values are loaded from multiple sources actually, so we could put everything into secrets manager, or load them all from env vars or HOCON files.

If we had to set every config value in ECS / lambda using env vars, it would be a major pain in the ass, and error prone.

Re:The Twelve-Factor App by pojzon on Thursday October 12, 2023 @02:12PM (#37860775)
> We load secrets from Secrets Manager

And how your apps authenticate to Secrets Manager ? Did you ever call `env` on a pod that has IRSA configured ?

This is just a middle step to do exactly the same thing but instead of using envFromSecret you use envFromSM

Re:The Twelve-Factor App by maccard on Thursday October 12, 2023 @04:13PM (#37862584)
Not OP but an IAM role with scoped access to secrets. Better again, using secretsFrom in the task definition which injects the secret as an environment variable for you.
Re:The Twelve-Factor App by pojzon on Friday October 13, 2023 @05:08PM (#37875653)
IRSA in pods and containers is translated to env vars. That was the point.

That if you dont want to pull in k8s dependencies to the code, at the end every approach ends up as a mounted file or env vars.