Skip to content

credential_process is not implemented #455

Closed

Description

@tyehle

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

Activity

  1. dagnir commented on Jun 7, 2018

    @dagnir
    Contributor

    @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 AwsCredentialsProvider that communicates with the external process.

  2. tyehle commented on Jun 11, 2018

    @tyehle
    Author

    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.

  3. millems commented on Jun 12, 2018

    @millems
    Contributor

    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.

  4. JathinSanghvi commented on Aug 13, 2018

    @JathinSanghvi

    +1

  5. ChristianWilkie commented on Aug 14, 2018

    @ChristianWilkie

    +1

  6. jnewbigin commented on Aug 16, 2018

    @jnewbigin

    +1

  7. zachahuy-zz commented on Sep 27, 2018

    @zachahuy-zz

    +1

  8. bijaya1 commented on Sep 28, 2018

    @bijaya1

    +1

  9. lorengordon commented on Oct 11, 2018

    @lorengordon

    +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.

  10. jeroenvandijk commented on Oct 26, 2018

    @jeroenvandijk

    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.

  11. millems commented on Dec 12, 2018

    @millems
    Contributor

    Created a PR in the 1.11.x repo for this feature as well: aws/aws-sdk-java#1835 (not yet tested in windows)

  12. zachahuy-zz commented on Feb 20, 2019

    @zachahuy-zz

    Looks like this has been implemented and works fine for us.

  13. beneshed commented on Mar 3, 2019

    @beneshed

    @zachahuy where is it? / where do you see it? sdkv2? sdkv3?

  14. millems commented on Mar 4, 2019

    @millems
    Contributor

    It hasn't been implemented in v2 yet.

  15. added a commit that references this issue on Mar 22, 2019
  16. added
    feature-request
    and removed on Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.0 Newfeature-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions