Set the ServerName for TLS configuration by dbussink · Pull Request #988 · github/gh-ost

@dbussink

When TLS hostname validation used for the MySQL connection, the
ServerName property needs to be set so that it knows which name to
validate on the certificate.

Without this option and with InsecureSkipVerify set to false, validation
will error here with a fatal error otherwise:

```
FATAL tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config
```

shlomi-noach

approved these changes Jun 17, 2021

timvaillancourt

@timvaillancourt timvaillancourt temporarily deployed to production/mysql_role=ghost_testing

June 17, 2021 11:08

Inactive