common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
964 stars 91 forks source link

granted sso-tokens clear -all does not appear to remove "session-credentials" #490

Open JohnPolansky opened 10 months ago

JohnPolansky commented 10 months ago

I'm trying to find a command to remove all granted credentials both SSO/CLI/SESSION. When using SSO to sign in in Keychain you see the following created:

Unfortunately it appears the command:

granted sso-tokens clear -all
[✔] Cleared all saved tokens

ONLY removes the granted-aws-sso-tokens and misses the granted-aws-session-credentials this means you are not fully logged out since the aws sts get-caller-identity --profile <profile> command STILL works.

Is there a way to properly remove all sign-in information? or can we updated it to have granted sso-sesssions clear -all or the like?

Eddie023 commented 9 months ago

@JohnPolansky There is a granted cache clear command from where you can select specific cached granted-aws-session-credentials and clear it.

However, as you mentioned, a single command to clear all should be an excellent addition.