Repository navigation
Releases
1.2.1
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 --waitClusters 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
- Revise Microsoft entry in ADOPTERS.md by @xgerman in #519
- test: avoid credential-bearing URI literals in fixtures and examples by @hossain-rayhan in #520
- chore: release v1.2.1 with DocumentDB engine 1.0.1 as the default by @hossain-rayhan in #524
Full Changelog: 1.2.0...1.2.1
1.2.0
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 --waitIf 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/v1API.DocumentDB,BackupandScheduledBackupgraduate todocumentdb.io/v1, now the storage version.documentdb.io/previewis deprecated but still served with an identical schema, so existing resources and manifests keep working (with a deprecation warning). Switch manifests toapiVersion: documentdb.io/v1; no field changes are needed. See Migrating to thedocumentdb.io/v1API. - Outbound proxy for the OTel Collector sidecar through the new Helm
proxyvalues (#476). - Fix: engine schema upgrades now update
documentdb_coretogether withdocumentdb(#507). Clusters already upgraded by an earlier operator can runALTER 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) andklauspost/compressv1.20.2(GO-2026-6865). Upgrade your separately installed cert-manager to1.19.6or1.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
- docs: port-forward getting-started connections to gateway services by @alaye-ms in #467
- fix: upgrade Debian packages in the gateway image by @guanzhousongmicrosoft in #504
- fix: upgrade cert-manager to address CVE-2026-62290 by @WentingWu666666 in #505
- feat: graduate Kubernetes CRDs to
documentdb.io/v1by @hossain-rayhan in #486 - feat: add outbound proxy support for the OTel Collector sidecar by @WentingWu666666 in #476
- docs: update the release agent to match the actual release process by @hossain-rayhan in #509
- fix: update Go to 1.26.11 for vulnerability checks by @WentingWu666666 in #508
- fix: upgrade documentdb_core before documentdb by @WentingWu666666 in #507
- fix: use compatible stable documentation links by @WentingWu666666 in #513
- fix: verify released documentation entrypoints by @xgerman in #514
- fix: use runtime credentials in connection examples and diagnostics by @hossain-rayhan in #518
- chore: release v1.2.0 by @hossain-rayhan in #506
Full Changelog: 1.1.1...1.2.0
1.1.1
What's Changed
- fix: refuse walReplica=true in the Helm chart until it works by @guanzhousongmicrosoft in #492
- docs: stop scripts and docs installing missing or pre-1.0 versions by @guanzhousongmicrosoft in #479
- fix: stop the combined image inheriting CNPG's labels by @guanzhousongmicrosoft in #493
- fix(ci): check loaded images with docker image inspect by @hossain-rayhan in #490
- Add condition for cnpg by @DRSchlaubi in #496
- fix: prepare operator 1.1.1 security patch release by @WentingWu666666 in #503
New Contributors
- @DRSchlaubi made their first contribution in #496
Full Changelog: 1.1.0...1.1.1
1.1.0
What's Changed
- fix: update Go to 1.26.10 for vulnerability checks by @hossain-rayhan in #483
- refactoring: product neutral operator core by @hossain-rayhan in #482
- feat: fall back to a combined PostgreSQL + DocumentDB image when ImageVolume is unavailable by @hossain-rayhan in #487
- test(e2e): verify the published combined image per architecture by @hossain-rayhan in #488
- chore: release v1.1.0 by @hossain-rayhan in #491
Full Changelog: 1.0.0...1.1.0
1.0.0
[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 \
--waitRequires 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.documentDBVersionon each cluster and removespec.schemaVersion: "auto"first. Otherwise, engine pods roll from0.110.0to1.0.0as soon as the chart upgrades, andautoruns the schema migration immediately. Then move each cluster to1.0.0with 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 to1.0-RC2before upgrading the chart, then migrate the data to a new1.0.0cluster, for example withmongodump/mongorestore.
Major Features
- DocumentDB 1.0 by default: the chart, operator, and sidecar injector default to the
documentdb:1.0.0andgateway:1.0.0images. - Configurable image registries: an
image.registryprefix and per-componentrepositoryvalues 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
DocumentDBcreation with an actionable error when ImageVolume is unavailable, instead of leaving pods stuck (#431, #437). The chart'skubeVersionfloor 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.postgresaccepts 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
gatewayImagePullPolicyanddocumentDbImagePullPolicyHelm values moved toimage.gateway.pullPolicyandimage.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
ClusterIntentabstraction 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] - 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.pullPolicyandimage.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
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 upgradewill get the patched CNPG operator automatically.
Major Features
- io_uring opt-in feature gate: A new
IOUringfeature gate (spec.featureGates.IOUring: true) enables PostgreSQL 18 asynchronous I/O (io_method=io_uring). Because the container runtime's default seccomp profile strips theio_uring_setup/enter/registersyscalls, 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 valueoperator.ioUring.seccompProfile(defaultprofiles/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 on127.0.0.1:4317and the documentdb-gateway is configured (viaOTEL_EXPORTER_OTLP_ENDPOINTandOTEL_METRICS_ENABLED) to push itsdb_client_*metrics there. The sidecar's existing prometheus exporter re-exports them alongside the existingdocumentdb.postgres.upsqlquery 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.schemaVersionfield 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. SetschemaVersion: "auto"for single-step upgrades in development environments. See the upgrade guide for details.
Behavioral Changes
- Sidecar memory & CPU isolation:
spec.resource.memoryandspec.resource.cpuare 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, whenspec.monitoring.enabledis 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 viaspec.resource.{gateway,database,otel}and fleet-wide via operator Helm values. The envelope is optional: you may omitspec.resource.memory/cpufor 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 newspec.postgresgroup exposesuid,gidandpostInitSQL(the operator's mandatory bootstrap statements always run first; user statements are appended after). A new root-levelspec.imagePullSecretsis propagated to the underlying CNPG cluster. - Validating webhook added: A new
ValidatingWebhookConfigurationenforces thatspec.schemaVersionnever exceeds the binary version and blocksspec.documentDBVersionrollbacks 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 viahelm upgrade. - Removed
DisabledTLS gateway mode: Thespec.tls.gateway.mode: Disabledoption has been removed to eliminate the security risk of plaintext Mongo wire protocol traffic. Previously,Disabledmode served connections in plaintext, contradicting theDisabledtab intls.mdwhich described the mode as a self-signed bootstrap. Empty or unset mode now defaults toSelfSigned, and the controller fails closed (also defaulting toSelfSigned) if a legacyDisabledvalue is encountered on a stored object. Users withmode: Disabledshould remove this setting or explicitly setmode: 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-nativeIOUringopt-in, modeled on the upstream cnpg-playground seccomp approach — a kind cluster thatextraMounts the curated Localhost seccomp profile, a DaemonSet installer for real clusters, the DocumentDB CR withspec.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 undertest/e2e/. Specs are organised by CRD operation (lifecycle, scale, data, performance, backup, tls, feature gates, exposure, status, upgrade), reuse CloudNative-PG'stests/utilspackages as a library, and speak the Mongo wire protocol viago.mongodb.org/mongo-driver/v2.
Breaking changes for contributors
- Local E2E invocation changed. Tests are now run via
ginkgoagainst an already-provisioned cluster, not vianpm test/ bash scripts. Typical invocation:Label selection replaces per-workflow entry points; depth is controlled bycd test/e2e ginkgo -r --label-filter=smoke ./tests/...TEST_DEPTH(0=Highest … 4=Lowest). Seetest/e2e/README.mdfor prereqs, the full env-var table (includingE2E_RUN_IDand theE2E_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
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
postgresImagechanged frompostgresql:18-minimal-bookwormtopostgresql:18-minimal-trixie(Debian 13) to satisfy the deb-based extension's GLIBC requirements. Existing clusters that don't explicitly setpostgresImagewill 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
[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