common-fate / granted

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

Config Filed does not exist #688

Open jrwpatterson opened 2 weeks ago

jrwpatterson commented 2 weeks ago

Hi I am trying to use your wonderful software and I've used it tonnes in the past.

But a weird thing is happening. Its logging in, but when it comes back, I'm getting an error of

[✘] config file does not exist

No information why thats happening I've searched your repo and I can't find that anywhere in the code base! Its killing me!

The same config works on other users machines. I've deleted, reinstalled, nuked the cache, nuked the session token

To make matters weirder it works with some configs that are identical bar the roll name or account number

meyerjrr commented 1 week ago

Hi @jrwpatterson! Would you be able to run what is causing your issues with the GRANTED_LOG env variable set to debug? This will help in diagnosing where the config file read is getting called.

eg.

export GRANTED_LOG=debug && assume 
jrwpatterson commented 1 week ago

Ok I'll have a look Monday seems to happen sometimes and sometimes it's fine!

douglaspetrin commented 3 days ago

this is probably happening because you're missing the .aws/credentials file, or perhaps in your config file you are trying to download it but somehow it is not able to. for i.e: under your profile in your .aws/config file you have something like this to download your credentials:

[profile my_profile] credential_process = granted credential-process --auto-login --profile my_profile

see: https://docs.commonfate.io/granted/recipes/credential-process