diff --git a/CHANGELOG.md b/CHANGELOG.md index d0d6265b8..e7ceda2d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - **`documentdb.io/v1` API**: `DocumentDB`, `Backup` and `ScheduledBackup` graduate from `documentdb.io/preview` to the stable `documentdb.io/v1` API, which is now the storage version. `preview` remains served with an identical schema and returns a deprecation warning; it will be removed in a future release. **Apply the updated CRDs before running `helm upgrade`** (Helm does not upgrade CRDs), otherwise the new operator cannot start. Update manifests to `apiVersion: documentdb.io/v1`; no other field changes are needed. The Go API package moved from `operator/src/api/preview` to `operator/src/api/v1`, the validating webhook path is now `/validate-documentdb-io-v1-documentdb`, and `kubectl documentdb` uses `v1`. The public documentation moved from `.../preview/` to `.../v1/`; old URLs redirect. See [Migrating to the `documentdb.io/v1` API](docs/operator-public-documentation/v1/operations/upgrades.md#migrating-to-the-documentdbiov1-api). ### Security +- Require Go 1.26.11 across all six modules and pin Go builder images to that patch release to address [GO-2026-6859](https://pkg.go.dev/vuln/GO-2026-6859) in `net/http`. - Upgrade the cert-manager Go dependency and pinned Arc/Fleet installations to `v1.19.6` to address [CVE-2026-62290](https://github.com/advisories/GHSA-8rvj-mm4h-c258). Existing clusters must upgrade their separately installed cert-manager controller to a patched release (`1.19.6` or `1.20.3`); upgrading the DocumentDB operator alone does not upgrade cert-manager. - Upgrade `github.com/klauspost/compress` to `v1.20.2` in the sidecar injector and shared, E2E, and long-haul test modules to address [GO-2026-6865](https://pkg.go.dev/vuln/GO-2026-6865). diff --git a/docs/designs/image-management.md b/docs/designs/image-management.md index e972319c7..d170dc9ef 100644 --- a/docs/designs/image-management.md +++ b/docs/designs/image-management.md @@ -235,7 +235,7 @@ The build process: ### Dockerfile Details #### Operator (`operator/src/Dockerfile`) -- **Base**: `mcr.microsoft.com/oss/go/microsoft/golang:1.26.10-azurelinux3.0` → `scratch` +- **Base**: `mcr.microsoft.com/oss/go/microsoft/golang:1.26.11-azurelinux3.0` → `scratch` - **Multi-stage**: 2 stages (builder → scratch) - **Entrypoint**: `/manager` diff --git a/documentdb-kubectl-plugin/go.mod b/documentdb-kubectl-plugin/go.mod index 4ba51a5d4..edbacea82 100644 --- a/documentdb-kubectl-plugin/go.mod +++ b/documentdb-kubectl-plugin/go.mod @@ -1,6 +1,6 @@ module github.com/documentdb/documentdb-operator/documentdb-kubectl-plugin -go 1.26.10 +go 1.26.11 require ( github.com/documentdb/documentdb-operator v0.0.0 diff --git a/operator/cnpg-plugins/sidecar-injector/Dockerfile b/operator/cnpg-plugins/sidecar-injector/Dockerfile index b58cb59d5..6e110240b 100644 --- a/operator/cnpg-plugins/sidecar-injector/Dockerfile +++ b/operator/cnpg-plugins/sidecar-injector/Dockerfile @@ -5,7 +5,7 @@ ARG TARGETOS ARG TARGETARCH ARG ARCH -FROM --platform=${TARGETOS:-linux}/${ARCH:-${TARGETARCH}} mcr.microsoft.com/oss/go/microsoft/golang:1.26.10-azurelinux3.0 AS builder +FROM --platform=${TARGETOS:-linux}/${ARCH:-${TARGETARCH}} mcr.microsoft.com/oss/go/microsoft/golang:1.26.11-azurelinux3.0 AS builder # Cache the dependencies diff --git a/operator/cnpg-plugins/sidecar-injector/go.mod b/operator/cnpg-plugins/sidecar-injector/go.mod index 280a0068c..d8eb3f8c8 100644 --- a/operator/cnpg-plugins/sidecar-injector/go.mod +++ b/operator/cnpg-plugins/sidecar-injector/go.mod @@ -1,6 +1,6 @@ module github.com/documentdb/cnpg-i-sidecar-injector -go 1.26.10 +go 1.26.11 require ( github.com/cloudnative-pg/api v1.25.1 diff --git a/operator/src/Dockerfile b/operator/src/Dockerfile index 8ba19b963..96803cece 100644 --- a/operator/src/Dockerfile +++ b/operator/src/Dockerfile @@ -5,7 +5,7 @@ ARG TARGETOS ARG TARGETARCH ARG ARCH -FROM --platform=${TARGETOS:-linux}/${ARCH:-${TARGETARCH}} mcr.microsoft.com/oss/go/microsoft/golang:1.26.10-azurelinux3.0 AS builder +FROM --platform=${TARGETOS:-linux}/${ARCH:-${TARGETARCH}} mcr.microsoft.com/oss/go/microsoft/golang:1.26.11-azurelinux3.0 AS builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/operator/src/go.mod b/operator/src/go.mod index 5ff4f73a8..8c49b315f 100644 --- a/operator/src/go.mod +++ b/operator/src/go.mod @@ -1,6 +1,6 @@ module github.com/documentdb/documentdb-operator -go 1.26.10 +go 1.26.11 godebug default=go1.23 diff --git a/test/e2e/go.mod b/test/e2e/go.mod index f8c9a8a7e..7d280e5ef 100644 --- a/test/e2e/go.mod +++ b/test/e2e/go.mod @@ -1,6 +1,6 @@ module github.com/documentdb/documentdb-operator/test/e2e -go 1.26.10 +go 1.26.11 require ( github.com/cloudnative-pg/cloudnative-pg v1.29.2 diff --git a/test/longhaul/Dockerfile b/test/longhaul/Dockerfile index c83a0217e..f14ba122d 100644 --- a/test/longhaul/Dockerfile +++ b/test/longhaul/Dockerfile @@ -9,7 +9,7 @@ # # docker build -f test/longhaul/Dockerfile -t /longhaul-test:latest . # -FROM golang:1.26.10-alpine AS builder +FROM golang:1.26.11-alpine AS builder # Note: the golang:*-alpine image already ships ca-certificates, and all # deps in go.mod resolve via proxy.golang.org (no VCS fetches), so neither diff --git a/test/longhaul/go.mod b/test/longhaul/go.mod index ce84df1fc..067ef109b 100644 --- a/test/longhaul/go.mod +++ b/test/longhaul/go.mod @@ -1,6 +1,6 @@ module github.com/documentdb/documentdb-operator/test/longhaul -go 1.26.10 +go 1.26.11 require ( github.com/cloudnative-pg/cloudnative-pg v1.29.2 diff --git a/test/shared/go.mod b/test/shared/go.mod index 737f0548c..6626d492c 100644 --- a/test/shared/go.mod +++ b/test/shared/go.mod @@ -1,6 +1,6 @@ module github.com/documentdb/documentdb-operator/test/shared -go 1.26.10 +go 1.26.11 require ( github.com/cloudnative-pg/cloudnative-pg v1.29.2