Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
Description
With MDEV-16266 implemented in 10.4, it seems like we have an opportunity to make certain SSL/TLS system variables dynamic.
It looks like FLUSH SSL uses the following variables to reload the TLS context:
- ssl_cert
- ssl_key
- ssl_ca
- ssl_capath
- ssl_crl
- ssl_crlpath
- ssl_cipher
https://github.com/MariaDB/server/blob/mariadb-10.4.4/sql/mysqld.cc#L4735
https://github.com/MariaDB/server/blob/mariadb-10.4.4//vio/viosslfactories.c#L334
Can all of these variables be made dynamic in 10.4, as long as the system supports FLUSH SSL?
Attachments
Issue Links
- relates to
-
MDEV-16266 Ability to Refresh SSL Cert / CRL Without Server Restart
-
- Closed
-
I'm not sure it is a very good idea.
I think that the user expectation is that setting a variable has immediate effect - in the given case the SSL context would be reloaded, as result of SET GLOBAL (rather than delayed until FLUSH SSL).
However, this will not really work for all ssl variables in all cases, some of the parameters are dependent on each other, for example ssl_key cannot be changed without also changing ssl_cert.