Skip to content

Fix snicheck for routers with no hosts#13333

Merged
traefiker merged 5 commits into
traefik:v2.11from
rtribotte:fix-snicheck-with-no-hosts
Jun 10, 2026
Merged

Fix snicheck for routers with no hosts#13333
traefiker merged 5 commits into
traefik:v2.11from
rtribotte:fix-snicheck-with-no-hosts

Conversation

@rtribotte

Copy link
Copy Markdown
Member

What does this PR do?

This PR fixes the SNICheck mechanism for routers with no hosts that are already configured to use the default TLSOptions. It also improves logging for detected conflicts, and mitigate (not fully) possible collisions in naming of the conflicted routers.

Motivation

Follow up to #13329

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Gina A. [email protected]

@emilevauge emilevauge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this addresses the follow-ups from #13329 precisely.

Two points to settle before merging, in my opinion:

  1. Log severity. The conflict is now logged at Error level, while before #13291 it was a Warn. The behavior is a functional fallback (the routers still serve traffic with the default options), not a failure, and users monitoring the error level may start alerting on it. If Error is the deliberate choice (it is a misconfiguration after all), fine, but it should be a conscious decision.
  2. Migration note. The ep-conflicted-name renaming is visible in the API, the dashboard, metrics labels and access logs for conflicted routers. The docs checkbox is unchecked; a short note under docs/content/migration/ would save support some tickets.

Comment thread pkg/server/aggregator.go Outdated
Comment thread pkg/server/aggregator.go Outdated
Comment thread pkg/server/aggregator.go
Comment thread pkg/server/aggregator_test.go Outdated
@traefiker
traefiker merged commit 0209f98 into traefik:v2.11 Jun 10, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants