-
Notifications
You must be signed in to change notification settings - Fork 811
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
blob/s3blob: s3ForcePathStyle stopped working in v0.39.0 #3472
Comments
Please see the release notes (https://github.com/google/go-cloud/releases/tag/v0.39.0). This release changed the default for AWS URLs from their v1 SDK to their v2 SDK. Some parameters are different, You should either update the URL to work with v2 (possibly just dropping that parameter will fix it?), or add |
forcing `awssdk=v1` for now. will probably need to remove that soon, holding it now only because of google/go-cloud#3472 Signed-off-by: Carlos Alexandro Becker <[email protected]>
yes, I saw the release notes, and also that forcing v1 works, my point was that the specific breaking change is not documented anywhere. also, just dropping that part of the URL doesn't work (at least not with minio). |
OK. Yes, I didn't try to document every specific URL parameter that wouldn't work anymore, just "Most URLs should continue to work, but in some cases you may need to add awssdk=v1 to force V1 explicitly." |
Please try to figure out what's needed to get V2 to work with Minio (I'm not sure). It's possible we need to add support for more URL parameters for V2. |
refs google#3472 Signed-off-by: Carlos Alexandro Becker <[email protected]>
It seems |
Added, see #3491. |
@vangent Would you consider adding an alias for |
Sure, that sounds reasonable; will send a PR. |
@vangent Thanks so much! |
Previously only the `hostname_immutable` flag was set on the GoCloud URL for AWS when the upload ARN were used. This is not sufficent. As explained in google/go-cloud#3472, we also need the `use_path_style` query parameter. This should not affect most buckets because path-style access only works on buckets before September 2020 (https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/). However, in the oft chance we have customers still using path-style access with S3 with the newly-introduced Upload ARN functionality, then this change will allow that to work. Changelog: fixed
Describe the bug
This was flagged by goreleaser's tests when dependabot opened the pr updating from v0.38 to v0.39.
I'm not sure if this is expected and just not documented, or if it is in fact a bug.
To Reproduce
open a bucket (can be a local minio for example) using
s3ForcePathStyle
.Expected behavior
To work.
Version
v0.39.0
Additional context
Error:
Also, forcing
awssdk=v1
makes it work again.The text was updated successfully, but these errors were encountered: