[MDEV-27681] Broken certificate validation: rsync and mariabackup SSTs fails to extract CN properly Created: 2022-01-30 Updated: 2023-03-03 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Galera SST |
| Affects Version/s: | 10.5.13, 10.6.5 |
| Fix Version/s: | 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michal Kozlowski | Assignee: | Julius Goryavsky |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian 11 / 5.10.0-11-amd64 |
||
| Description |
|
for rsync method, configuration passed to stunnel is
for mariabackup:
After investigation I found that output returned by openssl -subject is
both for letsencrypt issued certificates and generated with easyrsa with EASYRSA_DN=cn_only (default),
so after "tr" it's still `subject=CN = hostname` The simplest workaround that comes to my mind is replace `tr|grep` part with `grep -Eo 'CN =[^,$]+'`
|