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

civo apikey save stores API key in a world-readable file. #32

Closed
irgeek opened this issue Nov 5, 2020 · 1 comment
Closed

civo apikey save stores API key in a world-readable file. #32

irgeek opened this issue Nov 5, 2020 · 1 comment

Comments

@irgeek
Copy link

irgeek commented Nov 5, 2020

Using civo apikey save to save an API key creates a .civo.json file that is world readable:

hostname ~ $ ls -l ~/.civo.json
-rw-r--r--  1 user  group  234  5 Nov 13:45 /Users/user/.civo.json

At the very least that file should not have read permissions for the group and others, like this:

hostname ~ $ chmod go-r .civo.json
hostname ~ $ ls -l ~/.civo.json
-rw-------  1 user  group  234  5 Nov 13:45 /Users/user/.civo.json
@alejandrojnm
Copy link
Member

I will check this, thank for let me know

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