Skip to content
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

fix(storage): Add support for dualside encryption even if acceleration is off #3220

Merged
merged 4 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4764,6 +4764,12 @@ protected <X extends AmazonWebServiceRequest> Request<X> createRequest(String bu
clientConfiguration);
}
}
else {
if (clientOptions.isDualstackEnabled()) {
String hostname = String.format(Constants.S3_DUALSTACK_HOSTNAME, getRegionName());
endpoint = RuntimeHttpUtils.toUri(hostname, clientConfiguration);
}
}

request.setHttpMethod(httpMethod);
resolveRequestEndpoint(request, bucketName, key, endpoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public class Constants {
public static final String S3_EXTERNAL_1_HOSTNAME = "s3-external-1.amazonaws.com";
/** Service hostname for accessing accelerated S3 buckets */
public static final String S3_ACCELERATE_HOSTNAME = "s3-accelerate.amazonaws.com";
/** Service hostname for accessing dualstack S3 buckets; format argument is the region */
public static final String S3_DUALSTACK_HOSTNAME = "s3.dualstack.%s.amazonaws.com";
/** Service hostname for accessing dualstack accelerated S3 buckets */
public static final String S3_ACCELERATE_DUALSTACK_HOSTNAME = "s3-accelerate.dualstack.amazonaws.com";

Expand Down