question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing forwareded headers

See original GitHub issue

when using the oidc plugin a few forwarded headers got missing.

Without using the oidc plugin I get this:

X-Forwarded-Host: whoami.domain.tld
X-Forwarded-Port: 443
X-Forwarded-Proto: https
X-Forwarded-Server: a228d1c86e24

when using the plugin the only forwarded header I got is this: X-Forwarded-For: xx.xx.xxx.xxx

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
travisghansencommented, Apr 16, 2021

That’s what I was trying to suggest above at first. You’re telling traffic to forward the given headers from the auth server to the backend service. The auth server (eas) is not sending X-Forwarded-Foo headers in it’s response to traefik, so traefik is trying to replace those being sent to the backing service as set by eas…which is empty/not there.

0reactions
travisghansencommented, Apr 17, 2021

The regex behavior is potentially a bit weird FYI. I would expect the regex to not replace all headers in the original request passing the regex but rather would expect it to be a sort of allow list treating those that are returned by the auth service to be set to whatever the auth service responds with.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No more display of original headers when forwarding a ...
No more display of original headers when forwarding a message ; 1. Please open outlook for mac, then click Outlook > Preference (...
Read more >
X-Forwarded-For - HTTP - MDN Web Docs
The X-Forwarded-For header is untrustworthy when no trusted reverse proxy (e.g., a load balancer) is between the client and server. If the ...
Read more >
Reason for browser not showing X-Forwarded-For headers
I'm trying to understand as to why the browsers doesn't show me any X-Forwarded-For header every time a request a page.
Read more >
X-Forwarded-Method is missing from request #6978 - GitHub
The header 'X-Forwarded-Method' is missing from request received by backend server. It's missing also when using ForwardAuth. I'm trying to get Traefik with ......
Read more >
Missing X-Forwarded-For header in Spring Boot application
Missing X-Forwarded-For header in Spring Boot application ... good idea to check what is really being forwarded to the Pods in the cluster....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found