Bug 1346067
Summary: | maria-galera creates SSL/TLS certificates needs to be unique per instance or install but this value is created at install-time and not during the first run. | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Kurt Seifried <kseifried> | |
Component: | mariadb-galera | Assignee: | Michael Bayer <mbayer> | |
Status: | CLOSED ERRATA | QA Contact: | Udi Shkalim <ushkalim> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 9.0 (Mitaka) | CC: | gmollett, jjoyce, kseifried, mbayer, mburns, mlopes, rohara, srevivo, tjay, ushkalim | |
Target Milestone: | ga | |||
Target Release: | 9.0 (Mitaka) | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | mariadb-galera-5.5.42-2.el7ost | Doc Type: | Bug Fix | |
Doc Text: |
Previously, the RPM for `mariadb-galera` included a step to generate TLS certificates for use in Galera SSL communication. However, when the installed RPMs were used with containers that were then replicated, the TLS certificates themselves would be replicated as well. Consequently, copies of a container would contain a TLS certificate identical to the original, creating a security condition if these certificates were actually used.
With this update, the RPM package no longer generates the certificates.
As a result, no certificate is generated which may be present in a container. Certificates can be generated manually if SSL configuration of Galera is needed. Note that Red Hat OpenStack director currently does not configure Galera for SSL.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1349195 (view as bug list) | Environment: | ||
Last Closed: | 2016-08-11 12:25:17 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1346019, 1349195 |
Description
Kurt Seifried
2016-06-13 20:15:41 UTC
IMO, it's not even appropriate that TLS certs are generated for a mariadb-galera install. As for the solution that the certs are generated as part of systemd start, while the mariadb packages do follow this for the mysql_init step, for Galera SSL this is problematic since all nodes in a Galera cluster must share the same keys. That is, it's not possible for a node to receive a randomly generated key per-node if the goal is that the cluster can be started. But as it turns out, mariadb-galera already produces a Galera install that can't run without manual configuration in any case (e.g. wsrep_provider defaults to None, wsrep_cluster_address is not set). So why do we need wsrep_provider_options to point to a valid file to start with if manual steps are needed to set up the cluster in any case ? Just a note, the first run issue can also be handled through orchestration (e.g. OpenStack, CloudForms, OpenShift Enterprise and so on). But the certificate creation MUST be removed from the rpm install scripts. Verified on: galera-25.3.5-7.el7ost.x86_64 mariadb-galera-common-5.5.42-2.el7ost.x86_64 mariadb-galera-server-5.5.42-2.el7ost.x86_64 [root@overcloud-controller-0 ~]# ls -ltrh /etc/pki/galera/ total 0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-1597.html |