Add support for S3 virtual-hosted-style URLs #6900
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request description
Testkube's MinIO client always used path-style URLs (
https://endpoint.com/bucket/object), breaking S3-compatible storage that only supports virtual-hosted-style URLs (https://bucket.endpoint.com/object). This caused duplicate bucket names in paths and 403 errors with services like Tencent Cloud COS CDC.Checklist (choose whats happened)
Breaking changes
None
Changes
StorageUseVirtualHostedStyleboolean (env:STORAGE_USE_VIRTUAL_HOSTED_STYLE, default:false)BucketLookuptoBucketLookupDNSwhen enabled,BucketLookupPathwhen disabledstorage.useVirtualHostedStyleoption with environment variable mappingUsage:
Fixes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
atomicgo.dev/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)cloud.google.com/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)dario.cat/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)filippo.io/update-job-proxy /update-job-proxy -o br-5bb0e5e50d5f -j DROP 672026ac74fb69c8--detach dabf77401b04b57597914595d1708830--quiet /bin/git add %H %ct %D /bin/git git init�� tformat id e/git =2 log /bin/git e/git(dns block)/update-job-proxy /update-job-proxy -o br-df35dde677ee -j DROP /go/pkg/mod/cache/vcs/151ee5770fba399f4d420b82471cb3084bd8f4d1773e6b4b4fb14378ac141bd7/shallow.l/usr/lib/systemd/systemd-sysctl fetch /bin/git --depth=1 origin 2b087070 /usr/lib/git-core/git --sh�� /home/dependabot/go/pkg/mod/cach-n1 om/mailru/easyjson /bin/git --pack_header=2,/usr/sbin/iptables e/git test git(dns block)go.googlesource.com/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)/update-job-proxy /update-job-proxy -o br-5bb0e5e50d5f -j DROP 672026ac74fb69c8--detach dabf77401b04b57597914595d1708830--quiet /bin/git add %H %ct %D /bin/git git init�� tformat id e/git =2 log /bin/git e/git(dns block)go.mongodb.org/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)go.opentelemetry.io/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)go.uber.org/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)go.yaml.in/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)gomodules.xyz/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)google.golang.org/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)/update-job-proxy /update-job-proxy -o br-5bb0e5e50d5f -j DROP 672026ac74fb69c8--detach dabf77401b04b57597914595d1708830--quiet /bin/git add %H %ct %D /bin/git git init�� tformat id e/git =2 log /bin/git e/git(dns block)gopkg.in/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)/update-job-proxy /update-job-proxy -o br-5bb0e5e50d5f -j DROP 672026ac74fb69c8--detach dabf77401b04b57597914595d1708830--quiet /bin/git add %H %ct %D /bin/git git init�� tformat id e/git =2 log /bin/git e/git(dns block)k8s.io/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)/update-job-proxy /update-job-proxy -o br-5bb0e5e50d5f -j DROP 672026ac74fb69c8--detach dabf77401b04b57597914595d1708830--quiet /bin/git add %H %ct %D /bin/git git init�� tformat id e/git =2 log /bin/git e/git(dns block)sigs.k8s.io/update-job-proxy /update-job-proxy s/tests/v1 mpile rg/[email protected] -o ecrets/mapper.go mpile rg/[email protected]/pkg/tool/linux_amd64/compile(dns block)/update-job-proxy /update-job-proxy DROP ps e/git ls-r�� -q REDACTED /usr/lib/git-core/git =fetch log ps(dns block)/update-job-proxy /update-job-proxy -o br-5bb0e5e50d5f -j DROP 672026ac74fb69c8--detach dabf77401b04b57597914595d1708830--quiet /bin/git add %H %ct %D /bin/git git init�� tformat id e/git =2 log /bin/git e/git(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.