Multiple Mysql communication through TCP with TLS based on SNI

If MySQL uses TLS and Traefik can get access to the TLS cert, then you should be able to use HostSNI().

My guess is that there may be some work needed to support mysql SNI routing behind traefik, similar to Postgresql (as @lucasctd mentionned) and I may fire up Wireshark to take a look.

@cotjoey
please explain more, I tried and it didn't work with mysql :face_with_peeking_eye: :face_with_peeking_eye: :face_with_peeking_eye:

Did you use a tcp router, enable TLS and use rule with HostSNI() (doc)?

1 Like

@bluepuma77
before everything, I have to thank you for all your efforts for helping people :innocent:
In your example i can't see any dynamic.yml !!

I tried the HOSTSNI('example.com') for mysql without success :face_with_thermometer:

Thanks :slight_smile:

Static config is in traefik.yml or command:, dynamic config in separate dynamic config file via providers.file or in labels via providers.docker.

Has anybody succeeded with the issue ?