News for hackers. Stuff that matters.
Re:Ask HN: Why most CLIs are not using keyring? by viraptor on Friday February 03, 2023 @09:44PM (#34650851)
Don't know about kube, but awscli and a few others decouple the idea of getting credentials and doing the actions. You can use the password directly through them every time, but a better way is to either use the preconfigured profile or some wrapper which does use the keychain. For example https://github.com/99designs/aws-vault/ supports one-off commands and shell sessions with pre-populated tokens. There's also similar cf-vault.

Terraform also can be configured to use environment variables (and I'm sure other utilities) which allows similar "use a separate tool for creds" approach.

(kube apparently has https://github.com/chrisns/kubectl-passman)

Re:Ask HN: Why most CLIs are not using keyring? by AlexITC on Friday February 03, 2023 @11:27PM (#34651529)
> For example https://github.com/99designs/aws-vault/ supports one-off commands and shell sessions with pre-populated tokens.

I came to recommend aws-vault, it is pretty handy to not store aws keys in plain text.

Re:Ask HN: Why most CLIs are not using keyring? by e1g on Saturday February 04, 2023 @12:47PM (#34656379)
Another excellent option for AWS is https://github.com/common-fate/granted