Hey,
Adam Bien seemed to have bumped into the fix where we moved all non-app endpoints under /q for simpler security setup (i.e. just hide /q on incoming routes and you are fine).
Part of this we made MicroProfile endpoints return 301 redirects.
All should be good - but apparently there are some issues here.
the spec actually don't document 301 can happen - does that need clarification or is it assumed http clients will honour HTTP redirects ?
apparently there are implementations out there not honouring redirects. (stupid lazy defaults)
I assume we tested the 301 works - which setups did we test ?
should we get the spec clarified/updated?
/max
https://xam.dk/about
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CCD4E370-0856-4900-8591-3104FE57459B%40redhat.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CCD4E370-0856-4900-8591-3104FE57459B%40redhat.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAKeeVe7Ci%3DgW0p-KQ6OYwuQYe%2BDqae2yVgeqo_VSEQ7sONz9Mg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAJwjk9y0dc%2BC0h8pHBr6WrauPh1ozoF%3D_gV3oeLcZikRpTYLQA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAKeeVe6s6dx2u4KdDdbciF6pocwRhspgA%3DSRbLKUjpfF0A5W7g%40mail.gmail.com.
We ran into this issue.We use AWS ALB with target groups and health checks. The health check in AWS was pointing to /health and expected a 200 response. It does not follow a redirect - it just checks the response code. To fix we needed to set:quarkus.http.redirect-to-non-application-root-path=false
quarkus.http.non-application-root-path=/So this is not just about following redirect or not, more about a redirect not being a 200.
Another downside of this change.
https://twitter.com/SileTwit/status/1359571073281499139
lots of redirects in access logs...
/max
/max
https://xam.dk/about
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/2E104C15-7862-4C55-96EE-408610326C08%40redhat.com.
Thanks for the details Paul!
The way I understand your comments then its an issue because you have an existing
deployment/setup which if Quarkus had used /q/health from the start that would have been fine -
or would you even then have moved it to /health because that is the convention you use everywhere
else anyway ?
/max
/max
https://xam.dk/about
On 11 Feb 2021, at 11:53, Phillip Krüger wrote:
Maybe we should add a new 3rd config option, that allows devs to define the
extensions that the /q namespace should apply on ? With the default being
all we have now. But it allows devs to remove it for health, but keep it
for OpenAPI and others as an example ? Because at the moment it's a all or
nothing.
There is now an issue on it at https://github.com/quarkusio/quarkus/issues/15030
lets continue there.
I think its important to remember that even though I MicroProfile spec is used as
reason to have them in place then that is really secondary. The issue is upgrades
of live systems will see their apps get killed as no /health end point and they
won't have any metrics to see what went wrong as /metrics is gone too.
that is the reality we need to deal with.
Fixing the spec issue is a sideeffect/secondary.
/max
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/29799563-14e1-4d5e-b314-ca8dc22f3890n%40googlegroups.com.
/max
https://xam.dk/about