Repository navigation
chore: release v1.2.1 with DocumentDB engine 1.0.1 as the default - #524
Conversation
Security release. Move the default DocumentDB engine from 1.0.0 to 1.0.1: the 1.0.0 engine (extension schema 1.0-0) rebuilt on patched Debian packages, fixing zlib CVE-2026-85091 and CVE-2026-27171 (documentdb#504). - Default engine 1.0.0 -> 1.0.1: DEFAULT_DOCUMENTDB_TAG, chart documentDbVersion, sidecar-injector default gateway image, Helm test DOCUMENTDB_VERSION assertions, and CNPG golden files (image tags only). - Chart version/appVersion 1.2.0 -> 1.2.1 and Helm test image tags. - CHANGELOG 1.2.1 Security entry. - Docs: 1.2.1 in the version table and index; new upgrade-guide section explaining how clusters on earlier operators move to engine 1.0.1. The E2E schema-upgrade pair stays 0.117.0 -> 1.0.0: engine 1.0.1 has no schema change, so a 1.0.0 -> 1.0.1 schema test could never pass. Co-authored-by: Copilot <[email protected]> Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e Signed-off-by: Rayhan Hossain <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues blocking approval.
No open issues 🎉
What changed in this PR
Prepares operator release 1.2.1, making the previously published, security-patched DocumentDB 1.0.1 images the default without changing the extension schema or CRDs.
Changes:
- Updates chart metadata, engine defaults, and the sidecar injector’s fallback gateway image.
- Aligns Helm assertions, configuration tests, and CNPG golden fixtures with the new versions.
- Documents the security release and upgrade options for clusters on older operators.
| File | Description |
|---|---|
operator/src/internal/utils/constants.go |
Sets the compiled engine default to 1.0.1. |
operator/src/internal/cnpg/testdata/golden/replica-region-ignores-recovery.json |
Updates replica-region image expectations. |
operator/src/internal/cnpg/testdata/golden/recovery-pv.json |
Updates persistent-volume recovery image expectations. |
operator/src/internal/cnpg/testdata/golden/recovery-backup.json |
Updates backup recovery image expectations. |
operator/src/internal/cnpg/testdata/golden/explicit-component-resources.json |
Updates image expectations with explicit resources. |
operator/src/internal/cnpg/testdata/golden/env-overrides.json |
Updates the expected gateway image. |
operator/src/internal/cnpg/testdata/golden/defaults.json |
Updates default extension and gateway image expectations. |
operator/documentdb-helm-chart/values.yaml |
Sets the chart’s default engine to 1.0.1. |
operator/documentdb-helm-chart/tests/09_operator_deployment_test.yaml |
Updates operator image and engine-version assertions. |
operator/documentdb-helm-chart/tests/03_wal_replica_test.yaml |
Updates the WAL replica image assertion to 1.2.1. |
operator/documentdb-helm-chart/tests/02_sidecar_injector_test.yaml |
Updates sidecar image and engine-version assertions. |
operator/documentdb-helm-chart/Chart.yaml |
Bumps chart and application versions to 1.2.1. |
operator/cnpg-plugins/sidecar-injector/internal/config/config.go |
Defaults the gateway image to 1.0.1. |
operator/cnpg-plugins/sidecar-injector/internal/config/config_test.go |
Checks the updated gateway default. |
docs/operator-public-documentation/v1/operations/upgrades.md |
Adds security-update commands and schema-version guidance. |
docs/operator-public-documentation/v1/index.md |
Identifies 1.2.1 as the generally available release. |
docs/operator-public-documentation/v1/getting-started/before-you-start.md |
Adds the release mapping and security-update link. |
CHANGELOG.md |
Records the security release and upgrade considerations. |
Review effort: Balanced
The combined-image job derived the expected pg_extension version from the engine version string (1.0.1 -> 1.0-1). Engine 1.0.1 is a rebuild of 1.0.0 that keeps extension 1.0-0, so the published-image check failed on a correct image. For published images, read default_version from the same release's ImageVolume extension image (documentdb:<version>) instead, which also checks that the combined and ImageVolume images ship the same extension. PR-built images keep the version mapping: they're built from that version and the build job already checks the packaged schema matches. Co-authored-by: Copilot <[email protected]> Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e Signed-off-by: Rayhan Hossain <[email protected]>
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (controllers, docs, ci, test); P0 keyword "security" in body; effort from diff stats (75+30 LOC, 19 files) If a label is wrong, ping |
Summary
Security release 1.2.1. The default DocumentDB engine moves from
1.0.0to1.0.1: the1.0.0engine (extension schema1.0-0) rebuilt on patched Debian packages. It fixes zlib CVE-2026-85091 (High) and CVE-2026-27171 (Medium) in thedocumentdb,gatewayanddocumentdb-combined1.0.0images. The1.0.1images were already published on Nov 10 (#504, withupdate_defaults=false). This release makes them the default.Changes
1.0.0→1.0.1:DEFAULT_DOCUMENTDB_TAG(constants.go) and chartdocumentDbVersion.DOCUMENTDB_VERSIONassertions.UPDATE_GOLDEN=1; the diff is only1.0.0→1.0.1image tags.version/appVersion1.2.0→1.2.1, plus the Helm test image tags.[1.2.1] - 2026-11-20with a Security entry.1.2.1added to the version table and the index.1.0.1without upgrading the operator (spec.documentDBVersion, orhelm upgrade --reuse-values --set documentDbVersion=1.0.1on the current chart version). It also says not to setschemaVersion: "1.0.1".test-e2e.yml): the published-image check derived the expected extension version from the engine version string (1.0.1→1.0-1), so it failed on the correct1.0-0image. It now readsdefault_versionfrom the same release'sdocumentdb:<version>extension image, which also checks that the combined and ImageVolume images ship the same extension. PR-built images keep the version mapping, since the build job already checks it.Intentionally not changed:
0.117.0 → 1.0.0. Engine1.0.1has no schema change (both upgrade scripts are empty), so a1.0.0 → 1.0.1schema test could never pass. Re-running the DocumentDB promote workflow withupdate_defaults=truewould make that change, which is why the bump is done by hand here.1.2.0.Testing
make testand the sidecar-injector tests pass.helm unittestpasses (124). The default render showsoperator:1.2.1,sidecar:1.2.1andDOCUMENTDB_VERSION=1.0.1.mkdocs build --strictand the doc-link tests pass, and the new anchors resolve.gateway:1.0.0anddocumentdb-combined:18-1.0.0;gateway:1.0.1anddocumentdb-combined:18-1.0.1are clean (zlib…-1+deb13u1).1.0.0, each with 50 documents, thenhelm upgradeto this branch.documentdb:1.0.1andgateway:1.0.1, stayed healthy, kept its data, and the extension stayed1.0-0.1.0.0).1.0.1.psqlerrors ("the database system is shutting down"), then retried and stayed clean. This is existing behavior.1.0.1with reads and writes working.Post-merge release steps
<merge-sha>.version: 1.2.1.candidate_version: 1.2.1-test,version: 1.2.1,source_ref: <merge-sha>.<merge-sha>as1.2.1and publish the GitHub release (with a link to the security advisory).1.0.0images, fixed in1.0.1, with the upgrade-guide options for older operators.