scaleway-cli icon indicating copy to clipboard operation
scaleway-cli copied to clipboard

Please add support for credentials management

Open gdamjan opened this issue 3 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Keeping secrets such as the secret_key in plain text files is dangerous. The cli should really store them in the platforms credentials manager.

How I imagine scw could expose this functionality

Take a look how aws-vault does it, by default it'll use the most suitable backend for the platform https://github.com/99designs/aws-vault#vaulting-backends

additionally, the credentials backend can be forced with the AWS_VAULT_BACKEND environment variable. The also have their implementation abstracted as a Go module https://github.com/99designs/keyring

References

  • https://github.com/99designs/aws-vault#vaulting-backends
  • https://github.com/99designs/keyring

gdamjan avatar Apr 11 '22 18:04 gdamjan