aws-sdk-java-v2
aws-sdk-java-v2 copied to clipboard
Resolve credentials on retry for S3Express
Motivation and Context
Re-resolve credentials on retries for S3Express. Tokens have short lifespan (5 min) and can become stale while queued up. Currently, credentials are not re-resolved on retries
Modifications
Save IdentityProvider and ResolveIdentityRequest in S3AuthSchemeInterceptor , retrieve and resolve identity for S3Express retries in retry stage
Testing
Added functional tests and updated codegenerated test classes
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 installsucceeds - [ ] 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 added tests to cover my changes
- [ ] All new and existing tests passed
- [ ] I have added a changelog entry. Adding a new entry must be accomplished by running the
scripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes. - [ ] 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
Quality Gate passed
Issues
3 New issues
0 Accepted issues
Measures
0 Security Hotspots
91.4% Coverage on New Code
0.0% Duplication on New Code