Skip to content
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

Feature/proxy multiple backends issue3 #7

Merged

Conversation

pvbouwel
Copy link
Contributor

Allow proxying multiple backends with selection via region attribute as detailed on #3

It also includes extra testing ground work and allows to run tests again a simple S3 server implemented in the Python moto library which can easily run on development stations and in Github workflows.

Peter Van Bouwel added 3 commits November 20, 2024 11:21
This implements support for multiple S3 backends. Based on the region that is provided in the request the proxy will select the backend to send the request to.

BREAKING CHANGE: remove AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and FAKES3PP_S3_PROXY_TARGET environment variables in favor of backend-config.yaml which allows specifying similar config per proxy backend.

Same functionality can be achieved but the configuration needs to be specified in backend-config.yaml which is pointed to by environment variable `FAKES3PP_S3_BACKEND_CONFIG`.
Add a scenario where we mimic a full setup and where we verify which backend is reached.
cmd/presign.go Dismissed Show dismissed Hide dismissed
Peter Van Bouwel added 4 commits November 20, 2024 13:39
bugfix: backend extraction for pre-signed URLS

This adds test scenario's for using pre-signed URLs to perform GetObject API calls against multiple backends. It also fixes a bug since the selection of a backend was done int he proxy function but that causes issues as that is past the cleaning of the intial request. By extracting the backend prior to proxying we allow to identify the correct backend.

refactor: dry for getting proxy endpoints
@pvbouwel pvbouwel merged commit 57dcc9d into VITObelgium:main Nov 26, 2024
4 checks passed
@pvbouwel pvbouwel deleted the feature/proxy_multiple_backends_issue3 branch November 26, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant