Interactive engineering lab

Trailing-dot hosts: router matching versus TLS-option conflict checks

Trailing-dot hosts: router matching versus TLS-option conflict checks. Replay the GHSA-9657-c2gv-wjpj fix on synthetic routers.

By Sandeep Belgavi · Published 2026-11-29

Synthetic fixtures computed locally. No model or production service is contacted.

Experiment workspace

Decision trace

    The question this experiment answers

    When two Traefik routers on one entry point serve the same host with different TLS options, does Traefik detect the conflict, and what happens to each router? The model follows findConflictingRouters and resolveHTTPTLSOptions in pkg/server/aggregator.go at v3.7.20, before and after the trailing-dot fix for GHSA-9657-c2gv-wjpj released on 23 November 2026.

    Change one assumption at a time

    Start from the before-fix preset and change one control: the version, strictTLSOptions, or one router line. Router lines have the form name entryPoint host tls-option, for example tenant-promo websecure admin.bookstore.test. default. Several hosts are separated by commas, and a dash means a rule with no host. Try removing the final dot, changing the tenant's option to mtls-staff, or moving the tenant router to another entry point.

    Expected outcomes

    Before the fix, either mode: no conflict, and admin.bookstore.test is served by routers with different options. Patched with strict off: both routers in conflict and both resolved to the default options, so staff-admin loses its client-certificate requirement. Patched with strict on: both routers disabled. A host that differs only by letter case was already detected before the fix. The same options on both spellings, or a router on another entry point, is not a conflict. These match the companion Python model.

    Read the table and the trace

    The table shows each router's configured and effective TLS options and whether it is in conflict; disabled means strictTLSOptions marked it in error and it is not built. The trace lists each host group per entry point as Traefik keys it, which is where the trailing dot made a difference, followed by any exposure or downgrade.

    Reset and export

    Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every router row, the metrics and the trace, which can serve as a test fixture for an admission policy that checks who may claim a host.

    Limits

    A model written from the v3.7.20 source and the fix in PR 14192, not Traefik code; no proxy is contacted and the routers are synthetic. It covers HTTP routers with Host rules and one entry point per router line. TCP routers with HostSNI, rule priorities and how a client's SNI selects options during the handshake are not modelled. Upgrade to v2.11.64, v3.7.20 or v3.8.0 rather than relying on this model.

    Views are my own and do not represent any employer, past or present.