Skip to content

Reinstate use of S3 protocol client setting #127809

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

Merged

Conversation

DaveCTurner
Copy link
Contributor

The s3.client.CLIENT_NAME.protocol setting became unused in #126843 as
it is inapplicable in the v2 SDK. However, the v2 SDK requires the
s3.client.CLIENT_NAME.endpoint setting to be a URL that includes a
scheme, so in #127489 we prepend a https:// to the endpoint if needed.
This commit generalizes this slightly so that we prepend http:// if
the endpoint has no scheme and the .protocol setting is set to http.

Backport of #127744 to 8.19

The `s3.client.CLIENT_NAME.protocol` setting became unused in elastic#126843 as
it is inapplicable in the v2 SDK. However, the v2 SDK requires the
`s3.client.CLIENT_NAME.endpoint` setting to be a URL that includes a
scheme, so in elastic#127489 we prepend a `https://` to the endpoint if needed.
This commit generalizes this slightly so that we prepend `http://` if
the endpoint has no scheme and the `.protocol` setting is set to `http`.

Backport of elastic#127744 to `8.19`
@DaveCTurner DaveCTurner added >non-issue :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.19.0 labels May 7, 2025
@elasticsearchmachine elasticsearchmachine merged commit 1eff103 into elastic:8.19 May 7, 2025
16 checks passed
@DaveCTurner DaveCTurner deleted the 2025/05/07/aws-sdk-protocol-819 branch May 7, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants