Skip to content

Gradle does not pick AWS SSO credentials for local executions #6515

@AhmadMasry

Description

@AhmadMasry

Describe the feature

Hi AWS SDK team;
I know this might be out of your scope, but you maybe able to help.
We are heavy users of AWS SDK, and our organization adopted AWS SSO for authentication.
Gradle itself does not have aws-java-sdk-sso or com.amazonaws:aws-java-sdk-ssooidc in its dependencies, so it can't pick the correct credentials when using a self hosted S3 maven repo. so we need to export AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN for every new session.
I have created a feature request and provided a PR to implement that.
They refused to merge my PR because of lack of testing, knowing that there is no code change other than the dependency addition, and the already tests should be sufficient as they have implemented test for sts, and also I do not think that the provided s3 infrastructure can be used to test AWS SSO.
I also have to mention that they are still using AWS SDK v1.
I reaching to you here as you are the authors of the AWS SDK to help me in any of the following if possible:

  1. Help me in providing evidence that the already testing is sufficient, and if not, helping me in implementing them.
  2. Maybe contributing to migrate it to SDK v2, and include all the credential providers libraries in the implementation.
    Thank you very much

Use Case

Enable Gradle to pickup AWS SSO credentials when using S3 Maven repo.

Proposed Solution

Add aws-java-sdk-sso and com.amazonaws:aws-java-sdk-ssooidc to Gradle dependencies.
I also provided them with the library names if they are planing to AWS SDK v2

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

any

JDK version used

any

Operating System and version

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions