-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send the correct SNI from tsh to auth server
SNI is used to indicate which cluster's CA to use for client cert validation. If SNI is not sent, or set as "teleport.cluster.local" (which is default in the client config), auth server will attempt to validate against all known CAs. The list of CA subjects is sent to the client during handshake, before client sends its own client cert. If this list is too long, handshake will fail. The limit is 65535 bytes, because TLS wire encoding uses 2 bytes for a length prefix. In teleport, this fits ~520-540 trusted cluster CAs. To avoid handshake failures on such large setups, all clients must send the correct SNI. In some future version, we should enforce this to catch such issues early. For now, added a debug log to report clients using the default ServerName. Also added a check for large number of CAs, to print a helpful error. Updates #3870
- Loading branch information
Andrew Lytvynov
committed
Jun 22, 2020
1 parent
9202d7d
commit c950d8e
Showing
4 changed files
with
42 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters