common-fate / granted

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

Granted Doctor Command #691

Closed meyerjrr closed 4 days ago

meyerjrr commented 5 days ago

What changed?

Adds diagnostic tooling which will allow users to better understand the issues with granted / their local configuration with AWS

the granted doctor command checks the existence of plaintext AWS SSO cached tokens and check the keychain for cached tokens, then run aws sts get-caller-identity on each cached profile to check if it's valid.

I have also added some frequent offenders of confusion that users run into, mostly surrounding Granteds configuration options.

Why?

To help Granted users debug issues they may be having requesting access with Granted

How did you test it?

run granted doctor in different scenarios with cached

Potential risks

Is patch release candidate?

Link to relevant docs PRs