[MDEV-27181] Galera SST scripts should use ssl_capath (not ssl_ca) for CA directory Created: 2021-12-07 Updated: 2023-05-16 Resolved: 2021-12-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Galera SST, wsrep |
| Affects Version/s: | 10.2.41, 10.3.32, 10.4.22, 10.5.13, 10.6.5, 10.7.1 |
| Fix Version/s: | 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Julius Goryavsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Based on a discussion with sysprg, the SST script changes from
This implementation is likely to result in problems. ssl_ca is a system variable owned by MariaDB Server. MariaDB Server expects the ssl_ca system variable to refer to an absolute path to a single PEM file:
https://mariadb.com/kb/en/ssltls-system-variables/#ssl_ca If a Galera user tries to set the ssl_ca system variable to a path to a directory, MariaDB Server is likely to encounter an error during startup when it tries to treat the value as a path to a PEM file. However, there is an easy solution. MariaDB Server provides the ssl_capath system variable to refer to a directory:
https://mariadb.com/kb/en/ssltls-system-variables/#ssl_capath If we would like Galera users to be able to specify a path to a directory of CA certificates, we should probably use ssl_capath for this--not ssl_ca. |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2021-12-13 ] |
|
In my opinion this is ok to push. |
| Comment by Julius Goryavsky [ 2021-12-14 ] |
|
Fixed: |