Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass API key as an environment variable #4

Closed
Miouge1 opened this issue Jul 13, 2018 · 1 comment
Closed

Pass API key as an environment variable #4

Miouge1 opened this issue Jul 13, 2018 · 1 comment

Comments

@Miouge1
Copy link
Contributor

Miouge1 commented Jul 13, 2018

Passing an API key or password via an argument is not safe as all users on the system can see it in the process list.

Passing this type of secrets via an environment variable (or config file) is safer. It would be something like:

$ cat apikey
UPTIMEROBOT_API_KEY=foobar
$ source apikey
$ uptimerobot ...
@fleaz
Copy link

fleaz commented Jul 13, 2018

+1 for config file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants