Skip to content

Releases

1.2.1

Choose a tag to compare

@hossain-rayhan hossain-rayhan released this 21 Nov 00:12
74bc9a9

Important

Security release. The default DocumentDB engine moves to 1.0.1, which fixes the zlib vulnerabilities CVE-2026-85091 (High) and CVE-2026-27171 (Medium) in the documentdb, gateway and documentdb-combined 1.0.0 images.

Engine 1.0.1 is the 1.0.0 engine (extension schema 1.0-0) rebuilt on patched Debian packages. Moving to it is a rolling restart with no schema migration. Don't set spec.schemaVersion: "1.0.1".

Upgrade

From 1.2.0 (CRDs are unchanged):

helm upgrade documentdb-operator oci://ghcr.io/documentdb/documentdb-operator \
  --version 1.2.1 --namespace documentdb-operator --wait

Clusters that don't pin spec.documentDBVersion roll onto engine 1.0.1. Clusters pinned to 1.0.0 stay there until you change the pin.

From 1.1.x or earlier: apply the 1.2.1 CRDs first. See Upgrading the operator.

Staying on an earlier operator

Operators 1.0.x, 1.1.x and 1.2.0 can use engine 1.0.1 without an operator upgrade:

  • One cluster: kubectl patch documentdb <name> -n <namespace> --type merge -p '{"spec":{"documentDBVersion":"1.0.1"}}'
  • All unpinned clusters: helm upgrade documentdb-operator oci://ghcr.io/documentdb/documentdb-operator --version <your-current-chart-version> -n documentdb-operator --reuse-values --set documentDbVersion=1.0.1 --wait

If a cluster sets spec.image.documentDB or spec.image.gateway, change those tags to 1.0.1 too. Details: Engine 1.0.1 security update.

Full details: CHANGELOG.

What's Changed

Full Changelog: 1.2.0...1.2.1

1.2.0

Choose a tag to compare

@hossain-rayhan hossain-rayhan released this 19 Nov 22:55
41b26fb

Important

Apply the 1.2.0 CRDs before helm upgrade. Helm does not upgrade CRDs, and operator 1.2.0 cannot start without the documentdb.io/v1 API they add:

TARGET_VERSION="1.2.0"
kubectl apply --server-side --force-conflicts \
  -f https://raw.githubusercontent.com/documentdb/documentdb-kubernetes-operator/${TARGET_VERSION}/operator/documentdb-helm-chart/crds/documentdb.io_dbs.yaml \
  -f https://raw.githubusercontent.com/documentdb/documentdb-kubernetes-operator/${TARGET_VERSION}/operator/documentdb-helm-chart/crds/documentdb.io_backups.yaml \
  -f https://raw.githubusercontent.com/documentdb/documentdb-kubernetes-operator/${TARGET_VERSION}/operator/documentdb-helm-chart/crds/documentdb.io_scheduledbackups.yaml
helm upgrade documentdb-operator oci://ghcr.io/documentdb/documentdb-operator \
  --version ${TARGET_VERSION} --namespace documentdb-operator --wait

If you pinned image tags at install time, add --reset-values (see the upgrade guide).

Operator release for DocumentDB 1.0. The default DocumentDB engine stays at 1.0.0, so only the operator, sidecar, CRDs and Helm chart change. Existing clusters are not restarted.

Highlights

  • Stable documentdb.io/v1 API. DocumentDB, Backup and ScheduledBackup graduate to documentdb.io/v1, now the storage version. documentdb.io/preview is deprecated but still served with an identical schema, so existing resources and manifests keep working (with a deprecation warning). Switch manifests to apiVersion: documentdb.io/v1; no field changes are needed. See Migrating to the documentdb.io/v1 API.
  • Outbound proxy for the OTel Collector sidecar through the new Helm proxy values (#476).
  • Fix: engine schema upgrades now update documentdb_core together with documentdb (#507). Clusters already upgraded by an earlier operator can run ALTER EXTENSION documentdb_core UPDATE; on the primary.
  • Security: Go 1.26.11 (GO-2026-6859), cert-manager Go dependency v1.19.6 (CVE-2026-62290) and klauspost/compress v1.20.2 (GO-2026-6865). Upgrade your separately installed cert-manager to 1.19.6 or 1.20.3.
  • Docs: connection examples and diagnostics read credentials at runtime (#518); getting-started guides port-forward the gateway Service (#467).

Full details: CHANGELOG.

What's Changed

Full Changelog: 1.1.1...1.2.0

1.1.1

Choose a tag to compare

@WentingWu666666 WentingWu666666 released this 09 Nov 20:57
4ddec4d

What's Changed

New Contributors

Full Changelog: 1.1.0...1.1.1

1.1.0

Choose a tag to compare

@WentingWu666666 WentingWu666666 released this 04 Nov 14:49
a0c70db

What's Changed

Full Changelog: 1.0.0...1.1.0

1.0.0

Choose a tag to compare

@guanzhousongmicrosoft guanzhousongmicrosoft released this 19 Oct 11:39
3928a33

[1.0.0] - 2026-10-19

First generally available release of the DocumentDB Kubernetes Operator, for DocumentDB 1.0. The chart deploys DocumentDB engine 1.0.0 (extension schema 1.0-0) by default. The operator and engine keep separate version numbers; see the version compatibility table.

How to install

helm install documentdb-operator oci://ghcr.io/documentdb/documentdb-operator \
  --version 1.0.0 \
  --namespace documentdb-operator \
  --create-namespace \
  --wait

Requires Kubernetes 1.33+ with ImageVolume (on by default from 1.35, beta in 1.35 and GA in 1.36; on 1.33/1.34 enable the ImageVolume feature gate on the apiserver and every kubelet), a containerd or CRI-O runtime, and cert-manager 1.19+.

Upgrading

Follow Upgrading to DocumentDB 1.0 before you run helm upgrade.

  • From 0.3.0: pin spec.documentDBVersion on each cluster and remove spec.schemaVersion: "auto" first. Otherwise, engine pods roll from 0.110.0 to 1.0.0 as soon as the chart upgrades, and auto runs the schema migration immediately. Then move each cluster to 1.0.0 with the two-phase upgrade. The schema step (ALTER EXTENSION documentdb UPDATE) cannot be undone.
  • From 1.0.0-rc1 (DocumentDB 1.0-RC2): in-place upgrade to GA is not supported (#471). Pin RC clusters to 1.0-RC2 before upgrading the chart, then migrate the data to a new 1.0.0 cluster, for example with mongodump/mongorestore.

Major Features

  • DocumentDB 1.0 by default: the chart, operator, and sidecar injector default to the documentdb:1.0.0 and gateway:1.0.0 images.
  • Configurable image registries: an image.registry prefix and per-component repository values re-home every operator and data-plane image to a private or mirrored registry, with validated repository and tag overrides (#464).
  • ImageVolume capability check: the webhook rejects DocumentDB creation with an actionable error when ImageVolume is unavailable, instead of leaving pods stuck (#431, #437). The chart's kubeVersion floor is >= 1.33.0-0.
  • Dedicated monitoring identity: the OpenTelemetry Collector sidecar connects to PostgreSQL as its own login-only role (#420).
  • Restore compatibility validation: the webhook rejects restoring a backup or retained PersistentVolume into a cluster whose engine binary is older than the source schema (#440).
  • PostgreSQL and replication TLS: spec.tls.postgres accepts your own CA and certificate Secrets for PostgreSQL server and replication connections (#416).
  • Database image builds: extension packages come from PGDG, and RC or not-yet-packaged stable releases build from a pinned upstream tag (#456, #470, #478).

Bug Fixes

  • Address dependency vulnerabilities reported by govulncheck, including gRPC (#429, #436, #468, #473).
  • Track the floating PostgreSQL 18 image again after temporarily pinning 18.4 to avoid a crash in the DocumentDB extension (#445, #459).

Breaking Changes

  • The top-level gatewayImagePullPolicy and documentDbImagePullPolicy Helm values moved to image.gateway.pullPolicy and image.documentdb.pullPolicy. The old keys no longer take effect.

Testing and Documentation

  • Expand E2E schema-upgrade coverage (automatic migration, rollback, HA, unpullable version) and add expired-backup cleanup tests (#426, #443, #393).
  • Add long-haul data-protection verification, retention pruning, and operator/primary pod kill operations (#419, #421, #422).
  • Introduce a product-neutral ClusterIntent abstraction with no functional change (#446).
  • Add multi-cloud deployment docs and an Arc + Fleet hybrid setup (#399, #267).

See CHANGELOG.md for details.

1.0.0-rc1

1.0.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@xgerman xgerman released this 15 Oct 20:38
e955a91

[1.0.0-rc1] - 2026-10-09

How to install

Replace the helm step in our install documentation with these images:

helm install documentdb-operator oci://ghcr.io/documentdb/documentdb-operator \
  --version 1.0.0-rc1 \
  --namespace documentdb-operator \
  --create-namespace \
  --wait

Major Features

  • Configurable image registries: Support private and mirrored registries for
    operator and data-plane images, with validated repository and tag overrides
    (#464).
  • ImageVolume capability validation: Reject DocumentDB creation when the
    required Kubernetes ImageVolume capability is unavailable (#431, #437).
  • Database image updates: Source Debian 13 DocumentDB extension packages
    from PGDG, update the default DocumentDB version to 0.117.0, and remove the
    temporary PostgreSQL image pin (#456, #459).
  • Dedicated monitoring identity: Use a dedicated identity for the
    OpenTelemetry Collector sidecar (#420).
  • Restore compatibility validation: Validate schema-version compatibility
    when restoring backups (#440).
  • PostgreSQL connection certificates: Support certificates for PostgreSQL
    connections (#416).
  • Arc and Fleet hybrid setup: Add hybrid deployment setup for DocumentDB
    portal visibility (#267).

Bug Fixes

  • Address dependency vulnerabilities reported by govulncheck, including gRPC
    vulnerabilities.
  • Fix PostgreSQL image compatibility with the DocumentDB extension to unblock
    E2E tests (#445).

Breaking Changes

  • Move gateway and DocumentDB image pull-policy Helm values to
    image.gateway.pullPolicy and image.documentdb.pullPolicy; existing
    top-level overrides must be migrated.

Enhancements & Fixes

  • Introduce a product-neutral ClusterIntent abstraction without functional
    changes (#446).
  • Expand E2E schema-upgrade coverage for automatic migrations, rollback, high
    availability, and unpullable versions (#426, #443).
  • Add expired-backup cleanup tests and long-running data-protection verification
    using ScheduledBackup and retention (#393, #419).
  • Add operator-pod and primary-pod failure injection, plus retention pruning to
    bound long-running workload disk usage (#421, #422).

Documentation

  • Add multi-cloud deployment documentation (#399).

0.3.0

Choose a tag to compare

@WentingWu666666 WentingWu666666 released this 17 Jul 20:48
e05d6b1

Released 2026-07-17

Security

  • Bumped CloudNative-PG dependency from chart 0.27.0 (app 1.28.0) to 0.28.1 (app 1.29.1) to pick up the fix for CVE-2026-44477 / GHSA-423p-g724-fr39: a privilege-escalation vulnerability in the CNPG metrics exporter that could allow a low-privilege PostgreSQL user to escalate to superuser and execute arbitrary commands in the database pod. Operators upgrading via helm upgrade will get the patched CNPG operator automatically.

Major Features

  • io_uring opt-in feature gate: A new IOUring feature gate (spec.featureGates.IOUring: true) enables PostgreSQL 18 asynchronous I/O (io_method=io_uring). Because the container runtime's default seccomp profile strips the io_uring_setup/enter/register syscalls, the operator also relaxes the postgres container seccomp profile — pointing the pods at a hardened Localhost profile that re-allows only those three syscalls — when the gate is on, so no external Kyverno policy is needed. It is opt-in (default off) since io_uring relaxes the sandbox. The Localhost profile path is operator-level config via the Helm value operator.ioUring.seccompProfile (default profiles/documentdb-iouring.json). See io_uring documentation and the feature playground.
  • Gateway OTLP metrics in the per-pod sidecar: when spec.monitoring.enabled=true, the OTel Collector sidecar now exposes an OTLP/gRPC receiver on 127.0.0.1:4317 and the documentdb-gateway is configured (via OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_METRICS_ENABLED) to push its db_client_* metrics there. The sidecar's existing prometheus exporter re-exports them alongside the existing documentdb.postgres.up sqlquery output, with per-pod attribution added by the collector's resource processor. No new CRD fields; this turns on automatically wherever monitoring was already enabled.
  • Two-Phase Extension Upgrade: New spec.schemaVersion field separates binary upgrades (spec.documentDBVersion) from irreversible schema migrations (ALTER EXTENSION UPDATE). The default behavior gives you a rollback-safe window — update the binary first, validate, then finalize the schema. Set schemaVersion: "auto" for single-step upgrades in development environments. See the upgrade guide for details.

Behavioral Changes

  • Sidecar memory & CPU isolation: spec.resource.memory and spec.resource.cpu are now treated as the total pod resource envelope. The operator reserves resources for the documentdb-gateway sidecar (memory default 18.75% of the envelope, capped at 32Gi) and, when spec.monitoring.enabled is true, the OTel collector sidecar (default memory limit 128Mi, CPU request 50m / limit 200m), then gives PostgreSQL the remainder and recomputes its memory-aware parameters (shared_buffers, etc.) accordingly. This isolates a gateway/collector leak so it is OOM-killed in its own container instead of crowding out PostgreSQL. The split is configurable per component via spec.resource.{gateway,database,otel} and fleet-wide via operator Helm values. The envelope is optional: you may omit spec.resource.memory/cpu for a dimension when it is set explicitly on both the gateway and the database (the effective envelope is then the sum); a partially specified dimension without an envelope is rejected by the validating webhook. Existing clusters adopt the new split (and a one-time rolling restart) on their next reconcile.

Breaking Changes

  • CRD restructure into domain-grouped stanzas: image, postgres and plugin fields have moved into dedicated groups. Migrate as follows: spec.documentDBImage → spec.image.documentDB, spec.gatewayImage → spec.image.gateway, spec.postgresImage → spec.image.postgres, spec.sidecarInjectorPluginName → spec.plugins.sidecarInjectorName. A new spec.postgres group exposes uid, gid and postInitSQL (the operator's mandatory bootstrap statements always run first; user statements are appended after). A new root-level spec.imagePullSecrets is propagated to the underlying CNPG cluster.
  • Validating webhook added: A new ValidatingWebhookConfiguration enforces that spec.schemaVersion never exceeds the binary version and blocks spec.documentDBVersion rollbacks below the committed schema version. This requires cert-manager to be installed in the cluster (it is already a prerequisite for the sidecar injector). Existing clusters upgrading to this release will have the webhook activated automatically via helm upgrade.
  • Removed Disabled TLS gateway mode: The spec.tls.gateway.mode: Disabled option has been removed to eliminate the security risk of plaintext Mongo wire protocol traffic. Previously, Disabled mode served connections in plaintext, contradicting the Disabled tab in tls.md which described the mode as a self-signed bootstrap. Empty or unset mode now defaults to SelfSigned, and the controller fails closed (also defaulting to SelfSigned) if a legacy Disabled value is encountered on a stored object. Users with mode: Disabled should remove this setting or explicitly set mode: SelfSigned — the gateway will automatically use a cert-manager generated self-signed certificate. See issue #356 for details.

Playground & Examples

  • io_uring feature playground: New documentdb-playground/io-uring-feature/ demonstrates the operator-native IOUring opt-in, modeled on the upstream cnpg-playground seccomp approach — a kind cluster that extraMounts the curated Localhost seccomp profile, a DaemonSet installer for real clusters, the DocumentDB CR with spec.featureGates.IOUring: true, and verification steps. No Kyverno policy is required.
  • Container metrics reference collector: The telemetry playground now includes a reference OpenTelemetry Collector DaemonSet under documentdb-playground/telemetry/container-metrics/ for clusters that do not already collect kubelet-backed container metrics. It scrapes each node's local kubelet for container, pod, and node CPU/memory/network/filesystem metrics and exposes them via Prometheus. The production operator chart does not install this platform-level collector; tenant DocumentDB clusters do not receive kubelet privileges.

Testing infrastructure

  • Unified E2E test suite (#346): The four legacy end-to-end workflows (test-integration.yml, test-E2E.yml, test-backup-and-restore.yml, test-upgrade-and-rollback.yml) and their bash / JavaScript (mongosh) / Python (pymongo) glue have been replaced by a single Go / Ginkgo v2 / Gomega suite under test/e2e/. Specs are organised by CRD operation (lifecycle, scale, data, performance, backup, tls, feature gates, exposure, status, upgrade), reuse CloudNative-PG's tests/utils packages as a library, and speak the Mongo wire protocol via go.mongodb.org/mongo-driver/v2.

Breaking changes for contributors

  • Local E2E invocation changed. Tests are now run via ginkgo against an already-provisioned cluster, not via npm test / bash scripts. Typical invocation:
    cd test/e2e
    ginkgo -r --label-filter=smoke ./tests/...
    Label selection replaces per-workflow entry points; depth is controlled by TEST_DEPTH (0=Highest … 4=Lowest). See test/e2e/README.md for prereqs, the full env-var table (including E2E_RUN_ID and the E2E_UPGRADE_* upgrade-suite variables), and troubleshooting.
  • Design rationale for the migration — scope, fixture tiers, parallelism model, CNPG reuse strategy — is documented in docs/designs/e2e-test-suite.md.

0.2.0

Choose a tag to compare

@guanzhousongmicrosoft guanzhousongmicrosoft released this 27 Mar 00:40
6fed733

Major Features

  • ImageVolume Deployment: The operator uses ImageVolume (GA in Kubernetes 1.35) to mount the DocumentDB extension as a separate image alongside a standard PostgreSQL base image
  • DocumentDB Upgrade Support: Configurable PostgresImage and ImageVolume extensions for seamless upgrades
  • Sync Service & ChangeStreams: DocumentDB sync service and ChangeStreams feature gate
  • Affinity Configuration: Pod scheduling passthrough for affinity rules
  • PersistentVolume Management: PV retention, security mount options, and PV recovery support
  • CNPG In-Place Updates: Support for CloudNative-PG in-place updates

Breaking Changes

  • Kubernetes 1.35+ required: The legacy combined-image deployment mode for Kubernetes < 1.35 has been removed. Kubernetes 1.35+ is now required.
  • Deb-based container images: Container images switched from source-compiled builds to deb-based packages under ghcr.io/documentdb/documentdb-kubernetes-operator/. The extension and gateway are now separate images with versioned tags (e.g., :0.109.0).
  • PostgreSQL base image changed to Debian trixie: The default postgresImage changed from postgresql:18-minimal-bookworm to postgresql:18-minimal-trixie (Debian 13) to satisfy the deb-based extension's GLIBC requirements. Existing clusters that don't explicitly set postgresImage will use the new base on upgrade.

Bug Fixes

  • Gateway pods now restart when TLS secret name changes
  • Fixed PV labeling for multi-cluster lookups
  • Fixed Go toolchain vulnerabilities (upgraded to 1.25.8)

Documentation

  • Added comprehensive AKS and AWS EKS deployment guides
  • Added high availability documentation for local HA configuration
  • Added auto-generated CRD API reference documentation
  • Added architecture, prerequisites, and FAQ documentation

0.1.2

Choose a tag to compare

@guanzhousongmicrosoft guanzhousongmicrosoft released this 05 Dec 20:12
3990ec2

[0.1.2] - 2025-12-05

Major Features

  • Local High-Availability Support
  • Single Cluster Backup and Restore
  • MultiCloud Setup Guide

Enhancements & Fixes

  • Documentation to configure OpenTelemetry, Prometheus and Grafana
  • Bug Fix: Show Status and Connection String in Status
  • Update scripts and docs for Multi-Region and Multi-Cloud Setup
  • Add Cert Manager to Operator

0.1.1

Choose a tag to compare

@guanzhousongmicrosoft guanzhousongmicrosoft released this 16 Oct 21:09
54ce46f

Version 0.1.1