Thanks for the heads up. I left some comments here
https://github.com/keycloak/keycloak-gatekeeper/pull/483#issuecomment-618548447.
There's already a pull-request for this as you already mentioned. My
suggestion is to join efforts, so we can benefit from a single solution.
On 2020-04-17, Nuru wrote:
>I opened pull request 535 (PR #535
><
https://github.com/keycloak/keycloak-gatekeeper/pull/535>) against
>keycloak-gatekeeper <
https://github.com/keycloak/keycloak-gatekeeper> to
>fix KEYCLOAK-10864 <
https://issues.redhat.com/browse/KEYCLOAK-10864> which
>will also fix KEYCLOAK-11276, KEYCLOAK-13315, and GitHub issue
>keycloak-gatekeeper/#528
><
https://github.com/keycloak/keycloak-gatekeeper/issues/528> and replaces
>keycloak-gatekeeper/pull/483
><
https://github.com/keycloak/keycloak-gatekeeper/pull/483> by making this a
>bug fix and not a new option.
>
>It does not remove FlagRemoveDuplicateSlashes as suggested in comments to
>PR 483 here
><
https://github.com/keycloak/keycloak-gatekeeper/pull/483#issuecomment-598881265>
>because that change is not needed to fix KEYCLOAK-10864. Instead, the
>existing sanitization of URLs is kept for internal processing. If you want
>to remove FlagRemoveDuplicateSlashes I think that should be added to
>keycloak-gatekeeper/pull/510
><
https://github.com/keycloak/keycloak-gatekeeper/pull/510> as part of the
>fix for KEYCLOAK-10633 <
https://issues.redhat.com/browse/KEYCLOAK-10633>
>
>I have included tests that illustrate the problem that fail on master and
>succeed with my changes.
>
>I'm sorry I did not find the previous work earlier, so I did not build on
>it. Instead, I diagnosed the issue and fixed it from scratch. I think my PR
>is better because
>
> 1. It does not change internal processing of the URL, so it does not
> risk creating problems with how Gatekeeper itself interprets URLs or
> applies policies to them
> 2. It is easy to reason about and see that the URL path forwarded
> upstream is the path received
> 3. It has more thorough tests included
>Then, in the docker-compose.yml, replace the proxy image "
>
quay.io/keycloak/keycloak-gatekeeper:8.0.1" with "
>nuru/key-gate:KEYCLOAK-10864" and then docker down, docker up, and you will
>see the error message is gone.
>
>While the issue is old, it is new for me, and getting close to production,
>so I would like to get this approved quickly. Please respond on GitHub in
>comments to the PR
><
https://github.com/keycloak/keycloak-gatekeeper/pull/535>.
>
>--
>You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to
keycloak-dev...@googlegroups.com.
>To view this discussion on the web visit
https://groups.google.com/d/msgid/keycloak-dev/aee050aa-0445-40a9-9f20-7cfad3573409%40googlegroups.com.
--
abstractj