I’m struggling to create an oathkeeper rule that a...
# talk-oathkeeper
a
I’m struggling to create an oathkeeper rule that also works for trailing slashes in the requested URL. I have a match.url like “/api/<.*> The upstream.url is “<server>” Now when I request /api/something/ it gives a redirect (HTTP 308 permanent redirect) to /api/something, but I don’t want that. I just want to pass on /api/something/ to the underlying service. How would I do that?
Even if I add a special rule that matches “/api/something/” I get a redirect to /api/something
c
I would also like to stop the trailing slash issues. I haven’t noticed anything when using glob pattern
<**>
but it might be still redirecting.
a
I found my issue. It was a system before Oathkeeper, that did the redirect. Oathkeeper does pass trailing slashes. So ignore my complain. 🙂