Nike-Inc / gimme-aws-creds

A CLI that utilizes Okta IdP via SAML to acquire temporary AWS credentials
Apache License 2.0
930 stars 262 forks source link

`force_classic` value is overridden by default when using profile inheritance #463

Closed noamcohen97 closed 6 months ago

noamcohen97 commented 6 months ago

Expected Behavior

The following configuration should set force_classic=False in the myprofile profile

[mybase-level1]
client_id = bar
[mybase-level2]
inherits = mybase-level1
aws_appname = baz
force_classic = False
[myprofile]
inherits = mybase-level2
client_id = foo
aws_rolename = myrole

When inheriting a profile, if force_classic = False is set in the parent profile, the default value force_classic = True should not be set in the child profile

Current Behavior

force_classic=True in the myprofile profile with the above configuration