News for hackers. Stuff that matters.
Re:The Twelve-Factor App by parasti on Thursday October 12, 2023 @02:48PM (#37861304)
"5. If any are missing, it fails."

That's literally all you need to solve the scenario you described with .env files.

Re:The Twelve-Factor App by meowtimemania on Thursday October 12, 2023 @03:44PM (#37862184)
The difference is any time the .env config is updated, all engineers have to update their .env file.

So with .env file:

- developer adds to .env

- pushes code

- all developers see failures in dev env due to missing env var

- all developers search slack/email to figure out what went wrong

- all developers update their .env file and things are working again

————- In gp’s comment ———-

- one person works on feature that introduces new config

- failure happens in their local environment

- they update config backend and push code

- all other developers get updates with no changes needed

Re:The Twelve-Factor App by Rapzid on Thursday October 12, 2023 @04:18PM (#37862651)
You can also just supply defaults that can be locally overriden.. Benefit is they are reviewable in the same PR that adds the code depending on them..
Re:The Twelve-Factor App by throw1234651234 on Thursday October 12, 2023 @05:00PM (#37863092)
You can't keep secrets in code most of the time.
Re:The Twelve-Factor App by Rapzid on Thursday October 12, 2023 @05:14PM (#37863225)
Usually not big secrets.

I do and have done both and a blend. Secrets for external services needed in dev usually in parameter store. Kinda depends on the existing work flow. There is so much to do you should be tackling problems that move the needle and chip away at small stuff, pet peeve stuff in smaller time-boxed increments.

It depends, always it depends.

Re:The Twelve-Factor App by throw1234651234 on Thursday October 12, 2023 @04:13PM (#37862587)
Exactly, thank you for phrasing it much better than I did!