Phineas / lanyard

🏷️   Expose your Discord presence and activities to a RESTful API and WebSocket in less than 10 seconds
https://discord.gg/lanyard
MIT License
967 stars 143 forks source link

Pipe docker password instead of using it as an argument #161

Closed kashalls closed 2 years ago

kashalls commented 2 years ago

Passing DOCKER_PASSWORD via stdin is more secure, since arguments are visible in the process tree.

It might not make a difference, but passing data through stdin involves passing it through a file descriptor which can be read by using standard io calls. Command line arguments are kept in a processes argv in memory, any unprivileged can access that address of memory to view the arguments.