cevoaustralia/aws-google-auth

.aws/config google_config.keyring setting overriden

Open

#153 opened on Oct 28, 2019

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Python (531 stars) (172 forks)batch import
help wantedusability

Description

I set my ~/.aws/config up with several profiles. When i want to refresh my tokens, i want the google password to be read from my keychain (which i set up earlier). So this is what the config looks like.

[profile my-admin-profile]
region = us-east-1
google_config.ask_role = False
google_config.keyring = True
google_config.duration = 3600
google_config.google_idp_id = IDP_ID
google_config.role_arn = role_arn
google_config.google_sp_id = SRV_ID
google_config.u2f_disabled = False
google_config.google_username = me@company.org

When calling aws-google-auth with just one parameter telling it the profile name to read from, it asks for the password, not honouring the google_config.keyring = True setting.

$ aws-google-auth -p my-admin-profile
Google Password: 

And even worse, it sets the config to False. So next time i try to refresh the tokens, it asks for the password again. The only way to remedy it, is to set the -k parameter. Is this intended behaviour? But i guess if you want to switch keychain off, there is another "negative" parameter needed, like -K to actively indicate you don't want the keychain and thne overriding the config file. Any thoughts are appreciated.

Contributor guide

.aws/config google_config.keyring setting overriden · cevoaustralia/aws-google-auth#153 | Good First Issue