hashicorp / go-secure-stdlib

Mozilla Public License 2.0
64 stars 24 forks source link

Read `AWS_PROFILE` to enable Shared Credentials provider #11

Closed vinay-gopalan closed 3 years ago

vinay-gopalan commented 3 years ago

This PR uses the Profile field that already existed in the AWS Credentials Config. It reads from the AWS_PROFILE environment variable and uses this value in the GenerateCredentialChain method to enable the Shared Credentials Provider.

The addition of these changes allows the use of source_profile fields that point to a named profile with credentials for assuming roles. This aims to fix:

jefferai commented 3 years ago

Tagged awsutil/v0.1.5

jeffery commented 2 years ago

How can I tell if this fix is part of vault release? I am currently on vault 1.9.1 and the issue reported in https://github.com/hashicorp/vault/issues/5767 is not fixed for me.

jeffery commented 2 years ago

Hey @vinay-gopalan do you have a test case which this issue was determined to be fixed?