path style looks broken in 0.9.0 #673
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#673
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when doing a request to 0.9.0 in path style mode it will fail if the request is like that:
it fails with:
what works if there is a
/
at the end:in fact the same call worked on 0.8.x. unfortunatly wal-g does not add the trailing
/
and thus would fail in cases like that.actually wal-g uses
aws-sdk-go/1.44.7
maybe that is in itself a problem.if a
/
is important, the code that would be faulty would probably be in router.rs, but it looks fine, and untouched for a long time.Are you sure nothing else than that
/
changes between a successful and an unsuccessful query? What is theHost:
header in both cases, and what is the value ofs3_api.root_domain
(if any) in your configuration file?the one that is not working has the following inside the
s3_api.root_domain
:but I can probably remove the root domain, since it is not in use. maybe thats probably also the problem since the client will go to:
garage.garage.svc.cluster.local
really really good catch @trinity-1686a that probably helped, I will try that out later.The working one has
.s3.envisia.net
and the clients usegarage.garage.svc.cluster.local
as well.with a root_domain of
garage.svc.cluster.local
, and a query forgarage.garage.svc.cluster.local
, Garage will remove the suffix and consider that the first "garage" is the bucket name (vhost style). Withs3.envisia.net
andgarage.garage.svc.cluster.local
, the suffix mismatches so Garage tries path-style@trinity-1686a thanks! that helped. Now everything works!