Skip to content

chore: release v1.2.1 with DocumentDB engine 1.0.1 as the default - #524

Merged
hossain-rayhan merged 2 commits into
documentdb:mainfrom
hossain-rayhan:rayhan/release-1.2.1
Nov 20, 2026
Merged

hossain-rayhan merged 2 commits into
documentdb:mainfrom
hossain-rayhan:rayhan/release-1.2.1

Conversation

@hossain-rayhan

@hossain-rayhan hossain-rayhan commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Security release 1.2.1. The default DocumentDB engine moves from 1.0.0 to 1.0.1: the 1.0.0 engine (extension schema 1.0-0) rebuilt on patched Debian packages. It fixes zlib CVE-2026-85091 (High) and CVE-2026-27171 (Medium) in the documentdb, gateway and documentdb-combined 1.0.0 images. The 1.0.1 images were already published on Nov 10 (#504, with update_defaults=false). This release makes them the default.

Changes

  • Default engine 1.0.0 → 1.0.1:
    • DEFAULT_DOCUMENTDB_TAG (constants.go) and chart documentDbVersion.
    • The sidecar injector's default gateway image, and its test.
    • Helm test DOCUMENTDB_VERSION assertions.
    • CNPG golden files, regenerated with UPDATE_GOLDEN=1; the diff is only 1.0.0 → 1.0.1 image tags.
  • Version: chart version/appVersion 1.2.0 → 1.2.1, plus the Helm test image tags.
  • CHANGELOG: [1.2.1] - 2026-11-20 with a Security entry.
  • Docs:
    • 1.2.1 added to the version table and the index.
    • New upgrade-guide section, Engine 1.0.1 security update: how clusters on operator 1.0.x, 1.1.x or 1.2.0 move to 1.0.1 without upgrading the operator (spec.documentDBVersion, or helm upgrade --reuse-values --set documentDbVersion=1.0.1 on the current chart version). It also says not to set schemaVersion: "1.0.1".
  • E2E combined-image test fix (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 correct 1.0-0 image. It now reads default_version from the same release's documentdb:<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:

  • The E2E schema-upgrade pair stays 0.117.0 → 1.0.0. Engine 1.0.1 has no schema change (both upgrade scripts are empty), so a 1.0.0 → 1.0.1 schema test could never pass. Re-running the DocumentDB promote workflow with update_defaults=true would make that change, which is why the bump is done by hand here.
  • CRDs are unchanged from 1.2.0.

Testing

  • Unit tests: make test and the sidecar-injector tests pass. helm unittest passes (124). The default render shows operator:1.2.1, sidecar:1.2.1 and DOCUMENTDB_VERSION=1.0.1.
  • Docs: mkdocs build --strict and the doc-link tests pass, and the new anchors resolve.
  • Vulnerability scan (trivy): the zlib CVEs are present in gateway:1.0.0 and documentdb-combined:18-1.0.0; gateway:1.0.1 and documentdb-combined:18-1.0.1 are clean (zlib …-1+deb13u1).
  • Kind upgrade test (Kubernetes 1.35, this branch's images): installed the published 1.2.0 chart with an unpinned cluster and a cluster pinned to 1.0.0, each with 50 documents, then helm upgrade to this branch.
    • The unpinned cluster rolled onto documentdb:1.0.1 and gateway:1.0.1, stayed healthy, kept its data, and the extension stayed 1.0-0.
    • The pinned cluster was untouched (same pod UID, still 1.0.0).
    • A new cluster created on 1.2.1 uses 1.0.1.
    • During the rolling restart the operator logged transient psql errors ("the database system is shutting down"), then retried and stayed clean. This is existing behavior.
  • Customer options on older operators (kind, published operator 1.0.0): both upgrade-guide commands moved clusters to 1.0.1 with reads and writes working.

Post-merge release steps

  1. Wait for TEST - E2E on <merge-sha>.
  2. Run RELEASE - Build Operator Candidate Images with version: 1.2.1.
  3. Run RELEASE - Promote Operator Images and Publish Helm Chart with candidate_version: 1.2.1-test, version: 1.2.1, source_ref: <merge-sha>.
  4. Tag <merge-sha> as 1.2.1 and publish the GitHub release (with a link to the security advisory).
  5. Publish the security advisory: affected engine 1.0.0 images, fixed in 1.0.1, with the upgrade-guide options for older operators.

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]>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 20:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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]>
@documentdb-triage-tool documentdb-triage-tool Bot added CI/CD documentation Improvements or additions to documentation go Pull requests that update go code test labels Nov 20, 2026
@documentdb-triage-tool

Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: go, documentation, CI/CD, test
Project fields suggested: Component controllers · Priority P0 · Effort L · Status Needs Review
Confidence: 0.95 (deterministic)

Reasoning

component 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 @patty-chow so the rules can be tuned. Issues with component labels are left alone; PR component labels are reconciled from changed paths on every run.

@hossain-rayhan
hossain-rayhan merged commit 74bc9a9 into documentdb:main Nov 20, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD documentation Improvements or additions to documentation go Pull requests that update go code test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants