Hacker News new | past | comments | ask | show | jobs | submit login

Such a shame, Enviroment variables are indeed difficult to work with sometimes, who sets them? in which file? Who can/will override them? typo's are also not being caught because editors dont have lists of possible variable and/or what value they are allowed to contain. you might also lose them on different containers.

Enviroment variables should be part of cgroups in some way. I dont like that any program can modify the PATH variable as example. seems like a recipe for disaster in privilege escalation.




> who sets them? in which file? Who can/will override them?

The ops team. Environment variables are a great way of separating operational concerns from business logic. Environment variables are great because your application is agnostic about how the configuration is sourced. Let the ops/infra team handle that.

> I dont like that any program can modify the PATH variable as example.

And ... why not? Child processes can't modify the environment of parent processes. Environment variables flow downwards.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: