Ask HN: Do you read Secrets from Environment Variables

https://news.ycombinator.com/item?id=39276346
by tester457 • 2 years ago
4 7 2 years ago

The Command Line Interface Guidelines [1] says:

Do not read secrets from environment variables

Secrets should only be accepted via credential files, pipes, `AF_UNIX` sockets, secret management services, or another IPC mechanism

Which one of these do you use? On github it seems common for projects to use environment variables for secrets.

Do you use secret management services for work only, or do you use them in your personal projects too?

[1] https://clig.dev/#environment-variables

Related Stories

Loading related stories...

Source preview

news.ycombinator.com