Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support certificate and private key per backend server #4401

Open
w32-blaster opened this issue Dec 15, 2023 · 3 comments
Open

Support certificate and private key per backend server #4401

w32-blaster opened this issue Dec 15, 2023 · 3 comments

Comments

@w32-blaster
Copy link

Currently the parameters mysql-ssl_p2s_cert and mysql-ssl_p2s_key are gloval variables.
This works fine if the certificate and key is shared across the replication group (writer + additional replicas).

In GCP when using cloudsql and multiple replicas, each instance has its own ca, certificate and key.
This makes the connection through TLS impossible because we can only set certificate once for everything (ca is probably good because we have to option to set capath with multiple ca certificates).

With the above configuration (as expected) we get the following errors on the replicas:

mysql> select * from mysql_server_ping_log;;
+--------------+------+------------------+----------------------+----------------------------------------------+
| hostname     | port | time_start_us    | ping_success_time_us | ping_error                                   |
+--------------+------+------------------+----------------------+----------------------------------------------+
| 10.200.17.10 | 3306 | 1702674162555450 | 0                    | SSL connection error: tlsv1 alert unknown ca |
| 10.200.17.2  | 3306 | 1702674167549303 | 400                  | NULL                                         |
| 10.200.17.6  | 3306 | 1702674167549348 | 0                    | SSL connection error: tlsv1 alert unknown ca |
| 10.200.17.10 | 3306 | 1702674167549323 | 0                    | SSL connection error: tlsv1 alert unknown ca |
| 10.200.17.8  | 3306 | 1702674167555705 | 0                    | SSL connection error: tlsv1 alert unknown ca |
@kuzmik
Copy link

kuzmik commented Jan 11, 2024

We'd really like this as well!

@shameemshah
Copy link

I'm also encountering with the same issue. Any guidance or help would be greatly appreciated.

@kuzmik
Copy link

kuzmik commented Mar 4, 2024

It's been released as part of 2.6.0!

Added new feature mysql_servers_ssl_params #4458

  • Allows overriding the global SSL parameters in a per-host basis.
  • Introduces new configuration table mysql_servers_ssl_params.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants