Giter Site home page Giter Site logo

Comments (3)

mmatur avatar mmatur commented on July 30, 2024 1

Hi @georglauterbach,

Unfortunately I didn't had the time to look at it before. Just starting to reproduce the issue on my side and Iw will come back to you.

from traefik.

mmatur avatar mmatur commented on July 30, 2024 1

Hi @geoffgarside,

I gave it a try and I have the same behaviour between Traefik v2.10.7 and Traefik v3.0.1.

  • Test 1
    • sniStrict set to true
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
  name: subdomain
spec:
  entryPoints: [ websecure ]
  routes:
    - kind: Rule
      match: Host(`subdomain.mydomain.test`)
      services:
        - name: someservice
          namespace: some-namespace-not-ingress
          port: http
          scheme: http
  tls:
    store:
      name: default
      namespace: ingress

Result: Connection closed

  • Test 2
    • sniStrict set to true
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
  name: subdomain
spec:
  entryPoints: [ websecure ]
  routes:
    - kind: Rule
      match: Host(`subdomain.mydomain.test`)
      services:
        - name: someservice
          namespace: some-namespace-not-ingress
          port: http
          scheme: http
  tls:
    secretName: cloudflare-origin-certificate # define a secret name to load the certificate in traefik because the when sniStrict is set to true, traefik will verify certificates loadded but not default certificate.
    store:
      name: default
      namespace: ingress

Result: It works

  • Test 3
    • sniStrict set to false
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
  name: subdomain
spec:
  entryPoints: [ websecure ]
  routes:
    - kind: Rule
      match: Host(`subdomain.mydomain.test`)
      services:
        - name: someservice
          namespace: some-namespace-not-ingress
          port: http
          scheme: http
  tls:
    store:
      name: default
      namespace: ingress

Result: It works


With sniStrict option set to true, Traefik will check certificates that have been loaded and will not check the default certificate.

Doc reference:

With strict SNI checking enabled, Traefik won't allow connections from clients that do not specify a server_name extension or don't match any of the configured certificates. The default certificate is irrelevant on that matter.

It the same behaviour in v2.10

This behaviour has been introduced in Traefik v1.7 and has never been changed since the merge of the PR.

I unassigned myself to have the issue popping during the next triage and be able to discuss with other maintainers about it.

from traefik.

georglauterbach avatar georglauterbach commented on July 30, 2024

@mmatur any progress on this one?

from traefik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.