Skip to content

HTTPS listeners reference non-existent RouteConfigurations when HTTP listener shares same container port #10170

Closed

Description

@stillya

Description:

When HTTP listener and HTTPS listeners end up on the same Envoy container port and the HTTP listener comes first, the HTTPS filter chains reference RouteConfigurations that are never generated.

Route config that actually gets created is looked up via findXdsHTTPRouteConfigName(), which returns the name used by the HCM in the default_filter_chain. This lookup exists for plain HTTP listeners sharing the default filter chain, yet it is applied to TLS listeners too. As a result, virtual hosts of the HTTPS listeners are added to the HTTP listener's RouteConfiguration, and the route configs their HCMs point to dont exist.

Expected: each HTTPS listener gets its own RouteConfiguration, matching the name its HCM references.

Repro steps:

  1. Create a Gateway with 3 listeners, in order:
    • HTTP on port 10443
    • HTTPS on port 443, hostname a.example.com
    • HTTPS on port 443, hostname b.example.com
  2. Attach HTTPRoute to each listener.
  3. Inspect the generated xDS

Port 443 is shifted to container port 10443, so all three listeners are merged into one xDS listener. No conflict is reported.

Suggested fix: skip the findXdsHTTPRouteConfigName() lookup for TLS listeners, since a TLS listener always has its own filter chain and route config. It's probably handy for other cases as well and for readability also.

Activity

  1. stillya commented on Oct 2, 2026

    @stillya
    ContributorAuthor

    fix is really straightforward, so I made it before your approve :)

  2. added
    area/translator
    and removed
    area/translator
    on Oct 7, 2026
  3. added a commit that references this issue on Oct 8, 2026
    83e7674
  4. added 2 commits that reference this issue on Oct 24, 2026
    87a3ff8
    143e176
  5. added 2 commits that reference this issue on Oct 25, 2026
    c7496b5
    8767a12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions