Empty Headers from Hydrator #942
-
Hi @vinckr, I have set up a hydrator mutator within Oathkeeper, the goal is forward a custom header (X-TENANT-ID) to the backend application. I can confirm the presents of the header in the backend application. However, the header is always empty and it seems that I'm not the only one experiencing this issue, #380 (comment). Do you have an idea what I'm doing wrong or if this is a known issue? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
Have the same problem myself. Here is my configs.
Ory Oath Keeper config - section mutators. Only Hydrator is important
My .NET service that hydrator mutator calls
|
Beta Was this translation helpful? Give feedback.
-
This is my configuration. The oathkeeper config is:
and the rule configuration is:
In the logs of the mircoservice that provides the information for the hydrator I can see that the X-TENANT-ID header is set correctly:
|
Beta Was this translation helpful? Give feedback.
-
Hey folks, thanks for opening the discussion and the extra info. Here is another issue with the same problem: I found these earlier discussions with a similar issues: |
Beta Was this translation helpful? Give feedback.
-
Hi @vinckr, Did you try to reproduce this issue yourself? Can we help somehow? |
Beta Was this translation helpful? Give feedback.
-
Hi all, I think we found the problem. I was sending headers all in lower case, but
to this
And it works 🥳 We found that this code changed headers to capital letters Line 146 in 2610d2c |
Beta Was this translation helpful? Give feedback.
Hi all,
I think we found the problem. I was sending headers all in lower case, but
Ory Oath Keeper
expects headers with capital letters. So I changed my hydrator endpoint from this.