important-area-42405
03/17/2023, 1:22 PM- id: allow-anonymous-with-header-mutator
version: v0.40.2
upstream:
url: <https://httpbin.org/anything/header|https://httpbin.org/anything/header>
match:
url: <http://auth2-oathkeeper.internal.pdg.io/anything/header|http://auth2-oathkeeper.internal.pdg.io/anything/header>
methods:
- GET
authenticators:
- handler: anonymous
authorizer:
handler: allow
mutators:
- handler: header
config:
headers:
X-User: "{{ print .Subject }}"
and our aws nginx points all accounts.dev.prodigyfinance.com to auth2-oathkeeper.internal.pdg.io. But when I hit accounts.dev.prodigyfinance.com/anything/header I see 404 erro. Appreciate if some one help with the issue.
Here is the log from oathkeeper. The requests routing to oathkeeper is working fine.
x-forwarded-host:<http://accounts.dev.prodigyfinance.com|accounts.dev.prodigyfinance.com> x-forwarded-port:443 x-forwarded-proto:https x-request-id:Root=1-64146891-762878fb1791a7a74ddacd69] host:<http://auth2-oathkeeper.internal.pdg.io|auth2-oathkeeper.internal.pdg.io> method:GET path:/ndtv query:<nil> scheme:http]