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

Make different test environments configurable and provide a HTTP Header and/or URI Parameter to Select the environments on the fly #119

Open
l00mi opened this issue Jun 3, 2022 · 8 comments

Comments

@l00mi
Copy link
Contributor

l00mi commented Jun 3, 2022

For development often multiple Environments are set-up. (E.g. Production, Integration, Testing). To be able to dereference on the final (normally production) namespace, but still use the other environments it is very use full to specify the environment with a HTTP Header, similar to the content-negotiation. There is no current HTTP Header specified sofar but we see at least Response Headers like "X-Environment" in the wild: https://webtechsurvey.com/common-response-headers.

Proposition, allow to set-up multiple SPARQL endpoints with environment names.

Listen on "X-Environment" Request Header and switch accordingly the SPARQL endpoint to the listed in the set-up. If the name is unknown, there is a fallback to the production (without a name) environment.

Alternatively, a URI Parameter can be offered for the same functionality.

@l00mi
Copy link
Contributor Author

l00mi commented Dec 19, 2022

Check if customers can add "mod-headers" or similar.

@MartinaElsawy
Copy link

very complex to implement and security risky

@MartinaElsawy
Copy link

agreed to not being in favor to have it as long as we do not have a customer who really asks for it and will pay for it since risky and big effort

@MartinaElsawy
Copy link

at least 2 days estimate, hard to estimate for now

@l00mi l00mi changed the title Make different test environments configurable and provide a HTTP Header to Select the environments on the fly Make different test environments configurable and provide a HTTP Header and/or URI Parameter to Select the environments on the fly Aug 25, 2023
@l00mi
Copy link
Contributor Author

l00mi commented Aug 25, 2023

@ludovicm67 what is the security risk mentioned here? It is clear that it needs to be a closed list of possible environemnts.

@ludovicm67
Copy link
Member

I will see in the future if I can tacke this in the sparql-proxy directly.

@ktk
Copy link
Member

ktk commented Mar 12, 2024

@ludovicm67 does that still make sense with the fixing of de-referencing for TEST & co?

@ludovicm67
Copy link
Member

It can still be an option, as for example we can also decide to use the cached endpoint instead of the live one, and so on. But I will mark it explicitly as low priority for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants