> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/cennso-db/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/cennso-db/latest/releases/1.4.0.md).

# Cennso Database 1.4.0

**Release date:** 2026-11-09

The Cennso Database extension 1.4.0 provides the following features and fixes:

- Introduce support for PostgreSQL
- Configurable image for the MySQL backup jobs
- Default MySQL images pulled from the Cennso registry
- New `binary-donor` image
- New `mysqld-exporter` image
- Improvements for the MySQL Grafana dashboard
- Fixes for the MySQL metrics exporter
- Fix for the namespace in the MySQL TLS certificate SANs
- Fix for the pull secret of the MySQL pods

> [!IMPORTANT]
> The Cennso Database extension in version 1.4.0 requires Cennso in version 2.11 or higher. This requirement comes from the PostgreSQL resources, which are based on Crossplane 2 and need the Crossplane providers shipped with Cennso 2.11. The `cennso-postgresql` configuration package is part of the extension package, so the requirement applies even if you use only MySQL.
>
> Before upgrading to the newest version, read the instructions provided in the [migration](#migration-guide) and [Upgrade a database](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-db-upgrade.md) guides.

## Features

### Introduce support for PostgreSQL

The Cennso Database extension in version 1.4.0 adds support for PostgreSQL. The PostgreSQL clusters are managed by the [Percona Operator for PostgreSQL](https://docs.percona.com/percona-operator-for-postgresql/) and are configured using the following new Custom Resources:

- [`PostgreSQLOperator`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-operator.md) - deploys the Cennso PostgreSQL Operator
- [`PostgreSQLInstance`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-instance.md) - deploys a PostgreSQL cluster with [PgBouncer](https://www.pgbouncer.org/), local or dynamically provisioned storage, an optional separate volume for the write-ahead log, and in-place major-version upgrades
- [`PostgreSQLSchema`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-schema.md) - creates a database on the specified PostgreSQL cluster
- [`PostgreSQLUser`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-user.md) - creates a database user with grants on the specified PostgreSQL cluster
- [`PostgreSQLBackup`](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-postgresql-backup.md) - runs a scheduled `pg_basebackup` from a read replica and uploads it to a restic repository

The PostgreSQL resources are delivered in the new `cennso-postgresql` configuration package, which is installed together with the extension package. For more information, see the [Installation](https://docs.cennso.com/cennso/cennso-db/latest/installation.md) document.

> [!NOTE]
> The PostgreSQL resources are based on [Crossplane 2.0](https://docs.crossplane.io/v2.0/whats-new/). As a result, the PostgreSQL resources are namespaced and do not use claims. You create them directly in a Kubernetes namespace of the Management Cluster. The PostgreSQL clusters can run either on the Management Cluster or on a Core Cluster. To deploy to a Core Cluster, set the **spec.connectionSecretRef** configuration option.

For more information, see the following documents:

- [Concepts](https://docs.cennso.com/cennso/cennso-db/latest/concepts/concepts.md) - the PostgreSQL resources and their configuration options
- [Deploy Cennso PostgreSQL](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/cennso-postgresql.md) - how to deploy the operator and a PostgreSQL cluster
- [Operation guides](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/guides.md) - how to create databases and users, manage TLS certificates, back up and restore, upgrade, and change database roles
- [Observability](https://docs.cennso.com/cennso/cennso-db/latest/observability/observability.md) - the PostgreSQL metrics, the Grafana dashboard, and the alert rules

### Configurable image for the MySQL backup jobs

The previous versions of the Cennso Database extension used the hard-coded `alpine/kubectl:1.35.0` image from Docker Hub for the backup jobs, and you could not change it. The Cennso Database extension in version 1.4.0 adds the following configuration options to the `XDBBackup` composition:

```yaml
spec:
  image:
    registry: registry.cennso.com/cennso/alpine-kubectl
    tag: v1.35.0
  imagePullSecretRef:
    name: cennso-pull-secret
```

For more information, see the [Cennso Database Backup](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-backup.md) document.

## Maintenance

### Default MySQL images pulled from the Cennso registry

The previous versions of the Cennso Database extension pulled the HAProxy image and the init image of HAProxy and MySQL Orchestrator from Docker Hub. The Cennso Database extension in version 1.4.0 changes the default values of the following configuration options of the `DBInstance` Custom Resource:

| Configuration option | Previous default value | New default value |
|---|---|---|
| **spec.haproxy.image** | `percona/haproxy:2.8.14` | `registry.cennso.com/cennso/haproxy:v2.8.14` |
| **spec.haproxy.initImage** | `percona/percona-server-mysql-operator:0.8.0` | `registry.cennso.com/cennso/percona-server-mysql-operator:v0.8.0` |
| **spec.orchestrator.initImage** | `percona/percona-server-mysql-operator:0.8.0` | `registry.cennso.com/cennso/percona-server-mysql-operator:v0.8.0` |

The images are the same, only the registry and the tag change. The HAProxy pods use the pull secret from the **spec.imagePullSecretRef** configuration option to pull them.

### New `binary-donor` image

The Cennso Database extension in version 1.4.0 updates the `binlog-donor` image to v1.0.1. The new image is built with Go 1.27.3 and does not change the behavior of the [binary-donor](https://docs.cennso.com/cennso/cennso-db/latest/deployment-guides/binary-donor.md) application.

### New `mysqld-exporter` image

The Cennso Database extension in version 1.4.0 updates the default tag of the `percona-mysqld-exporter` image from `v3.6.0` to `v3.6.0-cennso-1.0.0`. The new image is built with Go 1.27.3 and does not change the exposed metrics.

### Improvements for the MySQL Grafana dashboard

The Cennso Database extension in version 1.4.0 provides the following improvements for the MySQL Grafana dashboard:

- New **Datasource** dropdown, so you can point the dashboard at any Prometheus data source.
- New HAProxy section with the CPU and memory usage of the HAProxy pods.
- The unit of each panel is shown in square brackets in the panel title.
- The rate panels use the Grafana `$__rate_interval` and `$__interval` intervals, so the window follows the zoom level and the scrape interval. The **Interval** dropdown is removed.
- The network traffic is shown in bits per second.
- The **Dirty pages** and **Pending data fsyncs** panels show the number of pages and operations instead of their rate of change.
- The **Slow queries** panel shows the slow queries per pod.
- The legends of the disk IOPS panels show the device and the pod name.
- The series overrides, for example the colors and the right axis, apply again.
- The default time range is the last 28 hours, and the week starts on Monday.

In addition, the dashboard variables are renamed:

- `ClusterName` to `CLUSTER_NAME`
- `MySQLNamespace` to `MYSQL_NAMESPACE`
- `MySQLInstance` to `MYSQL_INSTANCE`

For more information, see the [Dashboard](https://docs.cennso.com/cennso/cennso-db/latest/observability/dashboard.md) document.

## Fixes

### Fixes for the MySQL metrics exporter

The Cennso Database extension in version 1.4.0 provides the following fixes for the MySQL metrics exporter:

- The custom alert rules from the **spec.metricsExporter.prometheusRules** configuration option were never created, because the composition passed them to the chart under a wrong key. The rules are now created.
- The custom alert rules were created once per MySQL instance, so Prometheus showed each rule and each firing alert several times. The composition now creates one `PrometheusRule` named `mysqld-exporter-{CLAIM-NAME}` per MySQL cluster.
- Alert rules and custom queries that contained Prometheus templates, for example `{{ $labels.instance }}`, failed with the `undefined variable "$labels"` error. These values are now passed to Prometheus and the exporter unchanged.
- The **spec.metricsExporter.scrapeInterval** configuration option was ignored, so Prometheus used its global scrape interval. The value from your claim is now used.

### Fix for the namespace in the MySQL TLS certificate SANs

The `XDBTLSCertificate` composition used the hard-coded `testing` namespace in the DNS names of the MySQL, MySQL Orchestrator, and router Services. As a result, the certificates for the MySQL clusters in any other namespace had wrong SANs. The Cennso Database extension in version 1.4.0 uses the namespace from the **spec.namespace** configuration option instead.

### Fix for the pull secret of the MySQL pods

The previous versions of the Cennso Database extension always used the `cennso-pull-secret` secret to pull the MySQL images and ignored the **spec.imagePullSecretRef** configuration option of the `DBInstance` Custom Resource. As a result, the MySQL pods could not pull their images when you set a different secret name. The Cennso Database extension in version 1.4.0 uses the secret from **spec.imagePullSecretRef** for the MySQL pods, the same as for HAProxy and MySQL Orchestrator.

## Migration guide

> [!IMPORTANT]
> Before performing an upgrade, make sure you carefully read the [Installation](https://docs.cennso.com/cennso/cennso-db/latest/installation.md) and [Upgrade a database](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-db-upgrade.md) documents.

This section describes how to upgrade the Cennso Database extension from version 1.3.2 to 1.4.0.

The new version of the Cennso Database extension changes the default images of HAProxy, MySQL Orchestrator, the metrics exporter, and `binary-donor`. For this reason, these pods are restarted during the upgrade. While the HAProxy pods restart, the client connections through HAProxy can be interrupted for a short time. Make sure you [back up](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/backup.md) your database before performing the upgrade.

Before you start the upgrade, perform the checks described in the following sections.

### Check your Cennso version

Make sure your Cennso installation is in version 2.11 or higher. For more information, see the [Installation](https://docs.cennso.com/cennso/cennso-db/latest/installation.md) document.

### Update your own Package resource

If you create the `Package` resource of the extension yourself, as described in the CLI steps of the [Installation](https://docs.cennso.com/cennso/cennso-db/latest/installation.md) document, add the new `cennso-postgresql` configuration package to it:

```yaml
- name: cennso-postgresql
  provider: ConfigurationPackage
  repository: {CONFIGURATION_REPOSITORY}
  tag: {PACKAGE-VERSION}
```

If you use the `Package` resource provided with the extension, you do not need to change anything.

### Update your registry mirror

The new version of the Cennso Database extension pulls the HAProxy, init, and backup job images from `registry.cennso.com` instead of Docker Hub, and deploys the new images of `binary-donor`, the metrics exporter, and the PostgreSQL components. If you use a private registry mirror, make sure the following images are available before the upgrade:

- `cennso/haproxy:v2.8.14`
- `cennso/percona-server-mysql-operator:v0.8.0`
- `cennso/alpine-kubectl:v1.35.0`
- `cennso/binlog-donor:v1.0.1`
- `cennso/percona-mysqld-exporter:v3.6.0-cennso-1.0.0`

If you plan to use PostgreSQL, also make sure the PostgreSQL images are available. For the list of these images, see the [PostgreSQL container images](https://docs.cennso.com/cennso/cennso-db/latest.md#postgresql-container-images) and [PostgreSQL additional containers](https://docs.cennso.com/cennso/cennso-db/latest.md#postgresql-additional-containers) sections.

If you set **spec.haproxy.image**, **spec.haproxy.initImage**, or **spec.orchestrator.initImage** in your claims, the values from your claims are used, and you do not need to change them.

### Check the pull secret of the backup jobs

The previous versions of the Cennso Database extension pulled the backup job image from Docker Hub without a pull secret. The new version pulls it from `registry.cennso.com`, so the backup jobs need a pull secret. Make sure the Kubernetes secret from the **spec.imagePullSecretRef** configuration option of the `XDBBackup` composition exists in the namespace specified in **spec.namespace**.

### Check the pull secret of the MySQL pods

If you set **spec.imagePullSecretRef** of the `DBInstance` Custom Resource to a name other than `cennso-pull-secret`, the MySQL pods [use this secret](#fix-for-the-pull-secret-of-the-mysql-pods) after the upgrade and are restarted. This secret already exists in the namespace of your database instances, because MySQL Orchestrator uses it, so you do not need to change anything. If you use the default name, the MySQL pods are not affected.

### Check your custom alert rules

The previous versions of the Cennso Database extension did not create the custom alert rules from the **spec.metricsExporter.prometheusRules** configuration option. After the upgrade, these rules are [created](#fixes-for-the-mysql-metrics-exporter), and the alerts can start to fire. Check these rules in your claims before the upgrade.

### Check your MySQL TLS certificates

If you use the `XDBTLSCertificate` composition for a MySQL cluster outside the `testing` namespace, the certificate is issued again with the [new SANs](#fix-for-the-namespace-in-the-mysql-tls-certificate-sans) after the upgrade. If you added the namespaced DNS names using the **spec.additionalSANs** configuration option as a workaround, you can remove them.

### Update your dashboard links and queries

The MySQL dashboard variables are [renamed](#improvements-for-the-mysql-grafana-dashboard). If you saved links to the dashboard with the `var-ClusterName`, `var-MySQLNamespace`, or `var-MySQLInstance` URL parameters, or copied queries that use these variables, update them to the new names.
