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.

EAS redirect set to `eas.myhost.com` instead of `myservice.myhost.com`

See original GitHub issue

Hi there!

We recently rebuilt our Azure Kubernetes cluster and added a VNET and CNI plugin. The this process itself went well, but we are now seeing some oddities with our EAS instance.

When attempting to authenticate our service using a EAS as a Treafik middleware, EAS does not seem to redirect to the service, instead redirecting to eas.myhost.com/?__eas_oauth_handler__=authorization_callback&code=XXXXXXXXXXXXXXX..... The browser shows Cannot GET /.

When digging into the logs, we see that the parsed state redirect URI is set to eas.myhost.com:

{"level":"verbose","message":"parsed state redirect uri: {\"scheme\":\"https\",\"host\":\"eas.myhost.com\",\"path\":\"\",\"reference\":\"absolute\"}","service":"external-auth-server"}

This prompted us to compare with our production cluster that runs the exact same configuration, but without the VNET and CNI plugin. Here, the parsed state redirect URI is set correctly:

{"level":"verbose","message":"parsed state redirect uri: {\"scheme\":\"https\",\"host\":\"myservice.myhost.com\",\"path\":\"/\",\"reference\":\"absolute\"}","service":"external-auth-server"}

Not sure what is going on here. Is the redirect URI modified somewhere in-flight? Where in the code does EAS set the query state?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thomafredcommented, Mar 11, 2022

You are totally right about the Traefik trusted IPs. After changing the VNET, our IP range did of course change. Setting the argument --entryPoints.websecure.forwardedHeaders.trustedIPs in treafik resolved the problem.

Thank you so much for your help!

0reactions
travisghansencommented, Mar 11, 2022

Awesome! Glad the project is useful and you got it figured out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Offline mode checks server configuration - Allegroai/Clearml
EAS redirect set to `eas.myhost.com ` instead of `myservice.myhost.com`, 6, 2022-03-11 ; Filter Stream too many connections when there are no streams connected,...
Read more >
The Sphere: An Illustrated Newspaper for the Home
I was lucky in my host , for he had travelled wherever the foot of man had trod and fought ... by the...
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