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

Security issue with credential file #32

Open
jonsv322 opened this issue Dec 21, 2024 · 1 comment
Open

Security issue with credential file #32

jonsv322 opened this issue Dec 21, 2024 · 1 comment

Comments

@jonsv322
Copy link

The credential file has security issues, it can be read by group and others. This is critical since the the password is stored in clear.

-rw-r--r--@ 1 user group 208 Dec 21 10:54 /Users/user/.config/harbor-cli/config.yaml

is should be:

-rw-------@ 1 user group 208 Dec 21 10:54 /Users/user/.config/harbor-cli/config.yaml

@jonsv322
Copy link
Author

Viper configPermissions needs to be set to os.FileMode(0o600) when writing the config.yaml

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

1 participant