From adcdae2e9f8cb8dd4299c71e1eb88ad14d4d17ec Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Thu, 5 Nov 2026 15:19:17 +0100 Subject: [PATCH 1/8] fix(CO-38): use hcloud_locations instead of removed datacenters API Hetzner removed the Datacenters API on 2026-10-01; requests now return HTTP 410 (deprecated_api_endpoint), breaking every CD plan. Switch the location pre-flight check to the hcloud_locations data source and pin the hcloud provider to ~> 1.70 so provider upgrades are deliberate. --- changelog.d/5-bug-fixes/hetzner-datacenters-removed | 1 + terraform/examples/wiab-demo-hetzner/main.tf | 4 ++-- terraform/examples/wiab-demo-hetzner/versions.tf | 3 ++- terraform/examples/wiab-staging-hetzner/main.tf | 4 ++-- terraform/examples/wiab-staging-hetzner/versions.tf | 3 ++- terraform/examples/wire-server-deploy-offline-hetzner/main.tf | 4 ++-- .../examples/wire-server-deploy-offline-hetzner/versions.tf | 3 ++- 7 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 changelog.d/5-bug-fixes/hetzner-datacenters-removed diff --git a/changelog.d/5-bug-fixes/hetzner-datacenters-removed b/changelog.d/5-bug-fixes/hetzner-datacenters-removed new file mode 100644 index 000000000..8e4167f79 --- /dev/null +++ b/changelog.d/5-bug-fixes/hetzner-datacenters-removed @@ -0,0 +1 @@ +Fixed: Replace removed Hetzner `hcloud_datacenters` data source (HTTP 410 since 2026-10-01) with `hcloud_locations` in the CD terraform modules and pin the hcloud provider to `~> 1.70` diff --git a/terraform/examples/wiab-demo-hetzner/main.tf b/terraform/examples/wiab-demo-hetzner/main.tf index e667fecd1..1824c4652 100644 --- a/terraform/examples/wiab-demo-hetzner/main.tf +++ b/terraform/examples/wiab-demo-hetzner/main.tf @@ -15,11 +15,11 @@ variable "server_type" { # Get available server types and locations data "hcloud_server_types" "available" {} -data "hcloud_datacenters" "available" {} +data "hcloud_locations" "available" {} locals { available_server_type_names = [for st in data.hcloud_server_types.available.server_types : st.name] - available_location_names = [for dc in data.hcloud_datacenters.available.datacenters : dc.location.name] + available_location_names = [for l in data.hcloud_locations.available.locations : l.name] } resource "null_resource" "location_validation" { diff --git a/terraform/examples/wiab-demo-hetzner/versions.tf b/terraform/examples/wiab-demo-hetzner/versions.tf index b047ba54e..9260675da 100644 --- a/terraform/examples/wiab-demo-hetzner/versions.tf +++ b/terraform/examples/wiab-demo-hetzner/versions.tf @@ -1,7 +1,8 @@ terraform { required_providers { hcloud = { - source = "hetznercloud/hcloud" + source = "hetznercloud/hcloud" + version = "~> 1.70" } } required_version = "~> 1.1" diff --git a/terraform/examples/wiab-staging-hetzner/main.tf b/terraform/examples/wiab-staging-hetzner/main.tf index 5fb916526..65d7e5e54 100644 --- a/terraform/examples/wiab-staging-hetzner/main.tf +++ b/terraform/examples/wiab-staging-hetzner/main.tf @@ -25,12 +25,12 @@ variable "medium_server_type" { # Get available server types and locations data "hcloud_server_types" "available" {} -data "hcloud_datacenters" "available" {} +data "hcloud_locations" "available" {} # Validate the exact combination requested by the deployment script. locals { available_server_type_names = [for st in data.hcloud_server_types.available.server_types : st.name] - available_location_names = [for dc in data.hcloud_datacenters.available.datacenters : dc.location.name] + available_location_names = [for l in data.hcloud_locations.available.locations : l.name] } resource "null_resource" "location_validation" { diff --git a/terraform/examples/wiab-staging-hetzner/versions.tf b/terraform/examples/wiab-staging-hetzner/versions.tf index b047ba54e..9260675da 100644 --- a/terraform/examples/wiab-staging-hetzner/versions.tf +++ b/terraform/examples/wiab-staging-hetzner/versions.tf @@ -1,7 +1,8 @@ terraform { required_providers { hcloud = { - source = "hetznercloud/hcloud" + source = "hetznercloud/hcloud" + version = "~> 1.70" } } required_version = "~> 1.1" diff --git a/terraform/examples/wire-server-deploy-offline-hetzner/main.tf b/terraform/examples/wire-server-deploy-offline-hetzner/main.tf index 657f6ed0c..de792a0d0 100644 --- a/terraform/examples/wire-server-deploy-offline-hetzner/main.tf +++ b/terraform/examples/wire-server-deploy-offline-hetzner/main.tf @@ -29,12 +29,12 @@ variable "medium_server_type" { # Get available server types and locations data "hcloud_server_types" "available" {} -data "hcloud_datacenters" "available" {} +data "hcloud_locations" "available" {} # Validate the exact combination requested by the deployment script. locals { available_server_type_names = [for st in data.hcloud_server_types.available.server_types : st.name] - available_location_names = [for dc in data.hcloud_datacenters.available.datacenters : dc.location.name] + available_location_names = [for l in data.hcloud_locations.available.locations : l.name] } resource "null_resource" "location_validation" { diff --git a/terraform/examples/wire-server-deploy-offline-hetzner/versions.tf b/terraform/examples/wire-server-deploy-offline-hetzner/versions.tf index b047ba54e..9260675da 100644 --- a/terraform/examples/wire-server-deploy-offline-hetzner/versions.tf +++ b/terraform/examples/wire-server-deploy-offline-hetzner/versions.tf @@ -1,7 +1,8 @@ terraform { required_providers { hcloud = { - source = "hetznercloud/hcloud" + source = "hetznercloud/hcloud" + version = "~> 1.70" } } required_version = "~> 1.1" From fc38b4652db3faaa78599ebda776242918d548df Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Thu, 5 Nov 2026 15:26:59 +0100 Subject: [PATCH 2/8] fix(CO-38): try all server types in hel1 before German locations The retry loop iterated locations inside server types, so a capacity miss for the first server type in hel1 fell through to fsn1/nbg1, where VMs are rarely available. Iterate server types inside locations so hel1 is exhausted first. --- offline/cd.sh | 6 ++++-- offline/cd_demo.sh | 6 ++++-- offline/cd_staging.sh | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/offline/cd.sh b/offline/cd.sh index 069566d94..a67e9f211 100755 --- a/offline/cd.sh +++ b/offline/cd.sh @@ -11,6 +11,8 @@ COMMIT_HASH="${GITHUB_SHA}" ARTIFACT="wire-server-deploy-static-${COMMIT_HASH}" # Retry matrix +# Locations are tried in order and exhaust all server types before moving on. +# Prefer hel1: German locations rarely have capacity. LOCATIONS=("hel1" "fsn1" "nbg1") SMALL_SERVER_TYPES=("cx23" "cx33" "cpx22") MEDIUM_SERVER_TYPES=("cx33" "cx43" "cpx32") @@ -68,8 +70,8 @@ echo "Retry plan: ${location_count} locations x ${server_type_count} server type attempt=1 deployment_succeeded=false -for server_type_index in $(seq 0 $((server_type_count - 1))); do - for location_index in $(seq 0 $((location_count - 1))); do +for location_index in $(seq 0 $((location_count - 1))); do + for server_type_index in $(seq 0 $((server_type_count - 1))); do attempt_location="${LOCATIONS[$location_index]}" attempt_small_server_type="${SMALL_SERVER_TYPES[$server_type_index]}" attempt_medium_server_type="${MEDIUM_SERVER_TYPES[$server_type_index]}" diff --git a/offline/cd_demo.sh b/offline/cd_demo.sh index d9b0ed932..2ce41674a 100755 --- a/offline/cd_demo.sh +++ b/offline/cd_demo.sh @@ -16,6 +16,8 @@ TEST_USER="demo" COMMIT_HASH="${GITHUB_SHA}" # Retry matrix +# Locations are tried in order and exhaust all server types before moving on. +# Prefer hel1: German locations rarely have capacity. LOCATIONS=("hel1" "fsn1" "nbg1") SERVER_TYPES=("cx53" "cpx62") @@ -62,8 +64,8 @@ echo "Retry plan: ${location_count} locations x ${server_type_count} server type attempt=1 deployment_succeeded=false -for server_type_index in $(seq 0 $((server_type_count - 1))); do - for location_index in $(seq 0 $((location_count - 1))); do +for location_index in $(seq 0 $((location_count - 1))); do + for server_type_index in $(seq 0 $((server_type_count - 1))); do attempt_location="${LOCATIONS[$location_index]}" attempt_server_type="${SERVER_TYPES[$server_type_index]}" diff --git a/offline/cd_staging.sh b/offline/cd_staging.sh index 206d0883f..43ae5a491 100755 --- a/offline/cd_staging.sh +++ b/offline/cd_staging.sh @@ -10,6 +10,8 @@ COMMIT_HASH="${GITHUB_SHA}" ARTIFACT="wire-server-deploy-static-${COMMIT_HASH}" # Retry matrix +# Locations are tried in order and exhaust all server types before moving on. +# Prefer hel1: German locations rarely have capacity. LOCATIONS=("hel1" "nbg1" "fsn1") SMALL_SERVER_TYPES=("cpx22" "cpx32" "cpx42") MEDIUM_SERVER_TYPES=("cpx42" "cpx52" "cpx62") @@ -67,8 +69,8 @@ echo "Starting deployment with automatic retry on resource unavailability..." attempt=1 deployment_succeeded=false -for server_type_index in $(seq 0 $((server_type_count - 1))); do - for location_index in $(seq 0 $((location_count - 1))); do +for location_index in $(seq 0 $((location_count - 1))); do + for server_type_index in $(seq 0 $((server_type_count - 1))); do attempt_location="${LOCATIONS[$location_index]}" attempt_small_server_type="${SMALL_SERVER_TYPES[$server_type_index]}" attempt_medium_server_type="${MEDIUM_SERVER_TYPES[$server_type_index]}" From 2f1013816f877edbc2768a7a4a04f5d7efb405bc Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Thu, 5 Nov 2026 18:18:43 +0100 Subject: [PATCH 3/8] fix(CO-38): skip hetzner cleanup when terraform was never installed The cleanup steps ran with `if: always()`, so when an earlier step (e.g. the dev build) failed they ran before setup-terraform and died with `terraform: command not found`. Only run them once terraform was installed; if it wasn't, nothing can have been deployed. --- .github/workflows/offline.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index 0df59627c..ecc9b3957 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -98,6 +98,7 @@ jobs: run: nix-env -f default.nix -iA env - name: Install terraform + id: install-terraform uses: hashicorp/setup-terraform@v3 with: terraform_version: "^1.3.7" @@ -109,7 +110,8 @@ jobs: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' - name: Clean up hetzner environment; just in case - if: always() + # Skip when terraform was never installed (earlier step failed): nothing was deployed. + if: always() && steps.install-terraform.outcome == 'success' run: (cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init && terraform destroy -auto-approve) env: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' @@ -138,6 +140,7 @@ jobs: run: nix-env -f default.nix -iA env - name: Install terraform + id: install-terraform uses: hashicorp/setup-terraform@v3 with: terraform_version: "^1.3.7" @@ -149,7 +152,8 @@ jobs: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' - name: Clean up hetzner wiab-staging environment; just in case - if: always() + # Skip when terraform was never installed (earlier step failed): nothing was deployed. + if: always() && steps.install-terraform.outcome == 'success' run: (cd terraform/examples/wiab-staging-hetzner ; terraform init && terraform destroy -auto-approve) env: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' @@ -221,6 +225,7 @@ jobs: AWS_REGION: "eu-west-1" - name: Install terraform + id: install-terraform uses: hashicorp/setup-terraform@v3 with: terraform_version: "^1.3.7" @@ -232,7 +237,8 @@ jobs: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' - name: Clean up hetzner wiab environment; just in case - if: always() + # Skip when terraform was never installed (earlier step failed): nothing was deployed. + if: always() && steps.install-terraform.outcome == 'success' run: (cd terraform/examples/wiab-demo-hetzner ; terraform init && terraform destroy -auto-approve) env: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' From 702f508df07e14ac27d5b618c732c8460a6ac757 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Mon, 9 Nov 2026 15:00:26 +0100 Subject: [PATCH 4/8] fix WPB-26631: upgrade ingress-nginx controller to v1.13.9 for 5.25 The ingress-nginx-controller chart of wire-server 5.25.0 bundles ingress-nginx 4.11.5, and the values pin controller image v1.10.6, which has known CVEs. - Replace the ingress-nginx subchart with 4.13.9 during the bundle build (pre_chart_process_0.sh). 4.13.x is the last ingress-nginx line that supports Kubernetes 1.29, which this bundle installs. - Pin controller v1.13.9 and kube-webhook-certgen v1.6.9 in the values examples (tags only, digests are not supported by the bundle tooling). - Set annotations-risk-level: Critical. Controller >= 1.12 defaults to High and rejects the nginx-ingress-services ingresses that use server-snippet / configuration-snippet annotations. - Add an upgrade guide for existing installations and changelog entries. --- ...26631-ingress-nginx-annotations-risk-level | 1 + .../WPB-26631-ingress-nginx-4.13.9 | 1 + offline/tasks/pre_chart_process_0.sh | 20 +++ .../ingress-nginx-controller-v1.13.md | 166 ++++++++++++++++++ .../demo-values.example.yaml | 9 +- .../load-balancer.example.yaml | 9 +- .../prod-values.example.yaml | 9 +- 7 files changed, 209 insertions(+), 6 deletions(-) create mode 100644 changelog.d/0-release-notes/WPB-26631-ingress-nginx-annotations-risk-level create mode 100644 changelog.d/2-wire-builds/WPB-26631-ingress-nginx-4.13.9 create mode 100644 offline/upgrades/ingress-nginx-controller-v1.13.md diff --git a/changelog.d/0-release-notes/WPB-26631-ingress-nginx-annotations-risk-level b/changelog.d/0-release-notes/WPB-26631-ingress-nginx-annotations-risk-level new file mode 100644 index 000000000..6d79a3246 --- /dev/null +++ b/changelog.d/0-release-notes/WPB-26631-ingress-nginx-annotations-risk-level @@ -0,0 +1 @@ +Changed: ingress-nginx controller upgraded to v1.13.9. Update `values/ingress-nginx-controller/values.yaml` before upgrading: set `controller.image.tag: "v1.13.9"`, `controller.admissionWebhooks.patch.image.tag: "v1.6.9"` and `controller.config.annotations-risk-level: Critical` (under `ingress-nginx:`), see `values/ingress-nginx-controller/prod-values.example.yaml`. Without `annotations-risk-level: Critical`, controller >= v1.12 rejects the nginx-ingress-services ingresses that use `*-snippet` annotations (`annotation group ServerSnippet contains risky annotation`). Upgrade `ingress-nginx-controller` before `nginx-ingress-services`. See `offline/upgrades/ingress-nginx-controller-v1.13.md` (WPB-26631) diff --git a/changelog.d/2-wire-builds/WPB-26631-ingress-nginx-4.13.9 b/changelog.d/2-wire-builds/WPB-26631-ingress-nginx-4.13.9 new file mode 100644 index 000000000..e76671015 --- /dev/null +++ b/changelog.d/2-wire-builds/WPB-26631-ingress-nginx-4.13.9 @@ -0,0 +1 @@ +Fixed: CVEs in the ingress-nginx controller. The bundled ingress-nginx-controller chart now uses ingress-nginx 4.13.9 (controller v1.13.9, Kubernetes 1.29 - 1.33) instead of 4.11.5 (controller v1.10.6 via values), and the admission webhook image is updated to kube-webhook-certgen v1.6.9 (WPB-26631) diff --git a/offline/tasks/pre_chart_process_0.sh b/offline/tasks/pre_chart_process_0.sh index fbfdb2c85..2e59cc227 100755 --- a/offline/tasks/pre_chart_process_0.sh +++ b/offline/tasks/pre_chart_process_0.sh @@ -40,3 +40,23 @@ sed -i -Ee 's/useSharedFederatorSecret: false/useSharedFederatorSecret: true/' " # drop step-certificates/.../test-connection.yaml because it lacks an image tag # cf. https://github.com/smallstep/helm-charts/pull/196/files rm -v "${OUTPUT_DIR}"/charts/step-certificates/charts/step-certificates/templates/tests/* + +# Replace the ingress-nginx subchart of ingress-nginx-controller (WPB-26631). +# The ingress-nginx-controller chart from wire-builds bundles ingress-nginx +# 4.11.5, whose controller images have known CVEs. 4.13.9 is the latest +# release that supports the Kubernetes version installed by this bundle +# (kube_version v1.29.10, see ansible/inventory/offline/group_vars/all/offline.yml). +# Controller >= 1.12 needs `annotations-risk-level: Critical`, see +# values/ingress-nginx-controller/*.example.yaml. +INGRESS_NGINX_CHART_VERSION="4.13.9" +ingress_controller_chart="${OUTPUT_DIR}/charts/ingress-nginx-controller" +if [[ -d "$ingress_controller_chart" ]]; then + rm -rf "$ingress_controller_chart/charts/ingress-nginx" + helm pull ingress-nginx \ + --repo https://kubernetes.github.io/ingress-nginx \ + --version "$INGRESS_NGINX_CHART_VERSION" \ + --untar --untardir "$ingress_controller_chart/charts" + # only the indented dependency version, not the chart's own version + sed -i -Ee "s/^( version: )[0-9.]+$/\1${INGRESS_NGINX_CHART_VERSION}/" "$ingress_controller_chart/Chart.yaml" + rm -f "$ingress_controller_chart/Chart.lock" +fi diff --git a/offline/upgrades/ingress-nginx-controller-v1.13.md b/offline/upgrades/ingress-nginx-controller-v1.13.md new file mode 100644 index 000000000..06cf51226 --- /dev/null +++ b/offline/upgrades/ingress-nginx-controller-v1.13.md @@ -0,0 +1,166 @@ +# Upgrade ingress-nginx controller to v1.13.9 (wire-server 5.25) + +Fixes known CVEs in the ingress-nginx controller image shipped with wire-server-deploy 5.25 (WPB-26631). + +## Scope + +| Component | Before | After | +|---|---|---| +| `ingress-nginx` subchart of `charts/ingress-nginx-controller` | `4.11.5` | `4.13.9` | +| Controller image (`registry.k8s.io/ingress-nginx/controller`) | `v1.10.6` (values) | `v1.13.9` | +| Admission webhook image (`registry.k8s.io/ingress-nginx/kube-webhook-certgen`) | `v20220916-gd32f8c343` | `v1.6.9` | +| `controller.config.annotations-risk-level` | not set (controller default) | `Critical` | + +- No other chart or image changes. wire-server stays on 5.25.0. +- Supported Kubernetes versions: 1.29 – 1.33. The 5.25 bundle installs Kubernetes v1.29.10. +- Expected impact: rolling restart of the ingress controller pods. Ingress service, node ports and DNS do not change. + +## Background + +- Controller v1.12 changed the default of `annotations-risk-level` from `Critical` to `High`. +- `nginx-ingress-services` uses `*-snippet` annotations (risk `Critical`): + - `nginx.ingress.kubernetes.io/server-snippet` (minio / fake S3 ingress) + - `nginx.ingress.kubernetes.io/configuration-snippet` (nginz ingress, federator ingress) +- Without `annotations-risk-level: Critical`: + - with admission webhook: `helm upgrade nginx-ingress-services` fails with `admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: annotation group ServerSnippet contains risky annotation based on ingress configuration`. + - without admission webhook: the controller ignores these ingresses and serves its fake default certificate. +- `annotations-risk-level` is a setting of the **ingress-nginx-controller** release (`ingress-nginx.controller.config`). Setting it on the `nginx-ingress-services` release (e.g. `--set controller.config.annotations-risk-level=...`) has no effect. + +## Prerequisites + +| Check | Command | Expected | +|---|---|---| +| Kubernetes version | `d kubectl version` | Server `v1.29.x` or later. Older: stop and contact Wire. | +| Release names and namespaces | `d helm list -A \| grep -E 'ingress-nginx-controller\|nginx-ingress-services'` | Both releases listed. Note `NAMESPACE` (below: ``, usually `default`). | +| Current revisions | `d helm history ingress-nginx-controller -n ` and `d helm history nginx-ingress-services -n ` | Note last `deployed` revision of each (for rollback). | +| Admin host workspace with current values | `ls /values/ingress-nginx-controller/values.yaml` | File exists | + +## 1. Prepare the new bundle + +```bash +wget https://s3-eu-west-1.amazonaws.com/public.wire.com/artifacts/wire-server-deploy-static-.tgz +mkdir New-Wire-Server && cd New-Wire-Server +tar xvzf ../wire-server-deploy-static-.tgz +source ./bin/offline-env.sh +``` + +- ``: provided by Wire. +- Copy your inventory and values from the old workspace: + +```bash +cp ..//ansible/inventory/offline/hosts.ini ansible/inventory/offline/hosts.ini +for chart in ingress-nginx-controller nginx-ingress-services; do + cp ..//values/$chart/values.yaml values/$chart/values.yaml +done +cp ..//values/nginx-ingress-services/secrets.yaml values/nginx-ingress-services/secrets.yaml +``` + +## 2. Seed the new container images + +```bash +d ansible-playbook -i ./ansible/inventory/offline/hosts.ini ansible/setup-offline-sources.yml +d ansible-playbook -i ./ansible/inventory/offline/hosts.ini ansible/seed-offline-containerd.yml +``` + +Verify on one Kubernetes node: + +```bash +sudo crictl images | grep -E 'ingress-nginx/(controller|kube-webhook-certgen)' +``` + +Expected: `controller` tag `v1.13.9`, `kube-webhook-certgen` tag `v1.6.9`. + +## 3. Update ingress-nginx-controller values + +Edit `values/ingress-nginx-controller/values.yaml`. Required keys: + +```yaml +ingress-nginx: + controller: + config: + annotations-risk-level: Critical + image: + tag: "v1.13.9" + digest: "" + digestChroot: "" + admissionWebhooks: + patch: + image: + tag: "v1.6.9" + digest: "" +``` + +- Keep all other existing keys (`kind`, `service`, `metrics`, ...). +- Remove any other `annotations-risk-level` setting (e.g. `Warning`). +- Reference: `values/ingress-nginx-controller/prod-values.example.yaml`. + +Compare: + +```bash +diff -u values/ingress-nginx-controller/prod-values.example.yaml values/ingress-nginx-controller/values.yaml +``` + +Expected: only your environment-specific differences. + +## 4. Dry run + +```bash +d helm template ingress-nginx-controller ./charts/ingress-nginx-controller -n \ + -f values/ingress-nginx-controller/values.yaml \ + | grep -E 'image: |annotations-risk-level|allow-snippet-annotations' +``` + +Expected: + +``` + allow-snippet-annotations: "true" + annotations-risk-level: "Critical" + image: registry.k8s.io/ingress-nginx/controller:v1.13.9 + image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.6.9 + image: registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.6.9 +``` + +## 5. Upgrade + +Order: `ingress-nginx-controller` first, then `nginx-ingress-services`. + +```bash +d helm upgrade --install ingress-nginx-controller ./charts/ingress-nginx-controller -n \ + -f values/ingress-nginx-controller/values.yaml --wait --timeout 15m + +d helm upgrade --install nginx-ingress-services ./charts/nginx-ingress-services -n \ + -f values/nginx-ingress-services/values.yaml \ + -f values/nginx-ingress-services/secrets.yaml --wait --timeout 15m +``` + +- Do not pass `--set controller.config.*` to `nginx-ingress-services`. + +## 6. Verify + +```bash +SEL="app.kubernetes.io/instance=ingress-nginx-controller,app.kubernetes.io/component=controller" +``` + +| # | Check | Command | Expected | +|---|---|---|---| +| 1 | Pods ready | `d kubectl get pods -n -l "$SEL"` | All `Running`, `READY` 1/1 | +| 2 | Controller version | `d kubectl exec -n $(d kubectl get pod -n -l "$SEL" -o name \| head -1) -- /nginx-ingress-controller --version` | `Release: v1.13.9` | +| 3 | Risk level active | `d kubectl get cm -n ingress-nginx-controller-controller -o jsonpath='{.data.annotations-risk-level}'` | `Critical` | +| 4 | No rejected ingresses | `d kubectl logs -n -l "$SEL" --tail=-1 \| grep -Ei 'risky\|too risky\|cannot be used'` | No output | +| 5 | Ingresses | `d kubectl get ingress -n ` | `ADDRESS` populated for all ingresses | +| 6 | API | `curl -s https://nginz-https./api-version` | JSON with `supported` versions | +| 7 | TLS certificate | `openssl s_client -connect nginz-https.:443 -servername nginz-https. /dev/null \| openssl x509 -noout -subject -issuer` | Your certificate. **Not** `Kubernetes Ingress Controller Fake Certificate` | +| 8 | Assets (fake S3 / minio ingress) | Upload and download an image in a conversation | Works | +| 9 | Clients | Log in via webapp, team settings, mobile client | Works | + +- Federation enabled: repeat check 7 for the federator host and verify federated search / messaging. + +## 7. Rollback + +```bash +d helm rollback nginx-ingress-services -n --wait --timeout 15m +d helm rollback ingress-nginx-controller -n --wait --timeout 15m +``` + +- ``: revisions noted in the prerequisites. +- Restores the previous chart and controller image. Re-run checks 1, 5, 6, 7. diff --git a/values/ingress-nginx-controller/demo-values.example.yaml b/values/ingress-nginx-controller/demo-values.example.yaml index c196f9c90..6e8b1405c 100644 --- a/values/ingress-nginx-controller/demo-values.example.yaml +++ b/values/ingress-nginx-controller/demo-values.example.yaml @@ -7,14 +7,19 @@ ingress-nginx: kind: Deployment service: type: NodePort + config: + # Controller >= 1.12 defaults to "High" and rejects ingresses with + # *-snippet annotations (risk "Critical"), e.g. the minio, nginz and + # federator ingresses of nginx-ingress-services. + annotations-risk-level: Critical image: - tag: "v1.10.6" + tag: "v1.13.9" digest: "" digestChroot: "" admissionWebhooks: patch: image: - tag: "v20220916-gd32f8c343" + tag: "v1.6.9" digest: "" # Enable prometheus operator to scrape metrics from the ingress-nginx controller with servicemonitor. diff --git a/values/ingress-nginx-controller/load-balancer.example.yaml b/values/ingress-nginx-controller/load-balancer.example.yaml index c6b5f1077..18f2696d4 100644 --- a/values/ingress-nginx-controller/load-balancer.example.yaml +++ b/values/ingress-nginx-controller/load-balancer.example.yaml @@ -3,14 +3,19 @@ # `containerd`. ingress-nginx: controller: + config: + # Controller >= 1.12 defaults to "High" and rejects ingresses with + # *-snippet annotations (risk "Critical"), e.g. the minio, nginz and + # federator ingresses of nginx-ingress-services. + annotations-risk-level: Critical image: - tag: "v1.10.6" + tag: "v1.13.9" digest: "" digestChroot: "" admissionWebhooks: patch: image: - tag: "v20220916-gd32f8c343" + tag: "v1.6.9" digest: "" # Enable prometheus operator to scrape metrics from the ingress-nginx controller with servicemonitor. metrics: diff --git a/values/ingress-nginx-controller/prod-values.example.yaml b/values/ingress-nginx-controller/prod-values.example.yaml index a08e39fa6..b6090feeb 100644 --- a/values/ingress-nginx-controller/prod-values.example.yaml +++ b/values/ingress-nginx-controller/prod-values.example.yaml @@ -7,14 +7,19 @@ ingress-nginx: kind: DaemonSet service: type: NodePort + config: + # Controller >= 1.12 defaults to "High" and rejects ingresses with + # *-snippet annotations (risk "Critical"), e.g. the minio, nginz and + # federator ingresses of nginx-ingress-services. + annotations-risk-level: Critical image: - tag: "v1.10.6" + tag: "v1.13.9" digest: "" digestChroot: "" admissionWebhooks: patch: image: - tag: "v20220916-gd32f8c343" + tag: "v1.6.9" digest: "" # Enable prometheus operator to scrape metrics from the ingress-nginx controller with servicemonitor. metrics: From 1c9e7664fd98e0f036ac423b89e5efb505cbf1eb Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Mon, 9 Nov 2026 11:26:47 +0100 Subject: [PATCH 5/8] WPB-29054: use minio mirror for fake-aws-s3 (#943) * WPB-29054: use minio mirror for fake-aws-s3 Porting: > https://wearezeta.atlassian.net/browse/WPB-29054 > Note: Fixing or replacing the broken fake-aws-s3 chart is not in scope. * lint: add newline at end of file * lint: newline * fix: block fake-aws-s3 from default-build * removed ineffective values --- changelog.d/5-bug-fixes/fix-minio-image | 1 + offline/default-build/build.sh | 2 +- values/fake-aws-s3/demo-values.example.yaml | 8 ++++++++ values/fake-aws-s3/prod-values.example.yaml | 9 +++++++++ values/fake-aws/demo-secrets.example.yaml | 1 - values/fake-aws/demo-values.example.yaml | 8 +++++++- values/fake-aws/prod-values.example.yaml | 7 +++++++ 7 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 changelog.d/5-bug-fixes/fix-minio-image create mode 100644 values/fake-aws-s3/demo-values.example.yaml create mode 100644 values/fake-aws-s3/prod-values.example.yaml diff --git a/changelog.d/5-bug-fixes/fix-minio-image b/changelog.d/5-bug-fixes/fix-minio-image new file mode 100644 index 000000000..7cfb278d2 --- /dev/null +++ b/changelog.d/5-bug-fixes/fix-minio-image @@ -0,0 +1 @@ +Fixed: use mirror for fetching unavailable Minio images diff --git a/offline/default-build/build.sh b/offline/default-build/build.sh index 92aaf042e..ed0e39418 100755 --- a/offline/default-build/build.sh +++ b/offline/default-build/build.sh @@ -26,7 +26,7 @@ TASKS_DIR="${SCRIPT_DIR}/../tasks" # -------------------------- # pulling the charts based on builds.json, charts to be skipped are passed as arguments HELM_CHART_EXCLUDE_LIST -"${TASKS_DIR}"/proc_pull_charts.sh OUTPUT_DIR="${OUTPUT_DIR}" HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,postgresql,rust-sft,fluent-bit" +"${TASKS_DIR}"/proc_pull_charts.sh OUTPUT_DIR="${OUTPUT_DIR}" HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,postgresql,rust-sft,fluent-bit,fake-aws-s3" # pulling the charts from helm-charts repo, charts to be included are passed as arguments HELM_CHART_INCLUDE_LIST # "${TASKS_DIR}"/proc_pull_ext_charts.sh OUTPUT_DIR="${OUTPUT_DIR}" HELM_CHART_INCLUDE_LIST="postgresql-external" diff --git a/values/fake-aws-s3/demo-values.example.yaml b/values/fake-aws-s3/demo-values.example.yaml new file mode 100644 index 000000000..a6f24ad0a --- /dev/null +++ b/values/fake-aws-s3/demo-values.example.yaml @@ -0,0 +1,8 @@ +enabled: true +minio: + image: + repository: quay.io/wire/mirror-images/minio/minio + tag: RELEASE.2023-07-07T07-13-57Z + mcImage: + repository: quay.io/wire/mirror-images/minio/mc + tag: RELEASE.2023-06-28T21-54-17Z diff --git a/values/fake-aws-s3/prod-values.example.yaml b/values/fake-aws-s3/prod-values.example.yaml new file mode 100644 index 000000000..c03722b48 --- /dev/null +++ b/values/fake-aws-s3/prod-values.example.yaml @@ -0,0 +1,9 @@ +# Disable since prod should use an externally provided minio +enabled: false +minio: + image: + repository: quay.io/wire/mirror-images/minio/minio + tag: RELEASE.2023-07-07T07-13-57Z + mcImage: + repository: quay.io/wire/mirror-images/minio/mc + tag: RELEASE.2023-06-28T21-54-17Z diff --git a/values/fake-aws/demo-secrets.example.yaml b/values/fake-aws/demo-secrets.example.yaml index 2f475508e..a27832bd5 100644 --- a/values/fake-aws/demo-secrets.example.yaml +++ b/values/fake-aws/demo-secrets.example.yaml @@ -1,4 +1,3 @@ -# Disable since prod should use an externally provided minio fake-aws-s3: enabled: true minio: diff --git a/values/fake-aws/demo-values.example.yaml b/values/fake-aws/demo-values.example.yaml index ad09d557a..21509f24c 100644 --- a/values/fake-aws/demo-values.example.yaml +++ b/values/fake-aws/demo-values.example.yaml @@ -1,3 +1,9 @@ -# Disable since prod should use an externally provided minio fake-aws-s3: enabled: true + minio: + image: + repository: quay.io/wire/mirror-images/minio/minio + tag: RELEASE.2023-07-07T07-13-57Z + mcImage: + repository: quay.io/wire/mirror-images/minio/mc + tag: RELEASE.2023-06-28T21-54-17Z diff --git a/values/fake-aws/prod-values.example.yaml b/values/fake-aws/prod-values.example.yaml index 594c756af..998eeba6e 100644 --- a/values/fake-aws/prod-values.example.yaml +++ b/values/fake-aws/prod-values.example.yaml @@ -1,3 +1,10 @@ # Disable since prod should use an externally provided minio fake-aws-s3: enabled: false + minio: + image: + repository: quay.io/wire/mirror-images/minio/minio + tag: RELEASE.2023-07-07T07-13-57Z + mcImage: + repository: quay.io/wire/mirror-images/minio/mc + tag: RELEASE.2023-06-28T21-54-17Z From 116f4e4f55f0afbb3087c594fb8761e887b93bd2 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Mon, 9 Nov 2026 17:30:27 +0100 Subject: [PATCH 6/8] fix WPB-26631: wait for adminhost SSH in default Hetzner CD setup_nodes.yml connected to adminhost_local (private IP, through the public adminhost) right after the VMs were created and failed with 'Connection timed out during banner exchange'. Wait for SSH first, as #919 does for wiab-staging. --- .../5-bug-fixes/cd-default-wait-for-adminhost | 1 + .../setup_nodes.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 changelog.d/5-bug-fixes/cd-default-wait-for-adminhost diff --git a/changelog.d/5-bug-fixes/cd-default-wait-for-adminhost b/changelog.d/5-bug-fixes/cd-default-wait-for-adminhost new file mode 100644 index 000000000..be225e21e --- /dev/null +++ b/changelog.d/5-bug-fixes/cd-default-wait-for-adminhost @@ -0,0 +1 @@ +Fixed: wait for SSH on the adminhost private IP before running setup_nodes.yml in the default Hetzner CD environment (same as wiab-staging, #919) diff --git a/terraform/examples/wire-server-deploy-offline-hetzner/setup_nodes.yml b/terraform/examples/wire-server-deploy-offline-hetzner/setup_nodes.yml index 316e2d97d..f7c2d9be7 100644 --- a/terraform/examples/wire-server-deploy-offline-hetzner/setup_nodes.yml +++ b/terraform/examples/wire-server-deploy-offline-hetzner/setup_nodes.yml @@ -1,4 +1,20 @@ --- +- name: Wait for adminhost private SSH + hosts: adminhost + gather_facts: no + tasks: + - name: Wait for SSH on public adminhost + wait_for_connection: + timeout: 300 + delay: 5 + + - name: Wait until adminhost private IP is reachable from public adminhost + wait_for: + host: "{{ hostvars['adminhost_local'].ansible_host }}" + port: 22 + timeout: 300 + delay: 5 + - name: Setup adminhost with dnsmasq and Docker hosts: adminhost_local become: yes From 2a453145d03ab7dd1c547fe519b7b0786a594564 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Tue, 10 Nov 2026 13:53:58 +0100 Subject: [PATCH 7/8] fix WPB-26631: re-enable main in helm-operations.sh release-5.25-R2 commented out `main` (846d27f0), and only cd_staging.sh appended it back on the CI host. The default verify (cd.sh) therefore only installed Kubernetes and never deployed any chart, so it did not test the ingress-nginx upgrade. Re-enable `main` and drop the append from cd_staging.sh (it would now run main twice). The upgrade guide warns not to run offline-deploy.sh / helm-operations.sh on existing installations, as they replace values.yaml with the examples. --- bin/helm-operations.sh | 2 +- changelog.d/5-bug-fixes/helm-operations-main | 1 + offline/cd_staging.sh | 4 ---- offline/upgrades/ingress-nginx-controller-v1.13.md | 6 ++++++ 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 changelog.d/5-bug-fixes/helm-operations-main diff --git a/bin/helm-operations.sh b/bin/helm-operations.sh index 6ae67e747..164aac3ac 100755 --- a/bin/helm-operations.sh +++ b/bin/helm-operations.sh @@ -280,4 +280,4 @@ fi deploy_calling_services } -#main +main diff --git a/changelog.d/5-bug-fixes/helm-operations-main b/changelog.d/5-bug-fixes/helm-operations-main new file mode 100644 index 000000000..a9a0cde64 --- /dev/null +++ b/changelog.d/5-bug-fixes/helm-operations-main @@ -0,0 +1 @@ +Fixed: re-enable `main` in `bin/helm-operations.sh` (commented out for 5.25-R2), so the default CD verify deploys the charts again; `offline/cd_staging.sh` no longer appends it (WPB-26631) diff --git a/offline/cd_staging.sh b/offline/cd_staging.sh index 43ae5a491..dc344a4db 100755 --- a/offline/cd_staging.sh +++ b/offline/cd_staging.sh @@ -233,10 +233,6 @@ scp $SSH_OPTS "$TARGET" "demo@$adminhost":./ansible/inventory/offline/inventory. ssh $SSH_OPTS "demo@$adminhost" cat ./ansible/inventory/offline/inventory.yml || true -ssh $SSH_OPTS "demo@$adminhost" 'printf "\nmain\n\n" >> ./bin/helm-operations.sh' || true - -ssh $SSH_OPTS "demo@$adminhost" cat ./bin/helm-operations.sh || true - # NOTE: Agent is forwarded; so that the adminhost can provision the other boxes ssh $SSH_OPTS -A "demo@$adminhost" ./bin/offline-deploy.sh diff --git a/offline/upgrades/ingress-nginx-controller-v1.13.md b/offline/upgrades/ingress-nginx-controller-v1.13.md index 06cf51226..8f417adcd 100644 --- a/offline/upgrades/ingress-nginx-controller-v1.13.md +++ b/offline/upgrades/ingress-nginx-controller-v1.13.md @@ -35,6 +35,12 @@ Fixes known CVEs in the ingress-nginx controller image shipped with wire-server- | Current revisions | `d helm history ingress-nginx-controller -n ` and `d helm history nginx-ingress-services -n ` | Note last `deployed` revision of each (for rollback). | | Admin host workspace with current values | `ls /values/ingress-nginx-controller/values.yaml` | File exists | +## Warning + +- Do **not** run `bin/offline-deploy.sh` or `bin/helm-operations.sh` on an existing installation. +- Both run a full fresh-install flow: existing `values.yaml` / `secrets.yaml` are moved to `*.bak.`, replaced with the `prod-*.example.yaml` files, and all charts are re-deployed with them. +- Use only the commands in this document. + ## 1. Prepare the new bundle ```bash From 74f56968ffe0cfe5b84f1473b780e7864c6f5c1f Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Thu, 19 Nov 2026 10:13:39 +0100 Subject: [PATCH 8/8] Add nginx-ingress-controller to HELM_CHART_EXCLUDE_LIST --- offline/default-build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offline/default-build/build.sh b/offline/default-build/build.sh index ed0e39418..a9b2916a6 100755 --- a/offline/default-build/build.sh +++ b/offline/default-build/build.sh @@ -26,7 +26,7 @@ TASKS_DIR="${SCRIPT_DIR}/../tasks" # -------------------------- # pulling the charts based on builds.json, charts to be skipped are passed as arguments HELM_CHART_EXCLUDE_LIST -"${TASKS_DIR}"/proc_pull_charts.sh OUTPUT_DIR="${OUTPUT_DIR}" HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,postgresql,rust-sft,fluent-bit,fake-aws-s3" +"${TASKS_DIR}"/proc_pull_charts.sh OUTPUT_DIR="${OUTPUT_DIR}" HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise,postgresql,rust-sft,fluent-bit,fake-aws-s3,nginx-ingress-controller" # pulling the charts from helm-charts repo, charts to be included are passed as arguments HELM_CHART_INCLUDE_LIST # "${TASKS_DIR}"/proc_pull_ext_charts.sh OUTPUT_DIR="${OUTPUT_DIR}" HELM_CHART_INCLUDE_LIST="postgresql-external"