common-fate / granted

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

CLI flags to specify storage and profile to clear credential cache without prompt #643

Closed jsproede closed 2 months ago

jsproede commented 2 months ago

What changed?

Added CLI flags to ClearCommand to be able to clear specific profile credential cache directly without any prompt.

Why?

We're working in an AWS environment where we are limited to an 1 hour maximum session duration. Without clearing the credential cache, we're not able to renew the session as the cached credentials are always used. We have defined certain Terminal aliases to quickly switch between different AWS profiles, therefore it would be really helpful, to be able to clear the credential cache within our aliases 🙂

How did you test it?

Potential risks

None.

Is patch release candidate?

It does not fix any bug, but it is no breaking change.