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: multi-backend backward compatibility; allow invalid region #9

Merged

Conversation

pvbouwel
Copy link
Contributor

When in the old setup with a single S3 backend an invalid region was provided in a request this would just be ignored as the target region would always be mapped to the configured target region.

For the multi-backend setup specifying an invalid region would result in an internal server error. This change introduces a feature flag ENABLE_LEGACY_BEHAVIOR_INVALID_REGION_TO_DEFAULT_REGION which can be set to true to go back to the old behavior by falling back to the default backend (as specified in backend-config.yaml).

If not set the request would be answered with a Bad Request response explaining to the user that an invalid region was returned.

cleanup: legacy environment variable

When in the old setup with a single S3 backend an invalid region was provided in a request this would just be ignored as the target region would always be mapped to the configured target region.

For the multi-backend setup specifying an invalid region would result in an internal server error. This change introduces a feature flag ENABLE_LEGACY_BEHAVIOR_INVALID_REGION_TO_DEFAULT_REGION which can be set to true to go back to the old behavior by falling back to the default backend (as specified in backend-config.yaml).

If not set the request would be answered with a Bad Request response explaining to the user that an invalid region was returned.

cleanup: legacy environment variable
@pvbouwel pvbouwel self-assigned this Nov 27, 2024
@pvbouwel
Copy link
Contributor Author

This is in order to release #3 without regressing functionality-wise

@pvbouwel pvbouwel merged commit 135816a into VITObelgium:main Nov 27, 2024
4 checks passed
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