support redirection on s3 endpoint #910
No reviewers
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 project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#910
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "trinity-1686a/garage:1686a/s3-redirects"
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?
fix #665
doesn't fix #547 directly, but allows for request routing with no condition, which in practice is the same, formulated differently in xml config
implement support for aws s3 routing rules which allow to redirect requests.
Also support server side redirect (not shown to user agent). This is inspired by netlify, and could be useful in some scenarios such as:
dde02b9678
tocd62450aeb
cd62450aeb
to47467df83e
@trinity-1686a I pushed a few changes, could you review them ?
Revert changes in api/s3/get.rs and instead implement the status-code-specific logic in a new function handle_inner in web_server.rs. This makes the change less invasive and condenses the logic in a single place which IMO makes it easier to debug
Make the changes to the bucket table a migration to a v2 of the model. This means that this change will be released with Garage v2, and not earlier, because we expect all v1.x garage damons to be seamlessly compatible within a same cluster but with this change it cannot be the case.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.