4 ms·
> ... reads a file in secrets.yml format and injects secrets as environment variables into any process Meaning that every child process will subsequently have
by amelius 11y ago
> ... reads a file in secrets.yml format and injects secrets as environment variables into any process
Meaning that every child process will subsequently have access to the secrets?
- Skunkleton 11y agoAlso, /proc/<pid>/environ. There are rules on who owns this file (root, or the executing user) based on the suid bit. Regardless, you are now depending on linux permissions to protect your secrets, which begs the question: Why not just trust the filesystem? Even if /proc/<pid>/environ didn't exist, you could go through /proc/<pid>/mem to find secrets. It seems that this is designed to protect you from untrusted execution environments, which I don't see as feasible. What am I missing?
- mschuster91 11y ago> It seems that this is designed to protect you from untrusted execution environments, which I don't see as feasible. What am I missing? Shared web hosting where you share a physical machine with other users. Not everyone is into the VM craze these days, thank god
- msm23 11y agoRunning ps auxwwe on Linux, Mac OS X, and other Unix-en will show all processes for all users with their complete environment. Environment variables should not be used to share secrets.
- billhathaway 11y agoTesting on Linux, if ran as root it does, but if you are running ps auxwwe as normal user, it is only showing env variables for that user.
- jlgaddis 11y agoOn FreeBSD, at least, the ability to see processes belonging to other {g,u}id's can be turned off via a sysctl.