Skip to content

Add DefaultPresignedUrlManager getObject implementation for S3 pre-signed URL #6241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jencymaryjoseph
Copy link
Contributor

Add DefaultPresignedUrlManager getObject implementation for S3 pre-signed URL

Motivation and Context

Implement the DefaultPresignedUrlManager class to enable GET operations using pre-signed URLs, allowing clients to perform operations skipping the signing and endpoint resolution.

Modifications

Added DefaultPresignedUrlManager implementation that supports getObject operations with custom ResponseTransformers. Added TODO to deprecate IS_DISCOVERED_ENDPOINT attribute and replace with SKIP_ENDPOINT_RESOLUTION for better semantics. Added TODO to discuss if the Operation name for the metrics collector has to be changed. This can be addressed after the surface API Review.

Testing

Added comprehensive unit tests for DefaultPresignedUrlManager covering core functionality, error handling, range headers, resolved endpoint null, metric publisher and collector API call verification.

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 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-change script and following the instructions. Commit the new file created by the script in .changes/next-release with 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

@jencymaryjoseph jencymaryjoseph requested a review from a team as a code owner July 8, 2025 06:41
@jencymaryjoseph jencymaryjoseph requested a review from davidh44 July 10, 2025 05:28
Copy link

@joviegas joviegas merged commit 2a32b57 into aws:feature/master/pre-signed-url-getobject Jul 10, 2025
10 of 27 checks passed
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.

3 participants