For the complete documentation index, see llms.txt. This page is also available as Markdown.

Responding to a Key or Certificate Compromise

Respond to a compromised MariaDB Galera Cluster node key or certificate by revoking via CRL or reissuing from a new CA, applied online with hot reload.

If a node's private key or certificate is compromised, the goal is to stop trusting it across the cluster as quickly as possible. There are two approaches, which can be combined.

Revoke via a Certificate Revocation List (CRL)

Only the SERVER_X509 TLS mode requests and verifies peer certificates (the SERVER mode encrypts traffic but does not request a peer certificate), so a CRL applies only in SERVER_X509. In that mode, inter-node TLS uses the server's TLS configuration, which supports a CRL through the ssl_crl (file) and ssl_crlpath (directory) system variables.

  1. Add the compromised certificate to the CRL and distribute the updated CRL to every node.

  2. Run FLUSH SSL; on each node so the new CRL takes effect.

CRL checking applies to inter-node traffic only in the SERVER_X509 TLS mode, which is the only mode that requests and verifies peer certificates.

Reissue from a New CA

For a CA-key compromise, or to invalidate a certificate without relying on CRL distribution, rotate the cluster CA and reissue all node certificates. See Cluster CA Rotation.

See Also

This page is licensed: CC BY-SA / Gnu FDL

Last updated

Was this helpful?