-
Notifications
You must be signed in to change notification settings - Fork 12
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
Comments
Check if customers can add "mod-headers" or similar. |
very complex to implement and security risky |
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 |
at least 2 days estimate, hard to estimate for now |
@ludovicm67 what is the security risk mentioned here? It is clear that it needs to be a closed list of possible environemnts. |
I will see in the future if I can tacke this in the |
@ludovicm67 does that still make sense with the fixing of de-referencing for TEST & co? |
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. |
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.
The text was updated successfully, but these errors were encountered: