Skip to content

Port credential_process support from Java SDK V1 - #1166

Merged
millems merged 1 commit into
aws:masterfrom
abrooksv:credentialProcess
Apr 11, 2019
Merged

millems merged 1 commit into
aws:masterfrom
abrooksv:credentialProcess

Conversation

@abrooksv

@abrooksv abrooksv commented Mar 26, 2019 •

Copy link
Copy Markdown
Contributor

Description

Lift-and-shift support from V1 and switch to using V2 utils and conventions

Motivation and Context

To unblock AWS Toolkit for JetBrains customers

Fixes #455

Testing

Need to do more testing, but feel free to review.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • A short description of the change has been added to the CHANGELOG
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@codecov-io

codecov-io commented Mar 27, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #1166 into master will increase coverage by 0.03%.
The diff coverage is 65.68%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1166      +/-   ##
============================================
+ Coverage     58.98%   59.02%   +0.03%     
- Complexity     4596     4612      +16     
============================================
  Files           744      746       +2     
  Lines         23028    23130     +102     
  Branches       1721     1733      +12     
============================================
+ Hits          13583    13652      +69     
- Misses         8758     8783      +25     
- Partials        687      695       +8
Impacted Files Coverage Δ Complexity Δ
...ain/java/software/amazon/awssdk/utils/IoUtils.java 48.64% <0%> (-4.3%) 9 <0> (ø)
...in/java/software/amazon/awssdk/utils/Platform.java 0% <0%> (ø) 0 <0> (?)
...are/amazon/awssdk/core/util/json/JacksonUtils.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...in/java/software/amazon/awssdk/utils/Validate.java 64.86% <0%> (-1.81%) 49 <0> (ø)
.../credentials/internal/ProfileCredentialsUtils.java 88.46% <100%> (+1.5%) 17 <1> (+2) ⬆️
...k/auth/credentials/ProcessCredentialsProvider.java 77.21% <77.21%> (ø) 12 <12> (?)
...on/awssdk/services/kinesis/KinesisRetryPolicy.java 85.71% <0%> (ø) 3% <0%> (+1%) ⬆️
...awssdk/auth/credentials/AwsSessionCredentials.java 44.44% <0%> (+7.4%) 7% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f800f0...da9afe3. Read the comment docs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validate.isPositive?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validate.isPositive?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fromSensitiveJsonString(String)?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sensitiveJsonNodeOf?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: p tags, as above.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe "credentialRefreshThreshold"? buffer makes me think of bytes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: format

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test on windows?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran mvn clean install -pl :auth

@abrooksv
abrooksv force-pushed the credentialProcess branch from 841ccea to 83bfdc2 Compare April 10, 2019 19:19
@abrooksv

Copy link
Copy Markdown
Contributor Author

Addressed feedback, added another test for making sure profile works

@millems

millems commented Apr 11, 2019

Copy link
Copy Markdown
Contributor

Can you rebase? Can you confirm that this pull request can be released under the Apache 2 license?

@abrooksv

Copy link
Copy Markdown
Contributor Author

Can you rebase? Can you confirm that this pull request can be released under the Apache 2 license?

Since I work for AWS, yes?

@zoewangg

Copy link
Copy Markdown
Contributor

@abrooksv You left the license box unchecked! :trollface:

@abrooksv
abrooksv force-pushed the credentialProcess branch from 7c3b1cd to da9afe3 Compare April 11, 2019 22:01
@millems
millems merged commit fa6b260 into aws:master Apr 11, 2019
aws-sdk-java-automation added a commit that referenced this pull request Jan 26, 2021
…dbb828b7c

Pull request: release <- staging/f31c0bc2-4be0-4097-b6a7-e2adbb828b7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

credential_process is not implemented

4 participants