Skip to content
Discussion options

You must be logged in to vote

This is HTTP/2 connection coalescing, which also explains why a different parent domain fixes it.

Two conditions are both true in your setup:

  • both subdomains resolve to the same load balancer IP, and
  • you serve a shared cert valid for both names.

Per RFC 7540 §9.1.1, when both hold, Chrome/Firefox may send keycloak.example.com requests over the already-open connection to netbird.example.com with no new TLS handshake, so no new SNI. Your L4 load balancer routes purely on SNI, so it can't re-route that coalesced request. It lands on the NetBird backend's Nginx, which has no /realms/<realm>/protocol/openid-connect/auth route and returns your 404.

This fits the evidence better than sec-fetch…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lame-engineer
Comment options

@eben-vranken
Comment options

Answer selected by lame-engineer
@lame-engineer
Comment options

@eben-vranken
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants