You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK is not compatible with an external credential_process
Expected Behavior
Specifying a credential_process in the credentials file should allow a user of the sdk to authenticate.
Current Behavior
The credential_process option is ignored.
Possible Solution
I have some thoughts about how to implement this and I would be happy to work on a PR, I just wanted to make sure that was something that would be useful. If so we can talk more about an implementation.
Steps to Reproduce
Put a credentials_process line in ~/.aws/credentials
Try to build a client with a ProfileCredentialsProvider
Context
Your Environment
AWS Java SDK version used: 2.0.0-preview-9
JDK version used: 1.8.0_161
Reacted by Jeroen van Dijk, Loren Gordon, Trevor Howard, Steve Coffman, Michael Tu, Anish Patel, Dongjoon Hyun, Stefan Krist and Luke
Can you explain your use case for supporting credential_process?
At a glance, it seems like similar functionality can be achieved by a custom implementation of AwsCredentialsProvider that communicates with the external process.
I'm sure that extending AwsCredentialsProvider would work. My thoughts were that since the Python API and the CLI support credential_process it might be nicer to users to add that functionality to the Java API. Especially since code surrounding credential_process could have security consequences.
We've internally discussed the credentials features that we intend to support in the non-Python/CLI SDKs, and credential_process isn't currently one we intend to roll out to the other SDKs at this time.
+1s on this issue will help show the customer demand for the feature and will enable us to roll out something similar to credential_process in the non-Python/CLI SDKs.
+1 though "something similar" is not what I'm looking for. I want to be able to configure the AWS shared config file, and have every SDK support every option the same way. Anything less feels like it breaks the user experience.
For what it's worth, I have added support for credential_process to a Clojure library that wraps this library (mcohen01/amazonica#391) It's currently being evaluated.
Activity
dagnir commentedon Jun 7, 2018
@tyehle Thanks for your interest in the SDK!
Can you explain your use case for supporting
credential_process?At a glance, it seems like similar functionality can be achieved by a custom implementation of
AwsCredentialsProviderthat communicates with the external process.tyehle commentedon Jun 11, 2018
I'm sure that extending
AwsCredentialsProviderwould work. My thoughts were that since the Python API and the CLI supportcredential_processit might be nicer to users to add that functionality to the Java API. Especially since code surroundingcredential_processcould have security consequences.millems commentedon Jun 12, 2018
We've internally discussed the credentials features that we intend to support in the non-Python/CLI SDKs, and
credential_processisn't currently one we intend to roll out to the other SDKs at this time.+1s on this issue will help show the customer demand for the feature and will enable us to roll out something similar to
credential_processin the non-Python/CLI SDKs.JathinSanghvi commentedon Aug 13, 2018
+1
ChristianWilkie commentedon Aug 14, 2018
+1
jnewbigin commentedon Aug 16, 2018
+1
zachahuy-zz commentedon Sep 27, 2018
+1
bijaya1 commentedon Sep 28, 2018
+1
lorengordon commentedon Oct 11, 2018
+1 though "something similar" is not what I'm looking for. I want to be able to configure the AWS shared config file, and have every SDK support every option the same way. Anything less feels like it breaks the user experience.
Add support for credentials_process in ~/.aws/credentials file
Add support for credentials_process in ~/.aws/credentials file
Add support for credentials_process in ~/.aws/credentials file
Add support for credentials_process in ~/.aws/credentials file
jeroenvandijk commentedon Oct 26, 2018
For what it's worth, I have added support for
credential_processto a Clojure library that wraps this library (mcohen01/amazonica#391) It's currently being evaluated.millems commentedon Dec 12, 2018
Created a PR in the 1.11.x repo for this feature as well: aws/aws-sdk-java#1835 (not yet tested in windows)
zachahuy-zz commentedon Feb 20, 2019
Looks like this has been implemented and works fine for us.
beneshed commentedon Mar 3, 2019
@zachahuy where is it? / where do you see it? sdkv2? sdkv3?
millems commentedon Mar 4, 2019
It hasn't been implemented in v2 yet.
Merge pull request #455 from aws/staging/823954bb-0c99-4c99-bb58-7e4b…