CloudNativePG provider adds certificate authentication, new engines, and admission guardrails

The CloudNativePG provider’s v0.4.4 release rounds out the PostgreSQL experience — how clients connect and authenticate, what you can run on the cluster, and how early bad configurations are caught:

  • Client certificate authentication. A new spec.parameters.tls.clientCASecretName names a Secret whose ca.crt PostgreSQL trusts as its ssl_ca_file, so clients can authenticate with TLS client certificates. The certificate source, including the client CA, is immutable after the cluster is created.
  • Bring your own owner credentials. spec.userSecretRef now takes effect as the application owner’s Secret: PostgreSQL bootstraps with that username and password, connection details point at the same Secret, and CloudNativePG keeps the owner’s password in sync with it — so rotating the Secret rotates the owner’s credentials. Previously the field was ignored and credentials were always generated. The Secret is validated before the cluster exists: it needs a non-empty username and password, and the username must be the cluster’s owner.
  • Engine service exposure. A first-class spec.components.engine.service block (ClusterIP, LoadBalancer, or NodePort, with annotations and source ranges) exposes PostgreSQL externally. Connection details are published for exposed services — with LoadBalancer the hostname follows the LB address — and conflicting configurations are rejected, including a warning when a LoadBalancer is created without source range restrictions.
  • Solanica TimescaleDB OSS 2.32.1 builds. The TimescaleDB OSS catalog entry moves from the upstream 2.30.1 image to TimescaleDB 2.32.1 builds, with separate entries for PostgreSQL 18.7 and later and for earlier PostgreSQL versions.
  • pg_duckdb toggle. A new extensions.pgduckdb setting enables pg_duckdb 1.2.2, bringing DuckDB-powered analytics — Parquet and CSV queries, columnar scans — inside PostgreSQL. It requires PostgreSQL 18.7 or later, and duckdb.postgres_role defaults to the application owner so non-superusers can run DuckDB queries too.
  • Admission-time validation. The validating webhook now rejects cluster names longer than 50 characters, data and WAL volumes that shrink, change storage class, or drop WAL storage, resource requests below 100m CPU or 256Mi memory, and storage below 1Gi — and blocks PostgreSQL major-version downgrades and upgrades below version 16. Every problem is reported at once at its own field path, so a single dry-run lists them all.
  • PostgreSQL parameters from the UI. The engine configuration field is now a multiline, postgresql.conf-style editor (max_connections = 200) whose values reach the cluster. Parameters CloudNativePG manages itself — port, listen_addresses, wal_level, and friends — are rejected at admission instead of failing later, as are typos and duplicate keys.

To learn more, visit the release notes.