MySQL
The MySQL service connector processes connection requests to a MySQL database.
To secure connections, we support common MySQL SSL options. For details, see sslmode.
Unlike other clients, the default |
Configure the service connector
Configure the Secretless Broker to specify where to find your database connection details in the credentials
section of the yaml
file. This includes where to find the host, port, username, and password of your database,
as well as the sslmode
details, such as the location of any relevant certificates
and revocation lists, if applicable.
The options are as follows:
Option |
Description |
Required |
---|---|---|
|
The host name of the MySQL server. |
Required |
|
The port of the MySQL server. |
Optional (Default setting is 3306) |
|
The username of the MySQL account. |
Required |
|
The password of the MySQL account. |
Required |
This option determines if the connection between Secretless Broker and your database is protected by SSL. For details on the supported values of this parameter, see SSL Modes. |
Optional (Default setting is |
|
|
The content of this parameter specifies the client SSL certificate in PEM format. This
parameter is ignored if an SSL connection is not made. Corresponds to |
Optional |
|
The content of this parameter specifies the SSL certificate authority (CA) certificate(s) in PEM format. If present, the server’s certificate will be verified to be signed by one of these authorities. Corresponds to |
Optional |
|
The content of this parameter specifies the secret key used for the client
certificate. This parameter is ignored if an SSL connection is not made.
Corresponds to |
Optional |
You must supply a valid value for |
The MySQL documentation website provides detail on the levels of protection provided by different values for the sslmode
parameter.
Secretless supports the following SSL modes:
Mode |
Description |
---|---|
|
Corresponds to |
Default |
Corresponds to |
|
Corresponds to |
|
Corresponds to Secretless checks the host name the client uses for connecting to the server against the identity provided in the certificate the server sends to the client. The connection fails if the host name does not match the certificate Common Name. Secretless uses the value of the |
Secretless does not currently support the MySQL When |
Examples
sslmode
of require
|
sslmode
of require
|
|
If your certificate is stored in the environment or a secret store rather than a file, you can use the appropriate provider. |