## What this PR does Refs #5459. Brings #5405 (tenant PostgreSQL on the patched standard-trixie images) back to `release-1.7` together with the fixes #5459 asked for. #5461 took #5405 out of the line until those landed on main. The backport batch does not bring any of this over: the fixes carry `backport/skip`, #5472 builds on backup changes that never reach this line, and the batch counts #5405 as carried even though #5461 reverted it. So this is a port of its own, as [fixes that exist only on a release line](https://github.com/cozystack/cozystack/blob/main/docs/release/backports.md#fixes-that-exist-only-on-a-release-line) describes. Commits, in the order they merged into main. Each fix is `git cherry-pick -x -m 1` of its merge commit, so the batch sees the line as carrying it: 1. Revert of #5461, which restores #5405 as #5311 carried it. 2. #5485: skip an index while another session builds on its table. 3. #5477: update the PostGIS extensions after an image upgrade. 4. #5472: keep bullseye clusters on their image until a clean locale check. **Adapted**, see below. 5. #5478: rebuild indexes on `C.UTF-8` and other `C.*` collations when the Debian release changes. 6. #5505: the WorkloadMonitor reports a failed Job that opts in with `workloads.cozystack.io/report-failure` as `WorkloadsReady=False` / `JobFailed`. It is a `feat` on main, and #5479 depends on it. 7. #5479: run the collation repair and the PostGIS update in a Job outside the Helm hook. ### What differs from main - **#5472, backup driver.** The CNPG backup driver on 1.7 predates the backup destination and artifact-size changes this builds on on main (#2622, #5221, #5223, #5295). Only the image handling is ported: - the live Cluster's `spec.imageName` goes into the backup snapshot; - the restore passes it to the chart as `bootstrap.sourceImageName` and clears it with `bootstrap.enabled`; - the backup's major is read from that image when the backup recorded none. The edits to `cnpg_archive_access_test.go` and `cnpg_artifact_size_test.go` are dropped, because those files do not exist on 1.7, and the new test calls `applyClusterPluginBackup` with the 1.7 signature. The resolution is explained in that commit. - **Generated files.** README, `values.schema.json`, `types.go` and the cozyrd are regenerated from the line's `values.yaml`. They differ from 1.7 only by `allowCollationChange` and `bootstrap.sourceImageName`; `schedulingClass` from main does not come along. - **Everything else matches main exactly:** `collation-repair.yaml`, `locale-check-hook.yaml`, `_versions.tpl`, their tests, the `repair.sh` section of `init-script.yaml`, and the WorkloadMonitor types and the opt-in label. `workloadmonitor_controller.go` and the e2e differ from main only by code that 1.7 does not have (BucketClaim verdicts and the like). The same #5505 cherry-pick onto 1.7 was what ran on the dev cluster below. ### What a 1.7 user gets - Clusters on the bare bullseye tags (13.22, 14.20, 15.15, 16.11, 17.7, 18.1) stay on them until a pre-upgrade check finds nothing that depends on a changing collation, or until `allowCollationChange: true` is set. A held cluster gets no further minors, so CVE-2026-116331 stays open on it. - A clean or opted-in cluster moves to `standard-trixie`. Its indexes are repaired after the rollout by the `<release>-collation-repair` Job, which the HelmRelease does not wait for. A failed repair shows as `WorkloadsReady=False` with reason `JobFailed`. - v1.7.2-rc.1 installs, which ran the old repair pass and were then moved back to bullseye by #5461: indexes rebuilt for the new glibc/ICU are wrong again on bullseye. The locale check still runs, and such a cluster may be held or moved depending on what it finds. Indexes already repaired once on trixie by the old pass and not marked need `REINDEX` by hand (see #5478). ### Testing - `go build ./...` and `go vet` on `internal/controller`, `internal/backupcontroller/...` and `cmd/cozystack-controller`: clean. - `go test ./internal/controller/ ./internal/backupcontroller/... ./pkg/registry/apps/application/`: pass. - `helm unittest packages/apps/postgres`: 276 passed. - `make generate` in `packages/apps/postgres` leaves the tree clean. - `hack/check-commit-trailers.sh origin/release-1.7..HEAD`: OK. - Dev cluster (v1.7.0 through Flux): #5479 and #5505 cherry-picked onto `release-1.7` ran all scenarios ([#5479](https://github.com/cozystack/cozystack/pull/5479#issuecomment-7271222567), [#5505](https://github.com/cozystack/cozystack/pull/5505#issuecomment-7271222025)). That run did not include #5472's backup driver adaptation or the full stack built from this branch. That is still to do before this leaves draft. ### Screenshots ### Downstream repositories Walked the trigger map against the diff. The postgres `values.schema.json` gains `allowCollationChange` and `bootstrap.sourceImageName`, the same fields #5472 added on main, so the follow-up is cozystack/terraform-provider-cozystack#91. No other trigger applies: no new package, platform value, installer, ApplicationDefinition shape beyond those fields, or telemetry. - [ ] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [x] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: cozystack/terraform-provider-cozystack#91 - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note [postgres] Tenant PostgreSQL moves to the patched standard-trixie images again (CVE-2026-116331), now with a safe collation repair. A cluster still on a Debian bullseye image stays on it until a pre-upgrade check finds nothing that depends on a changing collation, or until `allowCollationChange` is set; a held cluster gets no further minors. The index repair, including indexes on C.UTF-8, and the PostGIS extension update run in a `<release>-collation-repair` Job after the rollout instead of blocking the upgrade, and a failed repair shows on the application as `WorkloadsReady=False` with reason `JobFailed`. ```
Cozystack
Cozystack is a free and open-source platform and framework for building clouds.
Cozystack is a CNCF Sandbox project that was originally built and sponsored by Ænix.
With Cozystack, you can transform a bunch of servers into an intelligent system with a simple REST API for spawning Kubernetes clusters, Database-as-a-Service, virtual machines, load balancers, HTTP caching services, and other services with ease.
Use Cozystack to build your own cloud or provide a cost-effective development environment.
Use-Cases
-
Using Cozystack to build a public cloud
You can use Cozystack as a backend for a public cloud -
Using Cozystack to build a private cloud
You can use Cozystack as a platform to build a private cloud powered by Infrastructure-as-Code approach -
Using Cozystack to build your own platform
You can install only the Cozystack components you need on an existing Kubernetes cluster
Documentation
The documentation is located on the cozystack.io website.
Read the Getting Started section for a quick start.
If you encounter any difficulties, start with the troubleshooting guide and work your way through the process that we've outlined.
Versioning
Versioning adheres to the Semantic Versioning principles.
A full list of the available releases is available in the GitHub repository's Release section.
Contributions
Contributions are highly appreciated and very welcomed!
In case of bugs, please check if the issue has already been opened by checking the GitHub Issues section. If it isn't, you can open a new one. A detailed report will help us replicate it, assess it, and work on a fix.
You are welcome to take on the fix yourself. Commits are used to generate the changelog, and their author will be referenced in it.
If you have a concrete feature request, open an issue. For a cross-cutting or architectural change, open a design proposal in the community repo. For questions or early ideas, use GitHub Discussions. See CONTRIBUTING.md for the full routing.
Community
You are welcome to join us in #cozystack, on either CNCF Slack (get an invite) or Kubernetes Slack (get an invite), in our Telegram group, and at our community meetings. Add them to your Google Calendar or iCal for convenience.
Project documents
| Document | What it covers |
|---|---|
| Governance | How decisions are made and who makes them |
| Contributor Ladder | How to grow from contributor to maintainer |
| Maintainers | Who maintains the project |
| Code of Conduct | What we expect of each other |
| Security Policy | Reporting a vulnerability, and which releases get fixes |
| Adopters | Who runs Cozystack in production |
| Roadmap | Where the project is going |
License
Cozystack is licensed under Apache 2.0.
The code is provided as-is with no warranties.
Commercial Support
A list of companies providing commercial support for this project can be found on official site.
