Commit Graph
7940 Commits
Author SHA1 Message Date
myasnikovdaniil 6dc7643298 chore(release): promote v1.7.2-rc.2 -> v1.7.2 (#5469)
Promotes `v1.7.2-rc.2` to stable `v1.7.2` without rebuilding containers.
Their digests remain bit-for-bit what passed rc e2e; the tag-rewritten
packages tree is re-serialized as a temporary OCI candidate and pinned
here by digest. On merge, pull-requests-release.yaml verifies that
candidate against this tree before creating the write-once `v1.7.2` tag,
retagging the candidate and container digests to `v1.7.2` (+`:latest`
when this is the newest stable), publishing the stable cozy-installer
chart, and publishing the release. Do NOT squash-merge (decision B): the
stable tag must attach to a real merge commit.

✅ RC full e2e was verified for `v1.7.2-rc.2` before promotion.

ℹ️ E2E already ran against the immutable rc, so this promote PR does not
run E2E by default. A maintainer may add the `full-e2e` label to run the
full suite again.

✅ Includes `docs/changelogs/v1.7.2.md`, which finalize uses verbatim as
the published release body.

✅ Website docs PR opened/refreshed on `cozystack/website` (branch
`update-docs-v1.7.2`), generated from the `release-1.7.2` staging
branch. **Do NOT merge that PR until `v1.7.2` is published** — merging
it early flips the site's latest-version pointer to an unpublished
version and 404s its docs/API links (see the PR body).
v1.7.2 api/apps/v1alpha1/v1.7.2
2026-11-27 12:21:01 +05:00
Myasnikov Daniil c34dac4969 docs(release): add the v1.7.2 upgrade test findings to the changelog
The upgrade test from v1.7.1 to v1.7.2-rc.2 measured interruptions the
generated upgrade notes did not describe, and operators plan their
maintenance window from that section. It also showed that the barman-cloud
sidecar CPU limit from #5280 rolls every tenant PostgreSQL with a chart
ObjectStore during the upgrade, not at its next restart as the note said.

The Talos note gains the talm procedure for a cluster VIP the operator's
machine cannot reach, and the root tenant without ingress gets its own
upgrade note, since it needs ingress.rootEnabled set by hand.

Assisted-By: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-27 07:15:58 +00:00
cozystack-ci[bot] 5798d336ab docs: add changelog for v1.7.2
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-27 07:13:05 +00:00
cozystack-ci[bot] 72df042983 Pin promoted packages artifact for v1.7.2
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-27 07:00:22 +00:00
cozystack-ci[bot] d53bb81312 Prepare release v1.7.2 (promoted from v1.7.2-rc.2)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-27 07:00:14 +00:00
cozystack-ci[bot] 49834470d9 Prepare release v1.7.2-rc.2
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-26 17:11:43 +00:00
myasnikovdaniil d096e10069 fix(backport): batch for release-1.7, 2026-11-26 (#5462)
## What this PR does

Backports to `release-1.7` from `main`, picked by the rules of the
[backport
policy](https://github.com/cozystack/cozystack/blob/main/docs/release/backports.md)
in merge order. A merged pull request comes as its own commits, picked
with `git cherry-pick -x` so each keeps its author, message and
sign-offs, and a merge commit that carries the original's merge message
with a `Backported-from:` trailer naming it; a squash-merged one comes
as one pick. `backport-batch verify` checks that shape. A pick listed as
changed differs from the commit it came from, and its release note waits
under Check these notes. A conflict or a failing check here is a
[backport
task](https://github.com/cozystack/cozystack/blob/main/docs/release/backport-tasks/README.md).

- [#5236](https://github.com/cozystack/cozystack/pull/5236)
`fix(kubernetes): include the namespace in the kubevirt-csi ClusterRole
name`, 1 commit

### Parked

These cannot land on `release-1.7` whole, so the batch does not pick
them: each would leave part of it without effect there, or builds on a
change that never reaches the line. A maintainer ports what applies as a
pull request of its own, or drops the original with `backport-batch run
--drop`; `backport/include` does not lift a park.

- [#5232](https://github.com/cozystack/cozystack/pull/5232)
`fix(clickhouse): let a running backup sidecar pick up system-bucket
credentials`: builds on
[#5034](https://github.com/cozystack/cozystack/pull/5034), which never
reaches this line
- [#5229](https://github.com/cozystack/cozystack/pull/5229)
`fix(clickhouse): keep failed backup attempts out of the bucket`: builds
on [#5232](https://github.com/cozystack/cozystack/pull/5232), which
never reaches this line
- [#5221](https://github.com/cozystack/cozystack/pull/5221)
`fix(postgres): stop backup jobs from fighting over the WAL archive
destination`: builds on
[#5223](https://github.com/cozystack/cozystack/pull/5223), which never
reaches this line
- [#5227](https://github.com/cozystack/cozystack/pull/5227)
`fix(mariadb): restore the dump a Backup was taken as`: builds on
[#5223](https://github.com/cozystack/cozystack/pull/5223), which never
reaches this line
- [#5294](https://github.com/cozystack/cozystack/pull/5294)
`fix(postgres): hold the WAL archive destination for backups no job
tracks`: builds on
[#5221](https://github.com/cozystack/cozystack/pull/5221), which never
reaches this line
- [#5295](https://github.com/cozystack/cozystack/pull/5295)
`fix(postgres): restore from an archive with the access it was written
with`: builds on
[#5221](https://github.com/cozystack/cozystack/pull/5221), which never
reaches this line
- [#5344](https://github.com/cozystack/cozystack/pull/5344)
`fix(backups): stop leaking MariaDB dumps of stuck runs and torn-down
namespaces`: builds on
[#5227](https://github.com/cozystack/cozystack/pull/5227), which never
reaches this line
- [#5375](https://github.com/cozystack/cozystack/pull/5375)
`fix(kubernetes): apply addons.monitoringAgents.valuesOverride`: builds
on [#5167](https://github.com/cozystack/cozystack/pull/5167), which
never reaches this line
- [#5224](https://github.com/cozystack/cozystack/pull/5224)
`fix(clickhouse): delete the archive when its Backup is deleted`: builds
on [#5227](https://github.com/cozystack/cozystack/pull/5227),
[#5232](https://github.com/cozystack/cozystack/pull/5232), which never
reaches this line
- [#5398](https://github.com/cozystack/cozystack/pull/5398)
`fix(cluster-api): name the kubeconfig the upgrade hook runs with`:
builds on [#4902](https://github.com/cozystack/cozystack/pull/4902),
which never reaches this line
- [#5415](https://github.com/cozystack/cozystack/pull/5415)
`fix(clickhouse): keep a quota-held archive delete and count a failed
one once`: builds on
[#5224](https://github.com/cozystack/cozystack/pull/5224), which never
reaches this line
- [#5049](https://github.com/cozystack/cozystack/pull/5049)
`fix(kubernetes): bump tenant worker Talos to v1.13.12
(CVE-2026-99999)`: builds on
[#4802](https://github.com/cozystack/cozystack/pull/4802),
[#5191](https://github.com/cozystack/cozystack/pull/5191),
[#5393](https://github.com/cozystack/cozystack/pull/5393), which never
reaches this line
- [#5426](https://github.com/cozystack/cozystack/pull/5426)
`fix(seaweedfs): stop reserving storage pool name suffixes`: builds on
[#5050](https://github.com/cozystack/cozystack/pull/5050),
[#5252](https://github.com/cozystack/cozystack/pull/5252), which never
reaches this line
- [#5427](https://github.com/cozystack/cozystack/pull/5427)
`fix(kubernetes): stop refusing extraOutputs hooks monitoring-agents
accepts`: builds on
[#5376](https://github.com/cozystack/cozystack/pull/5376), which never
reaches this line
- [#5320](https://github.com/cozystack/cozystack/pull/5320)
`fix(postgres): bound a backup whose cnpg Backup stalls in pending`:
builds on [#5221](https://github.com/cozystack/cozystack/pull/5221),
which never reaches this line

### Maintainer overrides

- [#5025](https://github.com/cozystack/cozystack/pull/5025)
`test(harbor): pin the resources of the nginx proxy and the portal`:
`backport/include`, skipped by rule 1, `its 2 commits picked, the last
in 9342e077118f`
- [#4985](https://github.com/cozystack/cozystack/pull/4985) `fix(etcd):
stop counting canceled watch streams as failed gRPC requests`:
`backport/include`, skipped by rule 1, `its 1 commit picked, the last in
38e408917936`
- [#5005](https://github.com/cozystack/cozystack/pull/5005)
`fix(tcp-balancer): cap HAProxy fds and threads by the pod's own
limits`: `backport/include`, skipped by rule 1, `its 1 commit picked,
the last in 7a3d0b0a5559`
- [#5083](https://github.com/cozystack/cozystack/pull/5083)
`fix(workloadmonitor): stop doubling the bucket- prefix in bucket
Workload names`: `backport/skip`, left out
- [#4973](https://github.com/cozystack/cozystack/pull/4973)
`fix(kubernetes-nodes): refuse a partial resources spec on every pool`:
`backport/skip`, left out
- [#5180](https://github.com/cozystack/cozystack/pull/5180) `fix(tests):
keep two unit tests green after the release image restamp`:
`backport/skip`, left out
- [#4993](https://github.com/cozystack/cozystack/pull/4993)
`feat(monitoring): alert when pods of one workload share a node`:
`backport/include`, skipped by rule 1, `its 1 commit picked, the last in
9b1c3b5737be`
- [#5352](https://github.com/cozystack/cozystack/pull/5352)
`docs(gateway): stop saying the route-hostname policy admits
hostname-less routes`: `backport/include`, skipped by rule 1, `its 1
commit picked, the last in f6c5ec852737`
- [#4990](https://github.com/cozystack/cozystack/pull/4990) `fix(redis,
valkey, harbor): spread sentinels and data pods over nodes`:
`backport/skip`, left out
- [#4989](https://github.com/cozystack/cozystack/pull/4989)
`fix(monitoring): spread monitoring replicas over nodes`:
`backport/skip`, left out
- [#5393](https://github.com/cozystack/cozystack/pull/5393)
`fix(kubernetes-nodes): label worker disks with the WorkloadMonitor
selector`: `backport/skip`, left out
- [#4817](https://github.com/cozystack/cozystack/pull/4817)
`feat(kubernetes): give each tenant Kubernetes cluster its own etcd`:
`backport/skip`, left out
- [#5407](https://github.com/cozystack/cozystack/pull/5407)
`fix(ingress-nginx): turn off TLS session tickets for CVE-2026-97629`:
`backport/include`, skipped by rule 1, `its 1 commit picked, the last in
98ced7da4260`
- [#5156](https://github.com/cozystack/cozystack/pull/5156)
`fix(kafka)!: require SCRAM-SHA-512 on the external listener`:
`backport/skip`, left out
- [#5186](https://github.com/cozystack/cozystack/pull/5186)
`ci(workflows): run push and schedule workflows only in
cozystack/cozystack`: `backport/skip`, left out
- [#4921](https://github.com/cozystack/cozystack/pull/4921) `feat(api):
add the credentials API with mint and revoke subresources`:
`backport/skip`, left out
- [#5163](https://github.com/cozystack/cozystack/pull/5163)
`docs(release): add the v1.7.0 release notes`: `backport/skip`, left out
- [#5337](https://github.com/cozystack/cozystack/pull/5337)
`feat(kubernetes): run tenant clusters inside a cozyplane VPC`:
`backport/skip`, left out

### Skipped

- Rule 1, already on `release-1.7`: 112
- Rule 2, the title type is not `fix` or `security`, or the scope is
`deps`: 90
- Rule 3, a breaking change: 8
- Rule 4, touches platform migrations, `targetVersion` or a CRD, or
makes a sizeable API change: 4
- Dropped from `release-1.7` by a maintainer: 1

<details><summary>Rule 1, already on `release-1.7`</summary>

- [#4815](https://github.com/cozystack/cozystack/pull/4815)
`fix(vm-disk): name the importer error in the disk's WorkloadsReady
message`, `its 2 commits picked, the last in 432336387019`
- [#4756](https://github.com/cozystack/cozystack/pull/4756)
`fix(backupstrategy-controller): run backup clients on a package-owned
image`, `its 2 commits picked, the last in 4643366734f8`
- [#4293](https://github.com/cozystack/cozystack/pull/4293)
`fix(fluxcd): keep Helm uninstall working during flux-plunger recovery`,
`its 1 commit picked, the last in 021040795b22`
- [#4791](https://github.com/cozystack/cozystack/pull/4791)
`fix(kubernetes): keep NFS publish from hanging on a dead server`, `its
1 commit picked, the last in fa88bd1c4902`
- [#4830](https://github.com/cozystack/cozystack/pull/4830)
`fix(multus): drop the CPU limit and make resources configurable`, `its
2 commits picked, the last in 363c8426bab7`
- [#4865](https://github.com/cozystack/cozystack/pull/4865) `fix(kafka):
pass the container limits to the Kafka JVMs`, `its 3 commits picked, the
last in fc38a540c02f`
- [#4866](https://github.com/cozystack/cozystack/pull/4866)
`fix(linstor): mark volumes restored from a snapshot DRBD-initialized`,
`its 1 commit picked, the last in f9550b71cc24`
- [#4867](https://github.com/cozystack/cozystack/pull/4867) `fix(e2e):
keep chainsaw asserts polling through transient API errors`, `its 1
commit picked, the last in df75adc11cfa`
- [#4819](https://github.com/cozystack/cozystack/pull/4819)
`fix(seaweedfs): build SeaweedFS in-tree with a bounded S3 read-ahead`,
`its 5 commits picked, the last in 7f4c3463d2a9`
- [#3427](https://github.com/cozystack/cozystack/pull/3427)
`fix(backups): prepare standalone VMDisk restore targets and add VM
backup/restore e2e round-trips`, `its 3 commits picked, the last in
4ac0cd581481`
- [#4889](https://github.com/cozystack/cozystack/pull/4889)
`fix(monitoring): send alerts to every Alertmanager replica`, `its 1
commit picked, the last in 5033d53410ba`
- [#4929](https://github.com/cozystack/cozystack/pull/4929)
`fix(backups): gate every default Strategy CR on its CRD`, `its 2
commits picked, the last in dee1eef5590b`
- [#4914](https://github.com/cozystack/cozystack/pull/4914)
`fix(fluxcd): close the flux-plunger review follow-ups for the hook,
drain and Warnings`, `its 7 commits picked, the last in a8e491646a06`
- [#4888](https://github.com/cozystack/cozystack/pull/4888) `fix(ci):
dispatch frozen-line builds with GITHUB_TOKEN`, `its 1 commit picked,
the last in bf81e2d9db22`
- [#4939](https://github.com/cozystack/cozystack/pull/4939)
`fix(cluster-api): resync capi-operator every minute`, `its 1 commit
picked, the last in cc8d6a4f05a0`
- [#5027](https://github.com/cozystack/cozystack/pull/5027) `fix(hack):
keep the backup stack in the vminstance selective install`, `its 1
commit picked, the last in 8ba8386a2e5c`
- [#4955](https://github.com/cozystack/cozystack/pull/4955)
`fix(vm-disk): let CDI adopt the PVC a Velero restore recreates`, `its 2
commits picked, the last in 691d7bce038e`
- [#5025](https://github.com/cozystack/cozystack/pull/5025)
`test(harbor): pin the resources of the nginx proxy and the portal`,
`its 2 commits picked, the last in 9342e077118f`
- [#4985](https://github.com/cozystack/cozystack/pull/4985) `fix(etcd):
stop counting canceled watch streams as failed gRPC requests`, `its 1
commit picked, the last in 38e408917936`
- [#5005](https://github.com/cozystack/cozystack/pull/5005)
`fix(tcp-balancer): cap HAProxy fds and threads by the pod's own
limits`, `its 1 commit picked, the last in 7a3d0b0a5559`
- [#5071](https://github.com/cozystack/cozystack/pull/5071)
`fix(marketplace): do not install a connected repository's components on
connect`, `its 2 commits picked, the last in 25f8f11187b9`
- [#5086](https://github.com/cozystack/cozystack/pull/5086)
`fix(tenant): stop the gateway release waiting on TenantGateway
listeners and certificates`, `its 1 commit picked, the last in
18b22495038b`
- [#5087](https://github.com/cozystack/cozystack/pull/5087)
`fix(controller): carry healthCheckExprs and waitStrategy to existing
releases`, `its 1 commit picked, the last in d2a452e89067`
- [#5088](https://github.com/cozystack/cozystack/pull/5088)
`fix(ingress-nginx): drop the admission-webhook policy a rebase brought
back`, `its 1 commit picked, the last in cf00b41e0e9a`
- [#5142](https://github.com/cozystack/cozystack/pull/5142)
`fix(release): keep release bodies within GitHub's size limit`, `its 1
commit picked, the last in c7405158634e`
- [#4917](https://github.com/cozystack/cozystack/pull/4917)
`fix(kubernetes): run Proxmox CCM v0.16.1 and pin the Proxmox images by
digest`, `its 2 commits picked, the last in 8ff6dcacd3b5`
- [#4974](https://github.com/cozystack/cozystack/pull/4974)
`fix(kubernetes-nodes): plan autoscaler capacity on the cores the VM
actually gets`, `its 1 commit picked, the last in d68a163c2d86`
- [#4971](https://github.com/cozystack/cozystack/pull/4971) `fix(e2e):
keep the Proxmox tenant kubeconfig per run and remove it`, `its 2
commits picked, the last in 77227c55e9d6`
- [#4970](https://github.com/cozystack/cozystack/pull/4970) `fix(e2e):
read the KubernetesNodes pool release in the HelmRelease guard`, `its 3
commits picked, the last in 6b17a76ef6cb`
- [#4972](https://github.com/cozystack/cozystack/pull/4972) `fix(e2e):
validate the leak allowlist against every suite layout`, `its 3 commits
picked, the last in 7ec550b7b81f`
- [#5082](https://github.com/cozystack/cozystack/pull/5082)
`fix(marketplace): pin a tapped repository to a digest instead of a
mutable tag`, `its 15 commits picked, the last in 9cff86f85124`
- [#4004](https://github.com/cozystack/cozystack/pull/4004)
`fix(dashboard): link a tenant row to its detail page`, `its 2 commits
picked, the last in bd5e0b5e88b3`
- [#5212](https://github.com/cozystack/cozystack/pull/5212)
`fix(cilium): pass the CiliumNode list to jq on stdin in the IPAM hook`,
`its 1 commit picked, the last in b28a2e228160`
- [#5213](https://github.com/cozystack/cozystack/pull/5213)
`fix(kubernetes): move the OIDC users out of the bootstrap Job's
script`, `its 1 commit picked, the last in 02dd8e5454f8`
- [#5208](https://github.com/cozystack/cozystack/pull/5208)
`fix(clickhouse): restore the archive a Backup was taken as`, `its 3
commits picked, the last in 9ded5c5fc356`
- [#5230](https://github.com/cozystack/cozystack/pull/5230)
`fix(backups): re-render the default backup objects when the S3 endpoint
changes`, `its 8 commits picked, the last in 490eab5b9aba`
- [#5133](https://github.com/cozystack/cozystack/pull/5133)
`fix(securitygroups): project a membership-only group to a policy Cilium
accepts`, `its 1 commit picked, the last in b7c50a5e070f`
- [#5091](https://github.com/cozystack/cozystack/pull/5091)
`fix(postgres): render the declared databases in a stable order`, `its 1
commit picked, the last in b658dffe7c31`
- [#5123](https://github.com/cozystack/cozystack/pull/5123)
`fix(mariadb-operator): derive the cluster name from the platform
domain`, `its 2 commits picked, the last in 17702dd57bab`
- [#5151](https://github.com/cozystack/cozystack/pull/5151) `fix(redis):
run one Sentinel when Redis runs a single pod`, `its 5 commits picked,
the last in 5524a41b8586`
- [#5124](https://github.com/cozystack/cozystack/pull/5124)
`fix(lineage, kubernetes): resolve CAPK node VMs to their cluster`, `its
2 commits picked, the last in c90856088aff`
- [#5184](https://github.com/cozystack/cozystack/pull/5184) `fix(api):
read pool usage under the quota key the controller counts`, `its 1
commit picked, the last in 18c17af8d50f`
- [#5190](https://github.com/cozystack/cozystack/pull/5190)
`fix(platform): remove the dead registries value and patch-containerd
Secret`, `its 2 commits picked, the last in 617f88943895`
- [#5211](https://github.com/cozystack/cozystack/pull/5211)
`fix(postgres): fail a backup job as soon as its cnpg Backup fails`,
`its 1 commit picked, the last in 6645e21b9e0a`
- [#5155](https://github.com/cozystack/cozystack/pull/5155)
`fix(postgres): refuse system databases and never drop them`, `its 1
commit picked, the last in 6f1bb80f8004`
- [#5207](https://github.com/cozystack/cozystack/pull/5207)
`fix(mariadb): fail backup and restore jobs whose operator Job failed`,
`its 5 commits picked, the last in ef3de554b99f`
- [#5024](https://github.com/cozystack/cozystack/pull/5024)
`fix(kubernetes, monitoring): send tenant cluster metrics to the
tenant's vminsert`, `its 1 commit picked, the last in 423a75bb31db`
- [#5284](https://github.com/cozystack/cozystack/pull/5284)
`fix(seaweedfs): bump the COSI driver to v0.4.0 for the lost-grant fix`,
`its 1 commit picked, the last in ffb38805ff71`
- [#5226](https://github.com/cozystack/cozystack/pull/5226)
`fix(platform): leave tenant-root's ingress empty when the root tenant
has none`, `its 5 commits picked, the last in c8b2877b7ffb`
- [#5228](https://github.com/cozystack/cozystack/pull/5228)
`fix(seaweedfs): enforce S3 bucket lifecycle rules`, `its 14 commits
picked, the last in 48aa4188b4be`
- [#5152](https://github.com/cozystack/cozystack/pull/5152)
`fix(monitoring-agents): let the release uninstall when the
VictoriaMetrics operator is gone first`, `its 1 commit picked, the last
in 36cd5b7a57bb`
- [#5270](https://github.com/cozystack/cozystack/pull/5270)
`fix(vm-instance): keep an external PortList VM valid with no ports`,
`its 1 commit picked, the last in ca33a284cfa4`
- [#5308](https://github.com/cozystack/cozystack/pull/5308)
`fix(seaweedfs): stop the master crashing on the crowded volume map`,
`its 1 commit picked, the last in 53bcbe75fa14`
- [#5280](https://github.com/cozystack/cozystack/pull/5280)
`fix(backups): give the barman-cloud sidecar an explicit CPU limit`,
`its 1 commit picked, the last in b24a55b70296`
- [#5100](https://github.com/cozystack/cozystack/pull/5100) `fix(etcd):
size the defrag job for the client it runs`, `its 1 commit picked, the
last in 42fb4e0ad40e`
- [#5094](https://github.com/cozystack/cozystack/pull/5094)
`fix(monitoring): select the vmalert Service the operator creates`, `its
1 commit picked, the last in d671ed89fecc`
- [#5250](https://github.com/cozystack/cozystack/pull/5250)
`fix(ingress-nginx): raise client keepalive_time above the 1h default`,
`its 1 commit picked, the last in f9beb2118851`
- [#4986](https://github.com/cozystack/cozystack/pull/4986) `fix(etcd):
require an even spread of members over nodes by default`, `its 2 commits
picked, the last in 24dab0f1f451`
- [#5249](https://github.com/cozystack/cozystack/pull/5249)
`fix(kubernetes): detach volumes when the infra PVC is missing`, `its 2
commits picked, the last in 8d8b427c3665`
- [#4960](https://github.com/cozystack/cozystack/pull/4960)
`fix(vm-disk): refuse a disk smaller than the golden image it clones`,
`its 1 commit picked, the last in 42798c5665b5`
- [#5102](https://github.com/cozystack/cozystack/pull/5102)
`fix(monitoring-agents): make a silent Watchdog an alarm in Alerta`,
`its 1 commit picked, the last in 76cf3e0cefd6`
- [#4948](https://github.com/cozystack/cozystack/pull/4948)
`fix(monitoring): route InfoInhibitor to the blackhole receiver`, `its 2
commits picked, the last in f050496011a1`
- [#5098](https://github.com/cozystack/cozystack/pull/5098)
`fix(vertical-pod-autoscaler): run two admission controllers spread over
nodes`, `its 2 commits picked, the last in e6468a30fccc`
- [#5119](https://github.com/cozystack/cozystack/pull/5119)
`fix(postgres): accept a standard five-field backup schedule`, `its 2
commits picked, the last in c822846b0a78`
- [#4993](https://github.com/cozystack/cozystack/pull/4993)
`feat(monitoring): alert when pods of one workload share a node`, `its 1
commit picked, the last in 9b1c3b5737be`
- [#4234](https://github.com/cozystack/cozystack/pull/4234)
`fix(seaweedfs, cozy-lib): cap the Go heap so components survive their
memory limit`, `its 2 commits picked, the last in 0e92bc986259`
- [#5096](https://github.com/cozystack/cozystack/pull/5096)
`fix(workloadmonitor): report a bucket's workloads not ready until its
claim is provisioned`, `its 1 commit picked, the last in 0755bb50b9e4`
- [#5114](https://github.com/cozystack/cozystack/pull/5114)
`fix(kubevirt): let tenant admins upload a VMDisk image with virtctl`,
`its 1 commit picked, the last in 6b3c4fe435ac`
- [#4945](https://github.com/cozystack/cozystack/pull/4945) `fix(apps):
keep Job and CronJob names within the Kubernetes limits`, `its 1 commit
picked, the last in 3d6477c895d9`
- [#4963](https://github.com/cozystack/cozystack/pull/4963)
`fix(piraeus-operator): keep the LINSTOR error-report alerts quiet when
the controller pod moves`, `its 1 commit picked, the last in
62ee8da0ee3e`
- [#4946](https://github.com/cozystack/cozystack/pull/4946)
`fix(keycloak, foundationdb): apply operator CRD updates on upgrade`,
`its 2 commits picked, the last in cc99f7f7ed85`
- [#4965](https://github.com/cozystack/cozystack/pull/4965)
`fix(tcp-balancer): render the kubernetes and talos Service ports only
with kubernetesAndTalos`, `its 1 commit picked, the last in
51fe9904d379`
- [#5011](https://github.com/cozystack/cozystack/pull/5011)
`fix(cozystack-basics): refuse a direct delete of a tenant namespace`,
`its 1 commit picked, the last in 8a6914768ce5`
- [#5242](https://github.com/cozystack/cozystack/pull/5242) `fix(vpa):
shorten the admission webhook timeout to 5s`, `its 2 commits picked, the
last in 73d7822952fd`
- [#5329](https://github.com/cozystack/cozystack/pull/5329) `fix(ci):
take main's ref for a bare first-party image ref in a drifted file`,
`its 5 commits picked, the last in 2552e1587620`
- [#5265](https://github.com/cozystack/cozystack/pull/5265)
`fix(controller, platform): give unbounded pool members the root's
LimitRange`, `its 3 commits picked, the last in ab222a92572e`
- [#5153](https://github.com/cozystack/cozystack/pull/5153)
`fix(kubernetes): bring up a replacement worker before draining the old
one`, `its 7 commits picked, the last in 8fd70d603d76`
- [#5175](https://github.com/cozystack/cozystack/pull/5175) `fix(tests):
reject matcher failures in negative file assertions`, `its 3 commits
picked, the last in 62e1379c454b`
- [#5183](https://github.com/cozystack/cozystack/pull/5183) `fix(etcd):
scope tenant alerts to their scrape job`, `its 1 commit picked, the last
in 7d3dad271754`
- [#5189](https://github.com/cozystack/cozystack/pull/5189)
`fix(cozy-lib): render tenant hugepages quota only as requests`, `its 1
commit picked, the last in f9b34ab68131`
- [#4893](https://github.com/cozystack/cozystack/pull/4893)
`fix(seaweedfs): keep Object Lock working for COSI credentials on
SeaweedFS 4.48`, `its 2 commits picked, the last in 9366997a4b12`
- [#4915](https://github.com/cozystack/cozystack/pull/4915)
`fix(seaweedfs): remove identities left behind by deleted
BucketAccesses`, `its 1 commit picked, the last in ff21a7098592`
- [#4896](https://github.com/cozystack/cozystack/pull/4896)
`fix(kamaji): drop kubelet config fields older tenants do not know`,
`its 1 commit picked, the last in cf7f62208926`
- [#5364](https://github.com/cozystack/cozystack/pull/5364)
`fix(backups): delete the Velero backup of a failed BackupJob`, `its 4
commits picked, the last in 0bd46bc0149e`
- [#5373](https://github.com/cozystack/cozystack/pull/5373)
`fix(opensearch): disable the Base64 intrinsics hit by CVE-2026-114938`,
`its 1 commit picked, the last in bdac8ef210c4`
- [#4920](https://github.com/cozystack/cozystack/pull/4920)
`fix(lineage-webhook): keep an explicit tenantresource false`, `its 3
commits picked, the last in 5f025e9d807a`
- [#5377](https://github.com/cozystack/cozystack/pull/5377)
`fix(ingress-nginx): pick up the nginx rebuild with the HTTP/2 CVE
fixes`, `its 1 commit picked, the last in 4d7515ab3e34`
- [#5340](https://github.com/cozystack/cozystack/pull/5340)
`fix(qdrant): scrape TLS metrics over HTTPS`, `its 1 commit picked, the
last in e509806cbf05`
- [#5331](https://github.com/cozystack/cozystack/pull/5331)
`fix(kubernetes): remove cilium dependency from coredns HelmRelease`,
`its 1 commit picked, the last in 948ac0b46ea8`
- [#5354](https://github.com/cozystack/cozystack/pull/5354)
`fix(platform): honour a bool false in ingress-enabled and
monitoring-enabled`, `its 1 commit picked, the last in 0de36b85ef3a`
- [#5045](https://github.com/cozystack/cozystack/pull/5045) `fix(talos):
bump Talos to v1.14.4 (CVE-2026-99999)`, `its 1 commit picked, the last
in 482e3e85f884`
- [#5134](https://github.com/cozystack/cozystack/pull/5134)
`fix(securitygroups): reject port ranges and malformed FQDNs on the
SecurityGroup path`, `its 2 commits picked, the last in bda0ddac6a76`
- [#5352](https://github.com/cozystack/cozystack/pull/5352)
`docs(gateway): stop saying the route-hostname policy admits
hostname-less routes`, `its 1 commit picked, the last in f6c5ec852737`
- [#4984](https://github.com/cozystack/cozystack/pull/4984)
`fix(postgres): keep users.app's password across pod restarts`, `its 1
commit picked, the last in e3b200e8d8e7`
- [#5356](https://github.com/cozystack/cozystack/pull/5356)
`fix(seaweedfs): point the Lance catalog consumers at the renamed s3
Service`, `its 1 commit picked, the last in 1771a8f3f5dd`
- [#5160](https://github.com/cozystack/cozystack/pull/5160)
`fix(linstor): roll affinity controller and scheduler on client cert
rotation`, `its 1 commit picked, the last in b9fa1de2394c`
- [#5357](https://github.com/cozystack/cozystack/pull/5357) `fix(api):
skip an invalid ApplicationDefinition instead of failing startup`, `its
1 commit picked, the last in bdb3130fae8c`
- [#5148](https://github.com/cozystack/cozystack/pull/5148)
`fix(gateway): skip a child apex the wildcard certificate already
covers`, `its 1 commit picked, the last in 9037cf175e7c`
- [#5358](https://github.com/cozystack/cozystack/pull/5358)
`fix(linstor): run the NFS server wait init container on the platform
CSI image`, `its 1 commit picked, the last in 206bf78c56c2`
- [#5326](https://github.com/cozystack/cozystack/pull/5326) `fix(api):
make monitor watch versions usable as delete preconditions`, `its 4
commits picked, the last in 88d132920f3b`
- [#4167](https://github.com/cozystack/cozystack/pull/4167)
`fix(gateway): copy allowed routes for the edge listener`, `its 1 commit
picked, the last in 7fb7e9dece2b`
- [#5348](https://github.com/cozystack/cozystack/pull/5348) `fix(api):
validate workload memory before storing an application`, `its 1 commit
picked, the last in e65cec94187d`
- [#5392](https://github.com/cozystack/cozystack/pull/5392)
`fix(harbor): meter the registry bucket under the registry
WorkloadMonitor`, `its 1 commit picked, the last in 223785486d42`
- [#5403](https://github.com/cozystack/cozystack/pull/5403)
`fix(platform): bump system PostgreSQL to 17.12`, `its 1 commit picked,
the last in b5e19bdfa305`
- [#4954](https://github.com/cozystack/cozystack/pull/4954)
`fix(tenant): render the LimitRange only under a compute quota`, `its 2
commits picked, the last in 6be80ea29946`
- [#4797](https://github.com/cozystack/cozystack/pull/4797)
`fix(cozystack-basics): make the tenant super-admin VirtualMachine grant
read-only`, `its 1 commit picked, the last in f9552cebe6c8`
- [#5407](https://github.com/cozystack/cozystack/pull/5407)
`fix(ingress-nginx): turn off TLS session tickets for CVE-2026-97629`,
`its 1 commit picked, the last in 98ced7da4260`
- [#5405](https://github.com/cozystack/cozystack/pull/5405)
`fix(postgres): move tenant PostgreSQL to patched standard-trixie
images`, `its 2 commits picked, the last in f0820507aaef`
- [#5210](https://github.com/cozystack/cozystack/pull/5210)
`fix(platform): do not gate cert-manager-issuers on ClusterIssuer
readiness`, `its 1 commit picked, the last in 92d78d24de9b`
- [#5399](https://github.com/cozystack/cozystack/pull/5399)
`fix(kubernetes-nodes): surge one worker at a time during a pool
rollout`, `its 1 commit picked, the last in 23464e5b0046`
- [#5443](https://github.com/cozystack/cozystack/pull/5443)
`fix(ingress): restore visitor IPs through SSL passthrough`, `its 2
commits picked, the last in 9d5ea2b919f8`
- [#5436](https://github.com/cozystack/cozystack/pull/5436)
`fix(ingress-nginx): pick up the nginx rebuild with the remaining CVE
fixes`, `its 1 commit picked, the last in 692f78c08214`

</details>

<details><summary>Rule 2, the title type is not `fix` or `security`, or
the scope is `deps`</summary>

- [#4845](https://github.com/cozystack/cozystack/pull/4845)
`docs(governance): welcome new contributors and link LF sanctions
guidance`, `type docs`
- [#4881](https://github.com/cozystack/cozystack/pull/4881)
`feat(bucket): add a ui flag to skip the s3manager web UI`, `type feat`
- [#4899](https://github.com/cozystack/cozystack/pull/4899) `chore: link
the FOSSA license scan for CLOMonitor`, `type chore`
- [#4898](https://github.com/cozystack/cozystack/pull/4898)
`feat(backups): back up Valkey with the Redis strategy`, `type feat`
- [#4940](https://github.com/cozystack/cozystack/pull/4940)
`docs(release): add changelog for v1.6.5`, `type docs`
- [#4861](https://github.com/cozystack/cozystack/pull/4861)
`feat(release): sign the release assets and attach a source SBOM`, `type
feat`
- [#3780](https://github.com/cozystack/cozystack/pull/3780) `docs: move
the operator guides out of docs/ to where readers find them`, `type
docs`
- [#4936](https://github.com/cozystack/cozystack/pull/4936)
`docs(release): check changelog claims against the code`, `type docs`
- [#4959](https://github.com/cozystack/cozystack/pull/4959)
`docs(release): point changelog check B at the Talos installer profile`,
`type docs`
- [#3777](https://github.com/cozystack/cozystack/pull/3777)
`docs(agents): define where a new document belongs`, `type docs`
- [#5039](https://github.com/cozystack/cozystack/pull/5039)
`feat(keycloak): load additional CA files from Secret or ConfigMap
keys`, `type feat`
- [#4860](https://github.com/cozystack/cozystack/pull/4860)
`feat(kubernetes-nodes): trust a factory CA in the Proxmox template
script`, `type feat`
- [#5090](https://github.com/cozystack/cozystack/pull/5090) `ci(e2e):
end the Proxmox lane's SSH key with a newline`, `type ci`
- [#4969](https://github.com/cozystack/cozystack/pull/4969)
`test(kubernetes): pin RetryOnFailure on the Proxmox csi release`, `type
test`
- [#5000](https://github.com/cozystack/cozystack/pull/5000)
`test(kubernetes): name the Proxmox fixture's node pool
<cluster>-<pool>`, `type test`
- [#5168](https://github.com/cozystack/cozystack/pull/5168)
`docs(agents): steer agents away from Helm lookup`, `type docs`
- [#4997](https://github.com/cozystack/cozystack/pull/4997)
`feat(release): attach an SBOM to every release image`, `type feat`
- [#3440](https://github.com/cozystack/cozystack/pull/3440)
`ci(api-review-gate): publish the gate as a commit status`, `type ci`
- [#5034](https://github.com/cozystack/cozystack/pull/5034) `docs: move
the repo-only guides onto the website`, `type docs`
- [#5215](https://github.com/cozystack/cozystack/pull/5215)
`feat(monitoring-agents): export PVC labels from kube-state-metrics`,
`type feat`
- [#5217](https://github.com/cozystack/cozystack/pull/5217)
`feat(monitoring-agents): keep application identity in container log
streams`, `type feat`
- [#5171](https://github.com/cozystack/cozystack/pull/5171) `feat(api):
expose HelmRelease failure state on Application status`, `type feat`
- [#5237](https://github.com/cozystack/cozystack/pull/5237)
`feat(operator): let the platform source trust a private registry CA`,
`type feat`
- [#5106](https://github.com/cozystack/cozystack/pull/5106)
`feat(release): make backports automatic with backport-batch`, `type
feat`
- [#4983](https://github.com/cozystack/cozystack/pull/4983) `feat(api):
add the reservation evaluator for tenant quotas`, `type feat`
- [#5264](https://github.com/cozystack/cozystack/pull/5264)
`feat(release): keep a line's backport record and reports across batch
pull requests`, `type feat`
- [#5260](https://github.com/cozystack/cozystack/pull/5260) `ci(e2e):
skip final cleanup on disposable PR runners`, `type ci`
- [#5046](https://github.com/cozystack/cozystack/pull/5046)
`feat(backups): record the RDB snapshot location and size for Redis
backups`, `type feat`
- [#5214](https://github.com/cozystack/cozystack/pull/5214)
`feat(observability-proxy): serve tenant namespace logs through an
authorizing proxy`, `type feat`
- [#5282](https://github.com/cozystack/cozystack/pull/5282)
`test(release): isolate report deduplication from workflow attempts`,
`type test`
- [#5288](https://github.com/cozystack/cozystack/pull/5288) `ci(e2e):
raise the E2E job limit from 215 to 265 minutes`, `type ci`
- [#5269](https://github.com/cozystack/cozystack/pull/5269)
`feat(release): withhold partial backports and park those that build on
code their line lacks`, `type feat`
- [#4931](https://github.com/cozystack/cozystack/pull/4931)
`feat(backups): add Kubernetes backup strategy for tenant clusters`,
`type feat`
- [#5216](https://github.com/cozystack/cozystack/pull/5216)
`feat(monitoring): stamp application identity on scraped series`, `type
feat`
- [#5266](https://github.com/cozystack/cozystack/pull/5266)
`feat(virtual-machine): let each disk set its own boot order`, `type
feat`
- [#5318](https://github.com/cozystack/cozystack/pull/5318)
`docs(release): add changelog for v1.7.1`, `type docs`
- [#5219](https://github.com/cozystack/cozystack/pull/5219)
`feat(observability-proxy): serve tenant namespace metrics`, `type feat`
- [#5218](https://github.com/cozystack/cozystack/pull/5218)
`feat(dashboard): add logs and metrics views to the console`, `type
feat`
- [#5310](https://github.com/cozystack/cozystack/pull/5310)
`feat(redis): add maxmemory, eviction policy and snapshot toggle`, `type
feat`
- [#5306](https://github.com/cozystack/cozystack/pull/5306) `chore:
clear golangci-lint findings and handle the errors they flagged`, `type
chore`
- [#5252](https://github.com/cozystack/cozystack/pull/5252)
`feat(bucket)!: add publicRead to serve a bucket without credentials`,
`type feat`
- [#5267](https://github.com/cozystack/cozystack/pull/5267)
`feat(observability-proxy): publish the proxy on its own host`, `type
feat`
- [#5220](https://github.com/cozystack/cozystack/pull/5220)
`feat(observability-proxy): serve per-application logs and metrics`,
`type feat`
- [#5287](https://github.com/cozystack/cozystack/pull/5287) `ci: run
only the backport-batch tests for a backport-batch change`, `type ci`
- [#4944](https://github.com/cozystack/cozystack/pull/4944) `docs(vpc):
generate README parameters from values.yaml`, `type docs`
- [#5144](https://github.com/cozystack/cozystack/pull/5144)
`feat(platform): expose Keycloak truststores through platform values`,
`type feat`
- [#4859](https://github.com/cozystack/cozystack/pull/4859)
`docs(agents): add development principles to AGENTS.md and agent docs`,
`type docs`
- [#5277](https://github.com/cozystack/cozystack/pull/5277)
`feat(observability-proxy): include platform exporter series in the
namespace root`, `type feat`
- [#4953](https://github.com/cozystack/cozystack/pull/4953)
`chore(cilium): drop externalIPs.enabled and nodePort.enabled`, `type
chore`
- [#5174](https://github.com/cozystack/cozystack/pull/5174)
`test(tests): select resources in absence-only Helm checks`, `type test`
- [#5188](https://github.com/cozystack/cozystack/pull/5188) `docs: add
CageForge to ADOPTERS.md`, `type docs`
- [#5110](https://github.com/cozystack/cozystack/pull/5110)
`feat(monitoring): take an Alertmanager template file for alert emails`,
`type feat`
- [#5336](https://github.com/cozystack/cozystack/pull/5336)
`docs(agents): reword the section-banner comment rule`, `type docs`
- [#5254](https://github.com/cozystack/cozystack/pull/5254)
`feat(kubernetes): configure per-pool Talos sysctls`, `type feat`
- [#3382](https://github.com/cozystack/cozystack/pull/3382)
`feat(platform): package address-controller and its MetalLB driver`,
`type feat`
- [#2664](https://github.com/cozystack/cozystack/pull/2664)
`feat(rabbitmq): add affinity configuration`, `type feat`
- [#2665](https://github.com/cozystack/cozystack/pull/2665)
`feat(redis): add affinity configuration`, `type feat`
- [#4900](https://github.com/cozystack/cozystack/pull/4900)
`feat(kafka)!: run on Strimzi 1.2.0 and Kafka 4.x`, `type feat`
- [#5334](https://github.com/cozystack/cozystack/pull/5334)
`build(monitoring): respin the Alerta image on a patched base`, `type
build`
- [#4877](https://github.com/cozystack/cozystack/pull/4877)
`chore(goldpinger): bump vendored chart to 1.2.0`, `type chore`
- [#4869](https://github.com/cozystack/cozystack/pull/4869)
`chore(deps): roll up Renovate updates and raise dependencies to latest
stable`, `type chore`
- [#4495](https://github.com/cozystack/cozystack/pull/4495) `docs(api):
clarify health check parsing and evaluation`, `type docs`
- [#5043](https://github.com/cozystack/cozystack/pull/5043)
`feat(build): attach a provenance attestation beside the SBOM`, `type
feat`
- [#5286](https://github.com/cozystack/cozystack/pull/5286)
`feat(dashboard): let a login link pick the Keycloak identity provider`,
`type feat`
- [#5374](https://github.com/cozystack/cozystack/pull/5374)
`chore(keycloak): bump Keycloak server to 26.8.2`, `type chore`
- [#5372](https://github.com/cozystack/cozystack/pull/5372)
`build(kafka-operator): vendor Strimzi 1.3.1`, `type build`
- [#4952](https://github.com/cozystack/cozystack/pull/4952)
`docs(release): make changelog check B find changed image build files`,
`type docs`
- [#5360](https://github.com/cozystack/cozystack/pull/5360) `test(hack):
check hook scripts under files/ for --request-timeout`, `type test`
- [#5362](https://github.com/cozystack/cozystack/pull/5362)
`test(migrations): build each migration test image once per file`, `type
test`
- [#3149](https://github.com/cozystack/cozystack/pull/3149)
`feat(networking): cozyplane eBPF CNI + cozyplane-kpr networking variant
(drops Cilium)`, `type feat`
- [#4902](https://github.com/cozystack/cozystack/pull/4902)
`feat(cluster-api)!: update Cluster API to v1.14.4`, `type feat`
- [#5240](https://github.com/cozystack/cozystack/pull/5240)
`feat(virtual-machine): group a VM's claims for Velero volume group
snapshots`, `type feat`
- [#5376](https://github.com/cozystack/cozystack/pull/5376)
`feat(monitoring, kubernetes): add destinations to the monitoring agents
without replacing the defaults`, `type feat`
- [#5112](https://github.com/cozystack/cozystack/pull/5112)
`feat(platform): make the Keycloak public host configurable`, `type
feat`
- [#5239](https://github.com/cozystack/cozystack/pull/5239)
`feat(linstor, platform): upgrade snapshot-controller to v8.7.0 and
enable VolumeGroupSnapshots`, `type feat`
- [#2622](https://github.com/cozystack/cozystack/pull/2622) `feat(apps):
per-app schedulingClass field for selective workload placement`, `type
feat`
- [#5349](https://github.com/cozystack/cozystack/pull/5349) `feat(api,
kubernetes, virtual-machine): declare tenant quota reservations on
ApplicationDefinitions`, `type feat`
- [#4879](https://github.com/cozystack/cozystack/pull/4879)
`feat(seaweedfs): bump chart to 4.48 and backport Gateway API
HTTPRoutes`, `type feat`
- [#5050](https://github.com/cozystack/cozystack/pull/5050)
`feat(bucket): offer Object Lock without a default retention`, `type
feat`
- [#5404](https://github.com/cozystack/cozystack/pull/5404)
`feat(postgres): add an audit toggle for access and statement logging`,
`type feat`
- [#5411](https://github.com/cozystack/cozystack/pull/5411)
`test(reservation): check shipped consumption declarations on the
rendered charts`, `type test`
- [#4508](https://github.com/cozystack/cozystack/pull/4508) `feat(vpc):
cozyplane variant of the VPC application`, `type feat`
- [#5424](https://github.com/cozystack/cozystack/pull/5424)
`test(kafka): check tenant-visible Strimzi Secrets in the e2e suite`,
`type test`
- [#5425](https://github.com/cozystack/cozystack/pull/5425)
`refactor(computeplane): stop copying pool defaults into the default
md0`, `type refactor`
- [#5428](https://github.com/cozystack/cozystack/pull/5428)
`refactor(backups): stop annotating restored PVCs for CDI claim
adoption`, `type refactor`
- [#5408](https://github.com/cozystack/cozystack/pull/5408)
`refactor(tenant): make gateway a plain bool`, `type refactor`
- [#5285](https://github.com/cozystack/cozystack/pull/5285)
`chore(deps): update module golang.org/x/crypto to v0.59.0 [security]`,
`type chore`
- [#5162](https://github.com/cozystack/cozystack/pull/5162)
`docs(release): add changelog for v1.7.0`, `type docs`
- [#5238](https://github.com/cozystack/cozystack/pull/5238)
`chore(deps): update module github.com/klauspost/compress to v1.20.2
[security]`, `type chore`
- [#4822](https://github.com/cozystack/cozystack/pull/4822)
`chore(deps): update module golang.org/x/net to v0.62.0 [security]`,
`type chore`

</details>

<details><summary>Rule 3, a breaking change</summary>

- [#4790](https://github.com/cozystack/cozystack/pull/4790)
`fix(platform)!: refuse a networking variant change on a live cluster`,
`! in the title`
- [#4796](https://github.com/cozystack/cozystack/pull/4796)
`fix(vm-disk)!: refuse a golden-image clone CDI would leave unbound`, `!
in the title`
- [#5085](https://github.com/cozystack/cozystack/pull/5085)
`fix(kubernetes, opensearch, foundationdb)!: restrict managed
application images`, `! in the title`
- [#4818](https://github.com/cozystack/cozystack/pull/4818)
`fix(keycloak)!: make the KMS proxy keep its keys across restarts`, `!
in the title`
- [#5167](https://github.com/cozystack/cozystack/pull/5167)
`fix(monitoring-agents)!: isolate merged log payload under
log_processed`, `! in the title`
- [#5009](https://github.com/cozystack/cozystack/pull/5009)
`fix(cozy-lib)!: refuse memory below 1Mi instead of rendering a few
bytes`, `! in the title`
- [#5191](https://github.com/cozystack/cozystack/pull/5191)
`fix(kubernetes)!: remove the talos block and other leftovers of the
worker pool split`, `! in the title`
- [#4802](https://github.com/cozystack/cozystack/pull/4802)
`fix(vm-disk, kubernetes-nodes)!: refuse golden images whose import
keeps failing`, `! in the title`

</details>

<details><summary>Rule 4, touches platform migrations, `targetVersion`
or a CRD, or makes a sizeable API change</summary>

- [#4941](https://github.com/cozystack/cozystack/pull/4941)
`fix(backups): keep the backupstrategy-controller Helm release under the
Secret size limit`, `a sizeable API change (breaking-change: [v1alpha1]
spec.spec.template: field "metadata" was removed, and 5 more), a CRD`
- [#5223](https://github.com/cozystack/cozystack/pull/5223)
`fix(backups): report sizeBytes for MariaDB and CNPG backup artifacts`,
`a CRD`
- [#5166](https://github.com/cozystack/cozystack/pull/5166)
`fix(linstor): update piraeus-operator to v2.12.1`, `a CRD`
- [#5430](https://github.com/cozystack/cozystack/pull/5430)
`fix(linstor): gate group snapshots on the v1 group snapshot API`,
`platform migrations`

</details>

<details><summary>Dropped from `release-1.7` by a maintainer</summary>

- [#5309](https://github.com/cozystack/cozystack/pull/5309)
`fix(linstor): restore snapshots on a schedulable node`, `dropped on
#5311: builds on linstor-csi v1.13.2 bump from #5166 which rule 4 keeps
off this line, its patch 003 does not apply to v1.11.2`

</details>

```backport-batch
{"version":3,"line":"release-1.7","built":{"main":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","line":"fad3e6e2110c37e0b060dd8d983b06278e07a5f7","newer":"","policy":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","batch":"ec8da60ac5c0d010f966b808f572d85e4ed4abac","tool":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","run":"https://github.com/cozystack/cozystack/actions/runs/45851301683","at":"2026-11-26T15:42:14Z","options":{"noWorkflowFiles":true,"mode":"new"}},"report":"e5a6b1b5fadbb2a39f0e1168f0a8796a07a4a8b6ddbf8b767d5b37f3aac27d44","closing":null,"deferred":[],"dropped":[{"original":5309,"merge":"5dbfa1cfaddd9eaf30bf4b1eeca830cd9b242a0e","reason":"builds on linstor-csi v1.13.2 bump from #5166 which rule 4 keeps off this line, its patch 003 does not apply to v1.11.2","on":5311,"date":"2026-11-25"}],"stale":[],"parked":[{"original":5049,"merge":"2b1b7a4cc29e68e7efda016d40f05168dc36d19b","kind":"dependency","needs":[4802,5191,5393],"announced":true},{"original":5221,"merge":"e978ed7f2fcad22b80cbf077351cde494c9c4b8c","kind":"dependency","needs":[5223],"announced":true},{"original":5224,"merge":"8f0082a1c81fd27dcab7e558d292c251451001ba","kind":"dependency","needs":[5227,5232],"announced":true},{"original":5227,"merge":"526f08e17d2d499941e36f5f8451be9bcf3f4440","kind":"dependency","needs":[5223],"announced":true},{"original":5229,"merge":"2cf80c02a4c2a38b25faed766fd7f5caf2a214cd","kind":"dependency","needs":[5232],"announced":true},{"original":5232,"merge":"3badbdef74f8295b6d556063a0abb69611475f10","kind":"dependency","needs":[5034],"announced":true},{"original":5294,"merge":"4f813fb6b2566bc508944047b65f4939861825d5","kind":"dependency","needs":[5221],"announced":true},{"original":5295,"merge":"2495ebfaa02c505be1844311d09f9b2fce728cc2","kind":"dependency","needs":[5221],"announced":true},{"original":5320,"merge":"ef32ff8d719dc8882776a26f3a9050163d6c79d0","kind":"dependency","needs":[5221],"announced":true},{"original":5344,"merge":"e11ca91d8110a9e979344ef3053afc2e1321b381","kind":"dependency","needs":[5227],"announced":true},{"original":5375,"merge":"04fb5215a85860ff8c4a66c4b58d113a2e85076b","kind":"dependency","needs":[5167],"announced":true},{"original":5398,"merge":"1ab20ea96e64d48d5c9a160ee3f40093238d7dd5","kind":"dependency","needs":[4902],"announced":true},{"original":5415,"merge":"fc5ece0a289218cdb32a161780872dce0729fdd9","kind":"dependency","needs":[5224],"announced":true},{"original":5426,"merge":"0d75b0e3526489d27612f6fc5a6ad3848d96e217","kind":"dependency","needs":[5050,5252],"announced":true},{"original":5427,"merge":"7067313c95f6d308b310606afb96155e25b41d10","kind":"dependency","needs":[5376],"announced":true}]}
```

```backport-batch-report
{"format":2,"id":"e5a6b1b5fadbb2a39f0e1168f0a8796a07a4a8b6ddbf8b767d5b37f3aac27d44","line":"release-1.7","built":{"main":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","line":"fad3e6e2110c37e0b060dd8d983b06278e07a5f7","newer":"","policy":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","batch":"ec8da60ac5c0d010f966b808f572d85e4ed4abac","tool":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","run":"https://github.com/cozystack/cozystack/actions/runs/45851301683","at":"2026-11-26T15:42:14Z","options":{"noWorkflowFiles":true,"mode":"new"}},"overrides":{"backport/include":[4985,4993,5005,5025,5352,5407],"backport/skip":[4817,4921,4973,4989,4990,5083,5156,5163,5180,5186,5337,5393]},"primary":{"picked":[5236],"missing":[],"deferred":[],"parked":[{"original":5049,"merge":"2b1b7a4cc29e68e7efda016d40f05168dc36d19b","kind":"dependency","needs":[4802,5191,5393]},{"original":5221,"merge":"e978ed7f2fcad22b80cbf077351cde494c9c4b8c","kind":"dependency","needs":[5223]},{"original":5224,"merge":"8f0082a1c81fd27dcab7e558d292c251451001ba","kind":"dependency","needs":[5227,5232]},{"original":5227,"merge":"526f08e17d2d499941e36f5f8451be9bcf3f4440","kind":"dependency","needs":[5223]},{"original":5229,"merge":"2cf80c02a4c2a38b25faed766fd7f5caf2a214cd","kind":"dependency","needs":[5232]},{"original":5232,"merge":"3badbdef74f8295b6d556063a0abb69611475f10","kind":"dependency","needs":[5034]},{"original":5294,"merge":"4f813fb6b2566bc508944047b65f4939861825d5","kind":"dependency","needs":[5221]},{"original":5295,"merge":"2495ebfaa02c505be1844311d09f9b2fce728cc2","kind":"dependency","needs":[5221]},{"original":5320,"merge":"ef32ff8d719dc8882776a26f3a9050163d6c79d0","kind":"dependency","needs":[5221]},{"original":5344,"merge":"e11ca91d8110a9e979344ef3053afc2e1321b381","kind":"dependency","needs":[5227]},{"original":5375,"merge":"04fb5215a85860ff8c4a66c4b58d113a2e85076b","kind":"dependency","needs":[5167]},{"original":5398,"merge":"1ab20ea96e64d48d5c9a160ee3f40093238d7dd5","kind":"dependency","needs":[4902]},{"original":5415,"merge":"fc5ece0a289218cdb32a161780872dce0729fdd9","kind":"dependency","needs":[5224]},{"original":5426,"merge":"0d75b0e3526489d27612f6fc5a6ad3848d96e217","kind":"dependency","needs":[5050,5252]},{"original":5427,"merge":"7067313c95f6d308b310606afb96155e25b41d10","kind":"dependency","needs":[5376]}],"skipped":{"on-line":[3427,4004,4167,4234,4293,4756,4791,4797,4815,4819,4830,4865,4866,4867,4888,4889,4893,4896,4914,4915,4917,4920,4929,4939,4945,4946,4948,4954,4955,4960,4963,4965,4970,4971,4972,4974,4984,4985,4986,4993,5005,5011,5024,5025,5027,5045,5071,5082,5086,5087,5088,5091,5094,5096,5098,5100,5102,5114,5119,5123,5124,5133,5134,5142,5148,5151,5152,5153,5155,5160,5175,5183,5184,5189,5190,5207,5208,5210,5211,5212,5213,5226,5228,5230,5242,5249,5250,5265,5270,5280,5284,5308,5326,5329,5331,5340,5348,5352,5354,5356,5357,5358,5364,5373,5377,5392,5399,5403,5405,5407,5436,5443],"before-start":[],"type":[2622,2664,2665,3149,3382,3440,3777,3780,4495,4508,4822,4845,4859,4860,4861,4869,4877,4879,4881,4898,4899,4900,4902,4931,4936,4940,4944,4952,4953,4959,4969,4983,4997,5000,5034,5039,5043,5046,5050,5090,5106,5110,5112,5144,5162,5168,5171,5174,5188,5214,5215,5216,5217,5218,5219,5220,5237,5238,5239,5240,5252,5254,5260,5264,5266,5267,5269,5277,5282,5285,5286,5287,5288,5306,5310,5318,5334,5336,5349,5360,5362,5372,5374,5376,5404,5408,5411,5424,5425,5428],"breaking":[4790,4796,4802,4818,5009,5085,5167,5191],"touches":[4941,5166,5223,5430],"newer":[],"skip-label":[4817,4921,4973,4989,4990,5083,5156,5163,5180,5186,5337,5393],"dropped":[5309]}},"overlays":{"dropped":[{"original":5309,"merge":"5dbfa1cfaddd9eaf30bf4b1eeca830cd9b242a0e","reason":"builds on linstor-csi v1.13.2 bump from #5166 which rule 4 keeps off this line, its patch 003 does not apply to v1.11.2","on":5311,"date":"2026-11-25"}],"stale":[],"changed":[]},"diag":{},"other":[]}
```

### Screenshots

See the original pull requests.

### Downstream repositories

- [ ] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(kubernetes): the kubevirt-csi ClusterRole and ClusterRoleBinding are now named after the tenant namespace and the cluster, so deleting a cluster no longer removes PersistentVolume access, and with it volume expansion, from a cluster with the same name in another tenant.
```
v1.7.2-rc.2
2026-11-26 20:51:04 +05:00
cozystack-ci[bot] ec8da60ac5 fix(kubernetes): include the namespace in the kubevirt-csi ClusterRole name (#5236)
## What this PR does

The ClusterRole that lets the kubevirt-csi controller get
PersistentVolumes in the management cluster, and its ClusterRoleBinding,
are named `<release>-kcsi` and `<release>-kcsi-binding`. They are
cluster-scoped and the release is named after the cluster, so two
tenants that each have a Kubernetes cluster with the same name render
the same pair.

I hit this on a 1.6 cluster. A user moved from one tenant to another and
created a cluster named `test` in the new tenant while the old tenant
still had its own `test`:

- installing the new release did not fail: the audit log shows
helm-controller getting and patching the existing ClusterRoleBinding,
and the release reported `Install complete`;
- when the old tenant was deleted, its uninstall deleted
`kubernetes-test-kcsi` and `kubernetes-test-kcsi-binding`
(helm-controller's `delete` on both is in the audit log);
- from then on the new cluster's CSI controller failed every
`ControllerExpandVolume` with `error fetching pv ... persistentvolumes
"pvc-..." is forbidden: User
"system:serviceaccount:tenant-...:kubernetes-test-kcsi" cannot get
resource "persistentvolumes" ... at the cluster scope`, and PVC resizes
stayed in `Resizing`;
- the next upgrade of the new release recreated the pair, and resizing
worked again.

Now both objects are named `<namespace>-<release>-kcsi` and
`<namespace>-<release>-kcsi-binding`, the same way the kccm ClusterRole
and binding already are. The rules and the subject are unchanged. On
upgrade Helm creates the new pair before it deletes the old one, so the
driver doesn't lose access in between.

`tests/csi_rbac_test.yaml` checks the new names, the PersistentVolume
rule, the binding's roleRef and subject, and that a release with the
same name in another namespace gets its own pair. Without the template
change three of the four cases fail; the whole chart suite passes (370
tests).

The same naming is in release-1.6, so this needs a backport.

### Screenshots

Not a UI change.

### Downstream repositories

I walked the trigger map against the diff (one chart template and its
unit tests): no package added or removed, no values, schema or default
changed, no output Secret or Service renamed, nothing under `hack/`
touched.

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(kubernetes): the kubevirt-csi ClusterRole and ClusterRoleBinding are now named after the tenant namespace and the cluster, so deleting a cluster no longer removes PersistentVolume access, and with it volume expansion, from a cluster with the same name in another tenant.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* CSI access-control resources in non-Proxmox deployments now include
the release namespace in their names, allowing same-named releases in
different namespaces to have separate roles and bindings. Each binding
remains associated with its corresponding role and service account. The
permissions granted to the CSI service account are unchanged.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: a2b341e31b
2026-11-26 15:42:14 +00:00
Yan Bondarenko d803d8d516 fix(kubernetes): include the namespace in the kubevirt-csi ClusterRole name
The ClusterRole that lets the kubevirt-csi controller get
PersistentVolumes, and its ClusterRoleBinding, were named after the
release only. They are cluster-scoped, and a release is named after the
cluster, so two tenants with a cluster of the same name render the same
pair. Installing the second one does not fail: the existing objects are
patched and adopted. Deleting either cluster then deletes the pair, and
the other cluster's CSI controller fails every ControllerExpandVolume
with "persistentvolumes ... is forbidden" until its own release is
upgraded again, so a PVC resize stays in Resizing.

Name both objects after the namespace and the release, the way the
kccm ClusterRole already is. On upgrade Helm creates the new pair before
it deletes the old one, so the driver keeps its access.

Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com>
Assisted-by: LLM
(cherry picked from commit aaedcef7d9)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-26 15:42:14 +00:00
Aleksei Sviridkin fad3e6e211 revert(postgres): take the standard-trixie image move out of release-1.7 (#5461)
## What this PR does

Reverts #5405 on release-1.7. Upgrade test from v1.7.1 to v1.7.2-rc.1
found blockers in it (#5459), so v1.7.2 ships tenant postgres same as
v1.7.1. Fixes go to main first, and the change comes back to 1.7
together with them in a later patch.

It is `git revert -m 1` of the unit #5311 carried for #5405 (e4b2e9937).
After it `packages/apps/postgres` and `hack/e2e-chainsaw/postgres` are
same as right before that unit (v1.7.1 plus #4984, #5119 and #5280),
nothing merged after it on the line touches these paths. System
PostgreSQL bump from #5403 stays.

backport-batch still counts #5405 as carried by its picks in line
history, so next batch won't pick it again.

CVE-2026-116331 stays open for tenant postgres on 1.7 until then.
CloudNativePG has fixed minors (18.7, 17.12, 16.16, 15.20, 14.25) only
as bookworm and trixie images, there is no bare (bullseye) tag for them,
so the fix needs the image move. System PostgreSQL from #5403 is on
17.12-standard-trixie and not affected by this revert.

Only v1.7.2-rc.1 installs run the trixie images, no stable 1.7 release
had #5405. Such cluster moved to rc.2 or later 1.7.x goes back to
bullseye images without the collation rebuild, so text indexes on non-C
collation need a REINDEX after it. Also postgis extension updated to
3.7.0 on rc.1 won't load with the 3.6.1 image.

### Screenshots

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
NONE
```
2026-11-26 18:20:39 +03:00
Myasnikov Daniil 643ee1e7af revert(postgres): take the standard-trixie image move out of release-1.7
The upgrade test from v1.7.1 to v1.7.2-rc.1 on a live cluster found
blockers in this change, so v1.7.2 ships tenant PostgreSQL as v1.7.1
had it, and the change comes back to this line once the fixes are on
main.

This reverts the unit e4b2e99378 that the 2026-11-13 backport batch
carried for #5405 (main 30ce2a3cb1).

CVE-2026-116331 stays open for tenant PostgreSQL on this line until
then: CloudNativePG publishes the fixed minors (18.7, 17.12, 16.16,
15.20, 14.25) only as bookworm and trixie images, with no bare
(bullseye) tag, so the fix needs the image move this reverts.

A cluster that ran v1.7.2-rc.1 is on the standard-trixie images
already. Moving it to this revision puts it back on the bullseye
images without the collation rebuild, so its text indexes on a non-C
collation need a REINDEX afterwards, and a database whose postgis
extension was updated to 3.7.0 does not load with the 3.6.1 image.
No stable 1.7 release carried #5405.

The picks of #5405 stay in this line's history, and backport-batch
counts an original as carried by those picks, so the next batch does not
take #5405 again.

Refs: #5459
Assisted-By: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-26 15:06:20 +00:00
myasnikovdaniil 6963ec526d fix(backport): batch for release-1.7, 2026-11-13 (#5311)
## What this PR does

Backports to `release-1.7` from `main`, picked by the rules of the
[backport
policy](https://github.com/cozystack/cozystack/blob/main/docs/release/backports.md)
in merge order. A merged pull request comes as its own commits, picked
with `git cherry-pick -x` so each keeps its author, message and
sign-offs, and a merge commit that carries the original's merge message
with a `Backported-from:` trailer naming it; a squash-merged one comes
as one pick. `backport-batch verify` checks that shape. A pick listed as
changed differs from the commit it came from, and its release note waits
under Check these notes. A conflict or a failing check here is a
[backport
task](https://github.com/cozystack/cozystack/blob/main/docs/release/backport-tasks/README.md).

- [#5025](https://github.com/cozystack/cozystack/pull/5025)
`test(harbor): pin the resources of the nginx proxy and the portal`, 2
commits
- [#5226](https://github.com/cozystack/cozystack/pull/5226)
`fix(platform): leave tenant-root's ingress empty when the root tenant
has none`, 5 commits
- [#5228](https://github.com/cozystack/cozystack/pull/5228)
`fix(seaweedfs): enforce S3 bucket lifecycle rules`, 14 commits
- [#5152](https://github.com/cozystack/cozystack/pull/5152)
`fix(monitoring-agents): let the release uninstall when the
VictoriaMetrics operator is gone first`, 1 commit
- [#5229](https://github.com/cozystack/cozystack/pull/5229)
`fix(clickhouse): keep failed backup attempts out of the bucket`, 11
commits, changed in the pick: `8b7652953983`, `1e5e3a45df64`,
`817b59a45a61`, `c90765771efb`
- [#5270](https://github.com/cozystack/cozystack/pull/5270)
`fix(vm-instance): keep an external PortList VM valid with no ports`, 1
commit
- [#5308](https://github.com/cozystack/cozystack/pull/5308)
`fix(seaweedfs): stop the master crashing on the crowded volume map`, 1
commit
- [#5280](https://github.com/cozystack/cozystack/pull/5280)
`fix(backups): give the barman-cloud sidecar an explicit CPU limit`, 1
commit
- [#5100](https://github.com/cozystack/cozystack/pull/5100) `fix(etcd):
size the defrag job for the client it runs`, 1 commit
- [#5094](https://github.com/cozystack/cozystack/pull/5094)
`fix(monitoring): select the vmalert Service the operator creates`, 1
commit
- [#5250](https://github.com/cozystack/cozystack/pull/5250)
`fix(ingress-nginx): raise client keepalive_time above the 1h default`,
1 commit
- [#4986](https://github.com/cozystack/cozystack/pull/4986) `fix(etcd):
require an even spread of members over nodes by default`, 2 commits
- [#5249](https://github.com/cozystack/cozystack/pull/5249)
`fix(kubernetes): detach volumes when the infra PVC is missing`, 2
commits
- [#4960](https://github.com/cozystack/cozystack/pull/4960)
`fix(vm-disk): refuse a disk smaller than the golden image it clones`, 1
commit
- [#5102](https://github.com/cozystack/cozystack/pull/5102)
`fix(monitoring-agents): make a silent Watchdog an alarm in Alerta`, 1
commit
- [#4948](https://github.com/cozystack/cozystack/pull/4948)
`fix(monitoring): route InfoInhibitor to the blackhole receiver`, 2
commits
- [#5098](https://github.com/cozystack/cozystack/pull/5098)
`fix(vertical-pod-autoscaler): run two admission controllers spread over
nodes`, 2 commits
- [#5119](https://github.com/cozystack/cozystack/pull/5119)
`fix(postgres): accept a standard five-field backup schedule`, 2
commits, changed in the pick: `ca1b59243e35`
- [#4993](https://github.com/cozystack/cozystack/pull/4993)
`feat(monitoring): alert when pods of one workload share a node`, 1
commit
- [#4234](https://github.com/cozystack/cozystack/pull/4234)
`fix(seaweedfs, cozy-lib): cap the Go heap so components survive their
memory limit`, 2 commits
- [#5096](https://github.com/cozystack/cozystack/pull/5096)
`fix(workloadmonitor): report a bucket's workloads not ready until its
claim is provisioned`, 1 commit
- [#5114](https://github.com/cozystack/cozystack/pull/5114)
`fix(kubevirt): let tenant admins upload a VMDisk image with virtctl`, 1
commit
- [#4945](https://github.com/cozystack/cozystack/pull/4945) `fix(apps):
keep Job and CronJob names within the Kubernetes limits`, 1 commit
- [#4963](https://github.com/cozystack/cozystack/pull/4963)
`fix(piraeus-operator): keep the LINSTOR error-report alerts quiet when
the controller pod moves`, 1 commit
- [#4946](https://github.com/cozystack/cozystack/pull/4946)
`fix(keycloak, foundationdb): apply operator CRD updates on upgrade`, 2
commits
- [#4965](https://github.com/cozystack/cozystack/pull/4965)
`fix(tcp-balancer): render the kubernetes and talos Service ports only
with kubernetesAndTalos`, 1 commit
- [#5011](https://github.com/cozystack/cozystack/pull/5011)
`fix(cozystack-basics): refuse a direct delete of a tenant namespace`, 1
commit
- [#5242](https://github.com/cozystack/cozystack/pull/5242) `fix(vpa):
shorten the admission webhook timeout to 5s`, 2 commits
- [#5329](https://github.com/cozystack/cozystack/pull/5329) `fix(ci):
take main's ref for a bare first-party image ref in a drifted file`, 5
commits
- [#5265](https://github.com/cozystack/cozystack/pull/5265)
`fix(controller, platform): give unbounded pool members the root's
LimitRange`, 3 commits
- [#5153](https://github.com/cozystack/cozystack/pull/5153)
`fix(kubernetes): bring up a replacement worker before draining the old
one`, 7 commits, changed as a whole: some of its change is not in the
picks
- [#5175](https://github.com/cozystack/cozystack/pull/5175) `fix(tests):
reject matcher failures in negative file assertions`, 3 commits
- [#5183](https://github.com/cozystack/cozystack/pull/5183) `fix(etcd):
scope tenant alerts to their scrape job`, 1 commit
- [#5189](https://github.com/cozystack/cozystack/pull/5189)
`fix(cozy-lib): render tenant hugepages quota only as requests`, 1
commit
- [#4893](https://github.com/cozystack/cozystack/pull/4893)
`fix(seaweedfs): keep Object Lock working for COSI credentials on
SeaweedFS 4.48`, 2 commits
- [#4915](https://github.com/cozystack/cozystack/pull/4915)
`fix(seaweedfs): remove identities left behind by deleted
BucketAccesses`, 1 commit
- [#4896](https://github.com/cozystack/cozystack/pull/4896)
`fix(kamaji): drop kubelet config fields older tenants do not know`, 1
commit
- [#5364](https://github.com/cozystack/cozystack/pull/5364)
`fix(backups): delete the Velero backup of a failed BackupJob`, 4
commits
- [#5373](https://github.com/cozystack/cozystack/pull/5373)
`fix(opensearch): disable the Base64 intrinsics hit by CVE-2026-114938`,
1 commit
- [#4920](https://github.com/cozystack/cozystack/pull/4920)
`fix(lineage-webhook): keep an explicit tenantresource false`, 3 commits
- [#5377](https://github.com/cozystack/cozystack/pull/5377)
`fix(ingress-nginx): pick up the nginx rebuild with the HTTP/2 CVE
fixes`, 1 commit
- [#5340](https://github.com/cozystack/cozystack/pull/5340)
`fix(qdrant): scrape TLS metrics over HTTPS`, 1 commit
- [#5331](https://github.com/cozystack/cozystack/pull/5331)
`fix(kubernetes): remove cilium dependency from coredns HelmRelease`, 1
commit
- [#5354](https://github.com/cozystack/cozystack/pull/5354)
`fix(platform): honour a bool false in ingress-enabled and
monitoring-enabled`, 1 commit
- [#5045](https://github.com/cozystack/cozystack/pull/5045) `fix(talos):
bump Talos to v1.14.4 (CVE-2026-99999)`, 1 commit, changed in the pick:
`482e3e85f884`
- [#5134](https://github.com/cozystack/cozystack/pull/5134)
`fix(securitygroups): reject port ranges and malformed FQDNs on the
SecurityGroup path`, 2 commits
- [#5352](https://github.com/cozystack/cozystack/pull/5352)
`docs(gateway): stop saying the route-hostname policy admits
hostname-less routes`, 1 commit
- [#4984](https://github.com/cozystack/cozystack/pull/4984)
`fix(postgres): keep users.app's password across pod restarts`, 1 commit
- [#5356](https://github.com/cozystack/cozystack/pull/5356)
`fix(seaweedfs): point the Lance catalog consumers at the renamed s3
Service`, 1 commit
- [#5160](https://github.com/cozystack/cozystack/pull/5160)
`fix(linstor): roll affinity controller and scheduler on client cert
rotation`, 1 commit
- [#5357](https://github.com/cozystack/cozystack/pull/5357) `fix(api):
skip an invalid ApplicationDefinition instead of failing startup`, 1
commit
- [#5148](https://github.com/cozystack/cozystack/pull/5148)
`fix(gateway): skip a child apex the wildcard certificate already
covers`, 1 commit
- [#5358](https://github.com/cozystack/cozystack/pull/5358)
`fix(linstor): run the NFS server wait init container on the platform
CSI image`, 1 commit
- [#5326](https://github.com/cozystack/cozystack/pull/5326) `fix(api):
make monitor watch versions usable as delete preconditions`, 4 commits
- [#4167](https://github.com/cozystack/cozystack/pull/4167)
`fix(gateway): copy allowed routes for the edge listener`, 1 commit
- [#5348](https://github.com/cozystack/cozystack/pull/5348) `fix(api):
validate workload memory before storing an application`, 1 commit
- [#5392](https://github.com/cozystack/cozystack/pull/5392)
`fix(harbor): meter the registry bucket under the registry
WorkloadMonitor`, 1 commit
- [#5403](https://github.com/cozystack/cozystack/pull/5403)
`fix(platform): bump system PostgreSQL to 17.12`, 1 commit
- [#4954](https://github.com/cozystack/cozystack/pull/4954)
`fix(tenant): render the LimitRange only under a compute quota`, 2
commits
- [#4797](https://github.com/cozystack/cozystack/pull/4797)
`fix(cozystack-basics): make the tenant super-admin VirtualMachine grant
read-only`, 1 commit
- [#5407](https://github.com/cozystack/cozystack/pull/5407)
`fix(ingress-nginx): turn off TLS session tickets for CVE-2026-97629`, 1
commit
- [#5405](https://github.com/cozystack/cozystack/pull/5405)
`fix(postgres): move tenant PostgreSQL to patched standard-trixie
images`, 2 commits
- [#5210](https://github.com/cozystack/cozystack/pull/5210)
`fix(platform): do not gate cert-manager-issuers on ClusterIssuer
readiness`, 1 commit
- [#5399](https://github.com/cozystack/cozystack/pull/5399)
`fix(kubernetes-nodes): surge one worker at a time during a pool
rollout`, 1 commit
- [#5443](https://github.com/cozystack/cozystack/pull/5443)
`fix(ingress): restore visitor IPs through SSL passthrough`, 2 commits
- [#5436](https://github.com/cozystack/cozystack/pull/5436)
`fix(ingress-nginx): pick up the nginx rebuild with the remaining CVE
fixes`, 1 commit

### Check these notes

These picks differ from their originals, so their release notes are left
out of the release-note block until someone checks that each still holds
for this line. Each comes with what to compare: every pick that differs
against the commit it came from, and the original's change against the
unit's.

[#5229](https://github.com/cozystack/cozystack/pull/5229)
`fix(clickhouse): keep failed backup attempts out of the bucket`,
carried by `c24bb4c16faf`:

```text
fix(clickhouse): failed ClickHouse backup attempts are no longer uploaded to the bucket when the backup sidecar restarts, local backups no longer accumulate on the data volume, the backup strategy waits for the sidecar to be idle instead of failing with HTTP 423, a retried ClickHouse restore takes over the restore that is still running instead of starting it a second time, and a retried ClickHouse backup takes over or reuses its own upload instead of starting a new one. Every ClickHouse backup run now writes an archive of its own, even when two runs start in the same second, under a name no longer than before. ClickHouse pods with backups enabled are restarted once on upgrade.
```

- `git range-diff --creation-factor=999 a25db5aeb646^! 8b7652953983^!`
- `git range-diff --creation-factor=999 d0a73302d9a7^! 1e5e3a45df64^!`
- `git range-diff --creation-factor=999 993b79bb370c^! 817b59a45a61^!`
- `git range-diff --creation-factor=999 ae1e1830ce69^! c90765771efb^!`
- `git diff 2cf80c02a4c2^1 2cf80c02a4c2`
- `git diff c24bb4c16faf^1 c24bb4c16faf`

[#5119](https://github.com/cozystack/cozystack/pull/5119)
`fix(postgres): accept a standard five-field backup schedule`, carried
by `44756606101d`:

```text
fix(postgres): backup.schedule accepts a standard five-field cron such as 0 2 * * *, and the chart prepends a 0 seconds field before handing it to CloudNativePG, which reads the first field as seconds. Six-field values and descriptors render as before, and any other field count fails the render. A release that already sets five fields gets the standard meaning on upgrade, so 0 2 * * * moves from hourly to daily.
```

- `git range-diff --creation-factor=999 982db83dd22d^! ca1b59243e35^!`
- `git diff 5fe356f57e8a^1 5fe356f57e8a`
- `git diff 44756606101d^1 44756606101d`

[#5153](https://github.com/cozystack/cozystack/pull/5153)
`fix(kubernetes): bring up a replacement worker before draining the old
one`, carried by `50bc327df8d7`:

```text
fix(kubernetes): worker pool rollouts (instance type, image or version changes) now bring each replacement node up before draining the old one, instead of removing a node first. A rollout needs room for one extra VM. Pools with GPUs keep the previous behaviour.
```

- `git diff da17254bbc2c^1 da17254bbc2c`
- `git diff 50bc327df8d7^1 50bc327df8d7`

[#5045](https://github.com/cozystack/cozystack/pull/5045) `fix(talos):
bump Talos to v1.14.4 (CVE-2026-99999)`, carried by `3ce6c4badd69`:

```text
fix(talos): Bump Talos to v1.14.4 (Linux 6.18.57) to fix CVE-2026-99999 (PwnEscape), a guest-to-host escape through virtio_net_hdr checksum offload that any KubeVirt VM can reach on the host node. Upgrade and reboot host nodes; the fix applies only to the kernel that is running.
```

- `git range-diff --creation-factor=999 d28316671c24^! 482e3e85f884^!`
- `git diff 382169be52d1^1 382169be52d1`
- `git diff 3ce6c4badd69^1 3ce6c4badd69`

### Parked

These cannot land on `release-1.7` whole, so the batch does not pick
them: each would leave part of it without effect there, or builds on a
change that never reaches the line. A maintainer ports what applies as a
pull request of its own, or drops the original with `backport-batch run
--drop`; `backport/include` does not lift a park.

- [#5232](https://github.com/cozystack/cozystack/pull/5232)
`fix(clickhouse): let a running backup sidecar pick up system-bucket
credentials`: builds on
[#5034](https://github.com/cozystack/cozystack/pull/5034), which never
reaches this line
- [#5221](https://github.com/cozystack/cozystack/pull/5221)
`fix(postgres): stop backup jobs from fighting over the WAL archive
destination`: builds on
[#5223](https://github.com/cozystack/cozystack/pull/5223), which never
reaches this line
- [#5227](https://github.com/cozystack/cozystack/pull/5227)
`fix(mariadb): restore the dump a Backup was taken as`: builds on
[#5223](https://github.com/cozystack/cozystack/pull/5223), which never
reaches this line
- [#5294](https://github.com/cozystack/cozystack/pull/5294)
`fix(postgres): hold the WAL archive destination for backups no job
tracks`: builds on
[#5221](https://github.com/cozystack/cozystack/pull/5221), which never
reaches this line
- [#5295](https://github.com/cozystack/cozystack/pull/5295)
`fix(postgres): restore from an archive with the access it was written
with`: builds on
[#5221](https://github.com/cozystack/cozystack/pull/5221), which never
reaches this line
- [#5344](https://github.com/cozystack/cozystack/pull/5344)
`fix(backups): stop leaking MariaDB dumps of stuck runs and torn-down
namespaces`: builds on
[#5227](https://github.com/cozystack/cozystack/pull/5227), which never
reaches this line
- [#5375](https://github.com/cozystack/cozystack/pull/5375)
`fix(kubernetes): apply addons.monitoringAgents.valuesOverride`: builds
on [#5167](https://github.com/cozystack/cozystack/pull/5167), which
never reaches this line
- [#5224](https://github.com/cozystack/cozystack/pull/5224)
`fix(clickhouse): delete the archive when its Backup is deleted`: builds
on [#5227](https://github.com/cozystack/cozystack/pull/5227),
[#5232](https://github.com/cozystack/cozystack/pull/5232), which never
reaches this line
- [#5398](https://github.com/cozystack/cozystack/pull/5398)
`fix(cluster-api): name the kubeconfig the upgrade hook runs with`:
builds on [#4902](https://github.com/cozystack/cozystack/pull/4902),
which never reaches this line
- [#5415](https://github.com/cozystack/cozystack/pull/5415)
`fix(clickhouse): keep a quota-held archive delete and count a failed
one once`: builds on
[#5224](https://github.com/cozystack/cozystack/pull/5224), which never
reaches this line
- [#5049](https://github.com/cozystack/cozystack/pull/5049)
`fix(kubernetes): bump tenant worker Talos to v1.13.12
(CVE-2026-99999)`: builds on
[#4802](https://github.com/cozystack/cozystack/pull/4802),
[#5191](https://github.com/cozystack/cozystack/pull/5191),
[#5393](https://github.com/cozystack/cozystack/pull/5393), which never
reaches this line
- [#5426](https://github.com/cozystack/cozystack/pull/5426)
`fix(seaweedfs): stop reserving storage pool name suffixes`: builds on
[#5050](https://github.com/cozystack/cozystack/pull/5050),
[#5252](https://github.com/cozystack/cozystack/pull/5252), which never
reaches this line
- [#5427](https://github.com/cozystack/cozystack/pull/5427)
`fix(kubernetes): stop refusing extraOutputs hooks monitoring-agents
accepts`: builds on
[#5376](https://github.com/cozystack/cozystack/pull/5376), which never
reaches this line

### Maintainer overrides

- [#5025](https://github.com/cozystack/cozystack/pull/5025)
`test(harbor): pin the resources of the nginx proxy and the portal`:
`backport/include`, on this branch
- [#4985](https://github.com/cozystack/cozystack/pull/4985) `fix(etcd):
stop counting canceled watch streams as failed gRPC requests`:
`backport/include`, skipped by rule 1, `its 1 commit picked, the last in
38e408917936`
- [#5005](https://github.com/cozystack/cozystack/pull/5005)
`fix(tcp-balancer): cap HAProxy fds and threads by the pod's own
limits`: `backport/include`, skipped by rule 1, `its 1 commit picked,
the last in 7a3d0b0a5559`
- [#5083](https://github.com/cozystack/cozystack/pull/5083)
`fix(workloadmonitor): stop doubling the bucket- prefix in bucket
Workload names`: `backport/skip`, left out
- [#4973](https://github.com/cozystack/cozystack/pull/4973)
`fix(kubernetes-nodes): refuse a partial resources spec on every pool`:
`backport/skip`, left out
- [#5180](https://github.com/cozystack/cozystack/pull/5180) `fix(tests):
keep two unit tests green after the release image restamp`:
`backport/skip`, left out
- [#4993](https://github.com/cozystack/cozystack/pull/4993)
`feat(monitoring): alert when pods of one workload share a node`:
`backport/include`, on this branch
- [#5352](https://github.com/cozystack/cozystack/pull/5352)
`docs(gateway): stop saying the route-hostname policy admits
hostname-less routes`: `backport/include`, on this branch
- [#4990](https://github.com/cozystack/cozystack/pull/4990) `fix(redis,
valkey, harbor): spread sentinels and data pods over nodes`:
`backport/skip`, left out
- [#4989](https://github.com/cozystack/cozystack/pull/4989)
`fix(monitoring): spread monitoring replicas over nodes`:
`backport/skip`, left out
- [#5393](https://github.com/cozystack/cozystack/pull/5393)
`fix(kubernetes-nodes): label worker disks with the WorkloadMonitor
selector`: `backport/skip`, left out
- [#4817](https://github.com/cozystack/cozystack/pull/4817)
`feat(kubernetes): give each tenant Kubernetes cluster its own etcd`:
`backport/skip`, left out
- [#5407](https://github.com/cozystack/cozystack/pull/5407)
`fix(ingress-nginx): turn off TLS session tickets for CVE-2026-97629`:
`backport/include`, on this branch
- [#5156](https://github.com/cozystack/cozystack/pull/5156)
`fix(kafka)!: require SCRAM-SHA-512 on the external listener`:
`backport/skip`, left out
- [#5186](https://github.com/cozystack/cozystack/pull/5186)
`ci(workflows): run push and schedule workflows only in
cozystack/cozystack`: `backport/skip`, left out

### Skipped

- Rule 1, already on `release-1.7`: 47
- Rule 2, the title type is not `fix` or `security`, or the scope is
`deps`: 86, too many to list here; the run's output lists them
- Rule 3, a breaking change: 8
- Rule 4, touches platform migrations, `targetVersion` or a CRD, or
makes a sizeable API change: 4
- Dropped from `release-1.7` by a maintainer: 1

<details><summary>Rule 1, already on `release-1.7`</summary>

- [#4815](https://github.com/cozystack/cozystack/pull/4815)
`fix(vm-disk): name the importer error in the disk's WorkloadsReady
message`, `its 2 commits picked, the last in 432336387019`
- [#4756](https://github.com/cozystack/cozystack/pull/4756)
`fix(backupstrategy-controller): run backup clients on a package-owned
image`, `its 2 commits picked, the last in 4643366734f8`
- [#4293](https://github.com/cozystack/cozystack/pull/4293)
`fix(fluxcd): keep Helm uninstall working during flux-plunger recovery`,
`its 1 commit picked, the last in 021040795b22`
- [#4791](https://github.com/cozystack/cozystack/pull/4791)
`fix(kubernetes): keep NFS publish from hanging on a dead server`, `its
1 commit picked, the last in fa88bd1c4902`
- [#4830](https://github.com/cozystack/cozystack/pull/4830)
`fix(multus): drop the CPU limit and make resources configurable`, `its
2 commits picked, the last in 363c8426bab7`
- [#4865](https://github.com/cozystack/cozystack/pull/4865) `fix(kafka):
pass the container limits to the Kafka JVMs`, `its 3 commits picked, the
last in fc38a540c02f`
- [#4866](https://github.com/cozystack/cozystack/pull/4866)
`fix(linstor): mark volumes restored from a snapshot DRBD-initialized`,
`its 1 commit picked, the last in f9550b71cc24`
- [#4867](https://github.com/cozystack/cozystack/pull/4867) `fix(e2e):
keep chainsaw asserts polling through transient API errors`, `its 1
commit picked, the last in df75adc11cfa`
- [#4819](https://github.com/cozystack/cozystack/pull/4819)
`fix(seaweedfs): build SeaweedFS in-tree with a bounded S3 read-ahead`,
`its 5 commits picked, the last in 7f4c3463d2a9`
- [#3427](https://github.com/cozystack/cozystack/pull/3427)
`fix(backups): prepare standalone VMDisk restore targets and add VM
backup/restore e2e round-trips`, `its 3 commits picked, the last in
4ac0cd581481`
- [#4889](https://github.com/cozystack/cozystack/pull/4889)
`fix(monitoring): send alerts to every Alertmanager replica`, `its 1
commit picked, the last in 5033d53410ba`
- [#4929](https://github.com/cozystack/cozystack/pull/4929)
`fix(backups): gate every default Strategy CR on its CRD`, `its 2
commits picked, the last in dee1eef5590b`
- [#4914](https://github.com/cozystack/cozystack/pull/4914)
`fix(fluxcd): close the flux-plunger review follow-ups for the hook,
drain and Warnings`, `its 7 commits picked, the last in a8e491646a06`
- [#4888](https://github.com/cozystack/cozystack/pull/4888) `fix(ci):
dispatch frozen-line builds with GITHUB_TOKEN`, `its 1 commit picked,
the last in bf81e2d9db22`
- [#4939](https://github.com/cozystack/cozystack/pull/4939)
`fix(cluster-api): resync capi-operator every minute`, `its 1 commit
picked, the last in cc8d6a4f05a0`
- [#5027](https://github.com/cozystack/cozystack/pull/5027) `fix(hack):
keep the backup stack in the vminstance selective install`, `its 1
commit picked, the last in 8ba8386a2e5c`
- [#4955](https://github.com/cozystack/cozystack/pull/4955)
`fix(vm-disk): let CDI adopt the PVC a Velero restore recreates`, `its 2
commits picked, the last in 691d7bce038e`
- [#4985](https://github.com/cozystack/cozystack/pull/4985) `fix(etcd):
stop counting canceled watch streams as failed gRPC requests`, `its 1
commit picked, the last in 38e408917936`
- [#5005](https://github.com/cozystack/cozystack/pull/5005)
`fix(tcp-balancer): cap HAProxy fds and threads by the pod's own
limits`, `its 1 commit picked, the last in 7a3d0b0a5559`
- [#5071](https://github.com/cozystack/cozystack/pull/5071)
`fix(marketplace): do not install a connected repository's components on
connect`, `its 2 commits picked, the last in 25f8f11187b9`
- [#5086](https://github.com/cozystack/cozystack/pull/5086)
`fix(tenant): stop the gateway release waiting on TenantGateway
listeners and certificates`, `its 1 commit picked, the last in
18b22495038b`
- [#5087](https://github.com/cozystack/cozystack/pull/5087)
`fix(controller): carry healthCheckExprs and waitStrategy to existing
releases`, `its 1 commit picked, the last in d2a452e89067`
- [#5088](https://github.com/cozystack/cozystack/pull/5088)
`fix(ingress-nginx): drop the admission-webhook policy a rebase brought
back`, `its 1 commit picked, the last in cf00b41e0e9a`
- [#5142](https://github.com/cozystack/cozystack/pull/5142)
`fix(release): keep release bodies within GitHub's size limit`, `its 1
commit picked, the last in c7405158634e`
- [#4917](https://github.com/cozystack/cozystack/pull/4917)
`fix(kubernetes): run Proxmox CCM v0.16.1 and pin the Proxmox images by
digest`, `its 2 commits picked, the last in 8ff6dcacd3b5`
- [#4974](https://github.com/cozystack/cozystack/pull/4974)
`fix(kubernetes-nodes): plan autoscaler capacity on the cores the VM
actually gets`, `its 1 commit picked, the last in d68a163c2d86`
- [#4971](https://github.com/cozystack/cozystack/pull/4971) `fix(e2e):
keep the Proxmox tenant kubeconfig per run and remove it`, `its 2
commits picked, the last in 77227c55e9d6`
- [#4970](https://github.com/cozystack/cozystack/pull/4970) `fix(e2e):
read the KubernetesNodes pool release in the HelmRelease guard`, `its 3
commits picked, the last in 6b17a76ef6cb`
- [#4972](https://github.com/cozystack/cozystack/pull/4972) `fix(e2e):
validate the leak allowlist against every suite layout`, `its 3 commits
picked, the last in 7ec550b7b81f`
- [#5082](https://github.com/cozystack/cozystack/pull/5082)
`fix(marketplace): pin a tapped repository to a digest instead of a
mutable tag`, `its 15 commits picked, the last in 9cff86f85124`
- [#4004](https://github.com/cozystack/cozystack/pull/4004)
`fix(dashboard): link a tenant row to its detail page`, `its 2 commits
picked, the last in bd5e0b5e88b3`
- [#5212](https://github.com/cozystack/cozystack/pull/5212)
`fix(cilium): pass the CiliumNode list to jq on stdin in the IPAM hook`,
`its 1 commit picked, the last in b28a2e228160`
- [#5213](https://github.com/cozystack/cozystack/pull/5213)
`fix(kubernetes): move the OIDC users out of the bootstrap Job's
script`, `its 1 commit picked, the last in 02dd8e5454f8`
- [#5208](https://github.com/cozystack/cozystack/pull/5208)
`fix(clickhouse): restore the archive a Backup was taken as`, `its 3
commits picked, the last in 9ded5c5fc356`
- [#5230](https://github.com/cozystack/cozystack/pull/5230)
`fix(backups): re-render the default backup objects when the S3 endpoint
changes`, `its 8 commits picked, the last in 490eab5b9aba`
- [#5133](https://github.com/cozystack/cozystack/pull/5133)
`fix(securitygroups): project a membership-only group to a policy Cilium
accepts`, `its 1 commit picked, the last in b7c50a5e070f`
- [#5091](https://github.com/cozystack/cozystack/pull/5091)
`fix(postgres): render the declared databases in a stable order`, `its 1
commit picked, the last in b658dffe7c31`
- [#5123](https://github.com/cozystack/cozystack/pull/5123)
`fix(mariadb-operator): derive the cluster name from the platform
domain`, `its 2 commits picked, the last in 17702dd57bab`
- [#5151](https://github.com/cozystack/cozystack/pull/5151) `fix(redis):
run one Sentinel when Redis runs a single pod`, `its 5 commits picked,
the last in 5524a41b8586`
- [#5124](https://github.com/cozystack/cozystack/pull/5124)
`fix(lineage, kubernetes): resolve CAPK node VMs to their cluster`, `its
2 commits picked, the last in c90856088aff`
- [#5184](https://github.com/cozystack/cozystack/pull/5184) `fix(api):
read pool usage under the quota key the controller counts`, `its 1
commit picked, the last in 18c17af8d50f`
- [#5190](https://github.com/cozystack/cozystack/pull/5190)
`fix(platform): remove the dead registries value and patch-containerd
Secret`, `its 2 commits picked, the last in 617f88943895`
- [#5211](https://github.com/cozystack/cozystack/pull/5211)
`fix(postgres): fail a backup job as soon as its cnpg Backup fails`,
`its 1 commit picked, the last in 6645e21b9e0a`
- [#5155](https://github.com/cozystack/cozystack/pull/5155)
`fix(postgres): refuse system databases and never drop them`, `its 1
commit picked, the last in 6f1bb80f8004`
- [#5207](https://github.com/cozystack/cozystack/pull/5207)
`fix(mariadb): fail backup and restore jobs whose operator Job failed`,
`its 5 commits picked, the last in ef3de554b99f`
- [#5024](https://github.com/cozystack/cozystack/pull/5024)
`fix(kubernetes, monitoring): send tenant cluster metrics to the
tenant's vminsert`, `its 1 commit picked, the last in 423a75bb31db`
- [#5284](https://github.com/cozystack/cozystack/pull/5284)
`fix(seaweedfs): bump the COSI driver to v0.4.0 for the lost-grant fix`,
`its 1 commit picked, the last in ffb38805ff71`

</details>

<details><summary>Rule 3, a breaking change</summary>

- [#4790](https://github.com/cozystack/cozystack/pull/4790)
`fix(platform)!: refuse a networking variant change on a live cluster`,
`! in the title`
- [#4796](https://github.com/cozystack/cozystack/pull/4796)
`fix(vm-disk)!: refuse a golden-image clone CDI would leave unbound`, `!
in the title`
- [#5085](https://github.com/cozystack/cozystack/pull/5085)
`fix(kubernetes, opensearch, foundationdb)!: restrict managed
application images`, `! in the title`
- [#4818](https://github.com/cozystack/cozystack/pull/4818)
`fix(keycloak)!: make the KMS proxy keep its keys across restarts`, `!
in the title`
- [#5167](https://github.com/cozystack/cozystack/pull/5167)
`fix(monitoring-agents)!: isolate merged log payload under
log_processed`, `! in the title`
- [#5009](https://github.com/cozystack/cozystack/pull/5009)
`fix(cozy-lib)!: refuse memory below 1Mi instead of rendering a few
bytes`, `! in the title`
- [#5191](https://github.com/cozystack/cozystack/pull/5191)
`fix(kubernetes)!: remove the talos block and other leftovers of the
worker pool split`, `! in the title`
- [#4802](https://github.com/cozystack/cozystack/pull/4802)
`fix(vm-disk, kubernetes-nodes)!: refuse golden images whose import
keeps failing`, `! in the title`

</details>

<details><summary>Rule 4, touches platform migrations, `targetVersion`
or a CRD, or makes a sizeable API change</summary>

- [#4941](https://github.com/cozystack/cozystack/pull/4941)
`fix(backups): keep the backupstrategy-controller Helm release under the
Secret size limit`, `a sizeable API change (breaking-change: [v1alpha1]
spec.spec.template: field "metadata" was removed, and 5 more), a CRD`
- [#5223](https://github.com/cozystack/cozystack/pull/5223)
`fix(backups): report sizeBytes for MariaDB and CNPG backup artifacts`,
`a CRD`
- [#5166](https://github.com/cozystack/cozystack/pull/5166)
`fix(linstor): update piraeus-operator to v2.12.1`, `a CRD`
- [#5430](https://github.com/cozystack/cozystack/pull/5430)
`fix(linstor): gate group snapshots on the v1 group snapshot API`,
`platform migrations`

</details>

<details><summary>Dropped from `release-1.7` by a maintainer</summary>

- [#5309](https://github.com/cozystack/cozystack/pull/5309)
`fix(linstor): restore snapshots on a schedulable node`, `dropped on
#5311: builds on linstor-csi v1.13.2 bump from #5166 which rule 4 keeps
off this line, its patch 003 does not apply to v1.11.2`

</details>

```backport-batch
{"version":3,"line":"release-1.7","built":{"main":"40b4fc6ad4f39d3c449beee2a492fbd7f621b8ba","line":"c0b53abb72d8be7bd5f7cded36a44024784cbbf2","newer":"","policy":"40b4fc6ad4f39d3c449beee2a492fbd7f621b8ba","batch":"92a78f47274ea6f297d110d81f05a9e038a8a027","tool":"f91ffd8fa74b956c5b5180b2e606e7c585f95201","run":"","at":"2026-11-26T08:48:36Z","options":{"noWorkflowFiles":false,"mode":"continue"}},"report":"691a73a08288163240e424623654675e5104a035549a4ec617b74214bf8cc369","closing":null,"deferred":[],"dropped":[{"original":5309,"merge":"5dbfa1cfaddd9eaf30bf4b1eeca830cd9b242a0e","reason":"builds on linstor-csi v1.13.2 bump from #5166 which rule 4 keeps off this line, its patch 003 does not apply to v1.11.2","on":5311,"date":"2026-11-25"}],"stale":[],"parked":[{"original":5049,"merge":"2b1b7a4cc29e68e7efda016d40f05168dc36d19b","kind":"dependency","needs":[4802,5191,5393],"announced":true},{"original":5221,"merge":"e978ed7f2fcad22b80cbf077351cde494c9c4b8c","kind":"dependency","needs":[5223],"announced":true},{"original":5224,"merge":"8f0082a1c81fd27dcab7e558d292c251451001ba","kind":"dependency","needs":[5227,5232],"announced":true},{"original":5227,"merge":"526f08e17d2d499941e36f5f8451be9bcf3f4440","kind":"dependency","needs":[5223],"announced":true},{"original":5232,"merge":"3badbdef74f8295b6d556063a0abb69611475f10","kind":"dependency","needs":[5034],"announced":true},{"original":5294,"merge":"4f813fb6b2566bc508944047b65f4939861825d5","kind":"dependency","needs":[5221],"announced":true},{"original":5295,"merge":"2495ebfaa02c505be1844311d09f9b2fce728cc2","kind":"dependency","needs":[5221],"announced":true},{"original":5344,"merge":"e11ca91d8110a9e979344ef3053afc2e1321b381","kind":"dependency","needs":[5227],"announced":true},{"original":5375,"merge":"04fb5215a85860ff8c4a66c4b58d113a2e85076b","kind":"dependency","needs":[5167],"announced":true},{"original":5398,"merge":"1ab20ea96e64d48d5c9a160ee3f40093238d7dd5","kind":"dependency","needs":[4902],"announced":true},{"original":5415,"merge":"fc5ece0a289218cdb32a161780872dce0729fdd9","kind":"dependency","needs":[5224],"announced":true},{"original":5426,"merge":"0d75b0e3526489d27612f6fc5a6ad3848d96e217","kind":"dependency","needs":[5050,5252],"announced":true},{"original":5427,"merge":"7067313c95f6d308b310606afb96155e25b41d10","kind":"dependency","needs":[5376],"announced":true}],"changed":[5045,5119,5153,5229]}
```

```backport-batch-report
{"format":2,"id":"691a73a08288163240e424623654675e5104a035549a4ec617b74214bf8cc369","line":"release-1.7","built":{"main":"40b4fc6ad4f39d3c449beee2a492fbd7f621b8ba","line":"c0b53abb72d8be7bd5f7cded36a44024784cbbf2","newer":"","policy":"40b4fc6ad4f39d3c449beee2a492fbd7f621b8ba","batch":"92a78f47274ea6f297d110d81f05a9e038a8a027","tool":"f91ffd8fa74b956c5b5180b2e606e7c585f95201","run":"","at":"2026-11-26T08:48:36Z","options":{"noWorkflowFiles":false,"mode":"continue"}},"overrides":{"backport/include":[4985,4993,5005,5025,5352,5407],"backport/skip":[4817,4973,4989,4990,5083,5156,5180,5186,5393]},"primary":{"picked":[4167,4234,4797,4893,4896,4915,4920,4945,4946,4948,4954,4960,4963,4965,4984,4986,4993,5011,5025,5045,5094,5096,5098,5100,5102,5114,5119,5134,5148,5152,5153,5160,5175,5183,5189,5210,5226,5228,5229,5242,5249,5250,5265,5270,5280,5308,5326,5329,5331,5340,5348,5352,5354,5356,5357,5358,5364,5373,5377,5392,5399,5403,5405,5407,5436,5443],"missing":[],"deferred":[],"parked":[{"original":5049,"merge":"2b1b7a4cc29e68e7efda016d40f05168dc36d19b","kind":"dependency","needs":[4802,5191,5393]},{"original":5221,"merge":"e978ed7f2fcad22b80cbf077351cde494c9c4b8c","kind":"dependency","needs":[5223]},{"original":5224,"merge":"8f0082a1c81fd27dcab7e558d292c251451001ba","kind":"dependency","needs":[5227,5232]},{"original":5227,"merge":"526f08e17d2d499941e36f5f8451be9bcf3f4440","kind":"dependency","needs":[5223]},{"original":5232,"merge":"3badbdef74f8295b6d556063a0abb69611475f10","kind":"dependency","needs":[5034]},{"original":5294,"merge":"4f813fb6b2566bc508944047b65f4939861825d5","kind":"dependency","needs":[5221]},{"original":5295,"merge":"2495ebfaa02c505be1844311d09f9b2fce728cc2","kind":"dependency","needs":[5221]},{"original":5344,"merge":"e11ca91d8110a9e979344ef3053afc2e1321b381","kind":"dependency","needs":[5227]},{"original":5375,"merge":"04fb5215a85860ff8c4a66c4b58d113a2e85076b","kind":"dependency","needs":[5167]},{"original":5398,"merge":"1ab20ea96e64d48d5c9a160ee3f40093238d7dd5","kind":"dependency","needs":[4902]},{"original":5415,"merge":"fc5ece0a289218cdb32a161780872dce0729fdd9","kind":"dependency","needs":[5224]},{"original":5426,"merge":"0d75b0e3526489d27612f6fc5a6ad3848d96e217","kind":"dependency","needs":[5050,5252]},{"original":5427,"merge":"7067313c95f6d308b310606afb96155e25b41d10","kind":"dependency","needs":[5376]}],"skipped":{"on-line":[3427,4004,4293,4756,4791,4815,4819,4830,4865,4866,4867,4888,4889,4914,4917,4929,4939,4955,4970,4971,4972,4974,4985,5005,5024,5027,5071,5082,5086,5087,5088,5091,5123,5124,5133,5142,5151,5155,5184,5190,5207,5208,5211,5212,5213,5230,5284],"before-start":[],"type":[2622,2664,2665,3149,3382,3440,3777,3780,4495,4508,4845,4859,4860,4861,4869,4877,4879,4881,4898,4899,4900,4902,4931,4936,4940,4944,4952,4953,4959,4969,4983,4997,5000,5034,5039,5043,5046,5050,5090,5106,5110,5112,5144,5168,5171,5174,5188,5214,5215,5216,5217,5218,5219,5220,5237,5239,5240,5252,5254,5260,5264,5266,5267,5269,5277,5282,5286,5287,5288,5306,5310,5318,5334,5336,5349,5360,5362,5372,5374,5376,5404,5408,5411,5424,5425,5428],"breaking":[4790,4796,4802,4818,5009,5085,5167,5191],"touches":[4941,5166,5223,5430],"newer":[],"skip-label":[4817,4973,4989,4990,5083,5156,5180,5186,5393],"dropped":[5309]}},"overlays":{"dropped":[{"original":5309,"merge":"5dbfa1cfaddd9eaf30bf4b1eeca830cd9b242a0e","reason":"builds on linstor-csi v1.13.2 bump from #5166 which rule 4 keeps off this line, its patch 003 does not apply to v1.11.2","on":5311,"date":"2026-11-25"}],"stale":[],"changed":[5045,5119,5153,5229]},"diag":{},"other":[]}
```

### Screenshots

See the original pull requests.

### Downstream repositories

- [ ] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(platform): a root tenant without ingress no longer leaves seaweedfs-system waiting for an ingress-nginx-system release that is never created. Set the new platform value ingress.rootEnabled to false to match Tenant/root spec.ingress: false.

fix(seaweedfs): S3 bucket lifecycle rules can now be enforced. Simple and MultiZone SeaweedFS instances run the SeaweedFS admin server and a lifecycle worker when the new `lifecycle.enabled` value is set; it is off by default, so existing instances keep their current behaviour. It stays off by default because the upstream daily expiry walk deletes without checking that the object it listed is still the one stored, so an object overwritten in that window can be deleted although it is new. When enabled, rules that were stored but ignored start applying within minutes and objects they have already expired are deleted on that first pass; review existing rules first. Each enabled instance gains two small pods and a 1Gi volume, placed on `lifecycle.storageClass` or the cluster default. Independently of the switch, the s3 gateway now serves its internal gRPC over mTLS, which repairs IAM cache propagation between s3 replicas and restarts the s3 pods once on upgrade.

fix(monitoring-agents): disabling the Monitoring Agents addon of a tenant Kubernetes cluster no longer leaves the monitoring-agents release stuck in UninstallFailed when the VictoriaMetrics operator is removed first; a pre-delete hook now releases the VictoriaMetrics objects' finalizers, and the VPA is only rendered when its CRD is served.

fix(vm-instance): an external PortList VM with an empty port list no longer fails to deploy; it keeps its external IP and blocks all inbound TCP and UDP traffic.

fix(seaweedfs): stop SeaweedFS masters crashing with "concurrent map read and map write" under write load, which made S3 answer 500 (backport of seaweedfs/seaweedfs#11216 onto 4.45).

fix(backups): the barman-cloud sidecar of Postgres backups now has an explicit one-core CPU limit instead of inheriting the tenant LimitRange's 250m default, which made full backups and WAL archiving several times slower. Each instance pod of a tenant with a CPU quota now counts 750m more against `limits.cpu`; check the headroom before instance pods are recreated. Existing ObjectStores pick the limit up at their next backup (platform-managed) or HelmRelease upgrade (chart-rendered), and running pods at their next restart.

fix(etcd): the tenant etcd defrag job requests 10m and 32Mi instead of 200m and 256Mi, so it runs in tenants whose quota is nearly used up by their own services.

fix(monitoring): vmalert metrics are collected again. The vmalert VMServiceScrape selected app.kubernetes.io/instance=vmalert while the Service is labelled vmalert-<first metrics storage>, so it matched nothing.

fix(ingress-nginx): raise the client keepalive_time from the nginx 1h default to 12h, so long-lived HTTP/2 connections (for example kopia maintenance against S3) are no longer cut by a GOAWAY after one hour

fix(etcd): tenant etcd members now spread over nodes with whenUnsatisfiable DoNotSchedule by default, so two members of one etcd no longer start on the same node while another node has none. Members that exist are not moved, only members created after the upgrade get the new constraint.

An etcd created while the cluster had fewer nodes than members puts two or three members on one node. Once a node is added, such a member whose Pod is recreated (drain, eviction, graceful node shutdown) stays Pending, because maxSkew rejects its own node and its node-local volume rules out the others. With two nodes grown to three the etcd runs two of three members and its PodDisruptionBudget blocks draining the other nodes. With one node grown to three a reboot of that node brings back one member of three and quorum is lost. A stranded member is replaced by deleting its EtcdMember while the other members keep quorum. Its Pod and PVC go with it, and the replacement gets a new Pod and PVC on the node without a member. Right after adding nodes, doing this for one co-located member at a time while all members are Ready avoids the case.

With nodeTaintsPolicy Ignore a node the etcd Pods cannot tolerate, such as a tainted control plane, counts as a node with zero members, so no node can take a second member. On a cluster with such a node and fewer schedulable nodes than members, a new etcd starts only as many members as there are schedulable nodes, one of three on a single schedulable node. An existing etcd there keeps its members, but a member it replaces stays Pending the same way.

Either case is avoided by setting scheduling.globalAppTopologySpreadConstraints in spec.components.platform.values of the cozystack.cozystack-platform Package to a topologySpreadConstraints entry with maxSkew 1, topologyKey kubernetes.io/hostname and whenUnsatisfiable ScheduleAnyway before the upgrade. Every app chart that reads this value applies it, two members of a new etcd can share a node again, and the operator gives it only to members created after it adopts the changed EtcdCluster spec into status.observed. Once status.observed.topologySpreadConstraints of an EtcdCluster shows ScheduleAnyway, a member of it that stays Pending is replaced by deleting its EtcdMember.

fix(kubernetes): remove stale hotplug volumes when the infra PVC is missing, preventing deleted volumes from blocking subsequent attachments

fix(vm-disk): a new disk from a golden image is now refused at render time when its storage is smaller than the image, with a message that names both sizes. Before, CDI refused the clone with CloneValidationFailed, the disk stayed pending forever, and raising its storage afterwards did not help. The default images are 20Gi and the default storage is 5Gi, so a disk from one of them needs storage set to 20Gi or more.

fix(monitoring-agents): a Watchdog that stops reaching Alerta now raises a major HeartbeatFail about six minutes later. It used to raise an ok alert after a day.

fix(monitoring): InfoInhibitor no longer reaches Alerta as a major alert. It carries severity none again, which the platform Alertmanager routes to the blackhole, as upstream kube-prometheus intends. Before, any active alert with severity info, from a custom rule or from one CDI or KubeVirt generates, raised a major InfoInhibitor in Alerta and in its Telegram and Slack notifications.

fix(vertical-pod-autoscaler): the admission controller runs two replicas spread over nodes with a PodDisruptionBudget, so pods created during a drain still get their VPA recommendation.

feat(monitoring): new warning alert PodReplicasColocated fires when two or more running pods of one StatefulSet, ReplicaSet, CNPG Cluster, StrimziPodSet or etcd cluster have shared a node for an hour while the cluster has a schedulable node for each of them.

fix(seaweedfs): set GOMEMLIMIT on master, volume (and each pool and zone), filer, s3 and the lifecycle admin and worker so the Go runtime collects before the container hits its memory limit instead of being OOM-killed

fix(workloadmonitor): a Bucket app reports WorkloadsReady=False with reason BucketClaimNotReady while its BucketClaim is not provisioned, instead of WorkloadsReady=True.

fix(kubevirt): tenant admins can upload an image into a VMDisk created with source upload using virtctl image-upload. The tenant admin and super-admin roles get get on persistentvolumeclaims and create on upload.cdi.kubevirt.io/uploadtokenrequests, and the vm-disk notes print the command with --no-create.

fix(apps): Job and CronJob names now fit the Kubernetes limits for the longest application names. A Kafka with a name of 42 to 44 characters can now be installed, long VMDisk and VMInstance names no longer fail a resize or an instance type change, long Bucket and Qdrant names and long nested tenant namespaces no longer fail deletion, and long MariaDB and ClickHouse names no longer fail the release with the backup CronJob enabled.

fix(piraeus-operator): the LINSTOR error-report alerts no longer fire on old reports when the LINSTOR controller pod moves to another node, when an external label of the scrape changes, or when a satellite reconnects within an hour. They now count reports per node, and their alerts carry the node's hostname instead of the controller pod's instance, job and controller_node labels.

fix(keycloak, foundationdb): keycloak-operator and foundationdb-operator now replace their CRDs on upgrade. Clusters upgraded from before v1.2.0 kept the v1.25.0 keycloak-operator CRDs, under which the apiserver dropped the Keycloak realm session settings and Keycloak could reject the dashboard client, and clusters upgraded from before v1.6.0 kept the v2.13.0 foundationdb-operator CRDs.

fix(tcp-balancer): the Service now publishes ports 6443 and 50000 only when kubernetesAndTalos is set, like the Deployment and the HAProxy config. Before, every tcp-balancer Service carried both ports with no container port behind them, on the LoadBalancer too when external was enabled, and a release with kubernetesAndTalos but without httpAndHttps had no Service port for them.

fix(cozystack-basics): refuse a direct DELETE of a tenant namespace unless it comes from helm-controller or the garbage collector, and point to deleting the Tenant instead, so a tenant namespace deleted by hand no longer gets stuck Terminating on Kamaji finalizers

[vpa] Shorten the VPA admission webhook timeout to 5s so pod creation does not stall cluster-wide while the admission controller is unreachable.

fix(ci): a PR behind main no longer installs a never-pushed placeholder tag for a new first-party image, such as observability-proxy:v0.0.0, when that package's values.yaml changed on main since the PR's merge commit.

fix(controller, platform): sub-tenants without their own resourceQuotas now receive their parent pool's container defaults (LimitRange) alongside the allocated quota, when that quota bounds a CPU or memory limit, so pods that omit such a limit, such as the postgres barman-cloud backup sidecar, are no longer rejected at admission.

fix(tests): fail negative file assertions on invalid patterns or unreadable artifacts and share the helper across Bats suites.

fix(etcd): scope tenant etcd alerts to their release and avoid duplicate tenant peer RTT alerts from the global rules

fix(cozy-lib): a tenant quota with hugepages-2Mi or hugepages-1Gi now renders only requests.hugepages-<size>, so the tenant installs and its huge pages are bounded.

fix(seaweedfs): grant existing bucket credentials the Object Lock actions required by SeaweedFS 4.48 on install and upgrade, preserving their bucket restrictions and credentials.

fix(seaweedfs): remove S3 identities left behind by deleted BucketAccesses on install and upgrade. The new cosi.orphanIdentities value (auto, report, delete) controls it; auto only reports on a filer published to Client-topology clusters.

fix(kamaji): stop writing kubelet config fields that older tenant Kubernetes versions do not know, such as memoryReservationPolicy on tenants before v1.36, so strict decoders of the kubelet-config ConfigMap no longer fail.

fix(backups): a BackupJob whose Velero backup ends Failed, PartiallyFailed or FailedValidation now asks Velero to delete that backup and its data in the bucket, instead of leaving them until Velero's TTL expires. A Velero backup that completed is never deleted this way. If Velero cannot carry out the deletion (for example, the backup storage location is missing, read-only or unavailable), the BackupJob gets a `VeleroBackupDeletionFailed` Warning event with Velero's errors, and the deletion is retried at a growing interval of up to one hour. After upgrading, the Velero backups of BackupJobs that already failed are deleted as well; to keep one for a manual `velero restore`, copy it before the upgrade. The backupstrategy-controller ClusterRole gains `delete` on `deletebackuprequests`.

fix(opensearch): mitigate CVE-2026-114938 (Java4Shell) by starting OpenSearch nodes with -XX:-UseBASE64Intrinsics, which disables the vulnerable OpenJDK Base64 decoder. Every OpenSearch cluster restarts once on upgrade.

fix(lineage-webhook): a Secret created with `internal.cozystack.io/tenantresource: "false"` keeps that label even where its ApplicationDefinition selects the name, so a chart can take a Secret off the tenantsecrets projection; a rendered `"true"` is still overwritten by the definition's verdict.

fix(ingress-nginx): the ingress-nginx controller now runs nginx 1.25.5 rebuilt with the HTTP/2 fixes for CVE-2026-123633 and CVE-2026-123007. nginx still reports version 1.25.5.

fix(qdrant): restore metrics scraping for TLS-enabled instances by using HTTPS and verifying the server certificate against the issued CA.

fix(kubernetes): remove cilium dependency from coredns HelmRelease to prevent a circular startup deadlock when Hubble Relay is enabled

fix(platform): an unquoted false in _cluster.ingress-enabled or _cluster.monitoring-enabled now turns off the tenant-root ingress key and the monitoring redirects.

fix(securitygroups): a port range now gets a clear "port ranges are not supported" error, and a malformed toFQDNs matchName or matchPattern is rejected on the SecurityGroup field instead of failing on the backing CiliumNetworkPolicy.

docs(gateway): the Gateway README no longer says the route-hostname policy admits routes without hostnames; since 1.7 it rejects them in tenant namespaces.

fix(postgres): a user named `app` no longer loses its password when the Postgres pod restarts. CNPG re-applied its own generated password to the `app` owner role on every pod start; the chart now hands CNPG the password stored in `<release>-credentials`.

fix(seaweedfs): the Lance catalog ingress and the worker's Lance namespace URL now point at the renamed `<name>-s3` Service.

fix(linstor): linstor-affinity-controller and linstor-scheduler now restart when their LINSTOR client certificate is rotated, instead of failing every LINSTOR API call with EOF once the certificate they loaded at startup expires.

fix(api): an ApplicationDefinition with an unparseable release.cozystack.io/* annotation or an invalid openAPISchema is now skipped and logged instead of stopping cozystack-api from starting.

fix(gateway): the DNS-01 wildcard Certificate no longer lists a child tenant's apex that the parent's wildcard already covers, so Let's Encrypt stops refusing the order and the parent Gateway gets its certificate again.

fix(linstor): the NFS server's linstor-wait-node-online init container now runs the platform-built linstor-csi image instead of the operator's default.

fix(api): a resourceVersion from a WorkloadMonitor-triggered Application watch event now works as a delete precondition, and the event's spec matches its version.

fix(gateway): give the edge TenantGateway listener its own allowed-routes copy; rendered Gateway configuration is unchanged

fix(api): reject new workload memory values below 1Mi before storing an application. Updates to unrelated fields on existing applications with smaller values still pass admission.

fix(harbor): Harbor registry storage is billed again. The WorkloadMonitor controller finds BucketClaims by label, and the registry BucketClaim had no labels. It now carries the registry monitor's `release` and
  `component` labels, so its storage shows up as Workload under the registry WorkloadMonitor, the same way the registry PVC did before it moved to S3. And also registry WorkloadMonitor now reports not operational while the BucketClaim is not provisioned

fix(platform): system PostgreSQL databases (Keycloak, Harbor, Grafana, Alerta, SeaweedFS) move from 17.7 to 17.12-standard-trixie, which fixes CVE-2026-116331. On upgrade each of these databases is rolled: replicas first, then the primary is restarted in place, with a brief interruption of a few minutes per database.

fix(tenant): the tenant LimitRange now defaults cpu, memory and ephemeral-storage only when resourceQuotas bounds that resource, so a quota without memory no longer gives containers a 128Mi default memory limit that kept VMs from starting.

fix(cozystack-basics): tenant super-admins can no longer create, edit or delete `kubevirt.io` VirtualMachines directly; they keep read and watch. Virtual machines are managed through VMInstance and VMDisk applications, power through the start/stop/restart actions. The install e2e now fails when a tenant super-admin gains a write verb outside a checked-in allowlist.

fix(ingress-nginx): TLS session tickets are turned off in the ingress-nginx controller (CVE-2026-97629). TLS session resumption keeps working through the shared session cache.

fix(postgres): tenant PostgreSQL moves to the minors that fix CVE-2026-116331 (18.7, 17.12, 16.16, 15.20, 14.25) on the standard-trixie image variant. Upgrading rolls every Postgres instance.

- PostgreSQL 13 has no fixed release: it keeps 13.22 and stays exposed to CVE-2026-116331, and it still takes the image move and the index rebuild described below. 14.25 is the last release of the 14 line. Plan a move to a newer major for clusters on 13 and 14.
- For the default flavor the image moves from Debian bullseye to trixie, which changes glibc and ICU. The upgrade rebuilds the indexes that depend on a non-C collation. Until that rebuild finishes such an index can return incomplete results and a unique one can accept duplicates, so plan a maintenance window if you use ICU or locale-specific collations. Databases created with the chart defaults use the C collation and are not affected.
- An exclusion constraint's index is rebuilt in place, and its table is neither read nor written meanwhile.
- When a rebuild cannot finish inside the upgrade Job, the release stays failed and the Job is retried. After two failed attempts the Job stops rebuilding that index, names it in its log and keeps failing until an operator steps in. Expect this for a large index on a non-C collation: rebuild it by hand with `REINDEX INDEX CONCURRENTLY`, drop the invalid `_ccnew` indexes the failed attempts left on its table, and the next run completes. A unique index fails the same way while it holds duplicates, which have to be removed first.
- Tables range-partitioned on a text key with a non-C collation need a manual check, after which the collation version is refreshed by hand.
- On the postgis flavor PostGIS moves from 3.6.1 to 3.7.0, and the upgrade does not update the extension in existing databases: once the new image has rolled out to the primary, run `ALTER EXTENSION postgis UPDATE` in each database that uses it.

fix(platform): the cert-manager-issuers release no longer waits for ClusterIssuers to become Ready, so an unreachable ACME endpoint (staging included) does not hold other platform packages in DependencyNotReady.

fix(kubernetes-nodes): a worker pool rollout now adds one replacement worker at a time instead of up to the pool's maxReplicas, bounding the extra capacity a rollout uses in the tenant's namespace. Large pools roll out more slowly.

fix(ingress): restore visitor IP handling for Cloudflare-proxied HTTPS through ssl-passthrough while rejecting spoofed `CF-Connecting-IP` headers before IP whitelists

fix(ingress-nginx): the ingress-nginx controller's nginx 1.25.5 now carries the fixes for CVE-2025-23419, CVE-2026-1642, CVE-2026-9256, CVE-2026-42055, CVE-2026-42945, CVE-2026-97629, CVE-2026-118899, CVE-2026-121810, CVE-2026-123634, CVE-2026-125283 and CVE-2026-132779. nginx still reports version 1.25.5.
```
v1.7.2-rc.1
2026-11-26 14:43:50 +05:00
Myasnikov Daniil 92a78f4727 fix(ingress-nginx): pick up the nginx rebuild with the remaining CVE fixes (#5436)
## What this PR does

Moves the ingress-nginx controller from `v1.11.6-cozystack.1` to
`v1.11.6-cozystack.3`. It is the same v1.11.6 controller and nginx
1.25.5, rebuilt with the rest of the nginx fixes the controller can
reach. cozystack.1 had only the two HTTP/2 fixes.

| Fork PR | nginx commits | Fixes |
| --- | --- | --- |
| cozystack/ingress-nginx-with-protobuf-exporter#14 | 6, from 1.30.7 |
CVE-2026-118899 (SSL request body loop, also HTTP/3), CVE-2026-123634
(resolver), CVE-2026-121810 (HTTP/3), CVE-2026-125283 (`try_files` with
`alias`) |
| cozystack/ingress-nginx-with-protobuf-exporter#15 | 10, from 1.26.3 to
1.30.8 | CVE-2025-23419 (TLSv1.3 resumption across SNI names),
CVE-2026-1642 (HTTPS backends), CVE-2026-42945 and CVE-2026-9256
(`rewrite`), CVE-2026-42055 (gRPC backends), CVE-2026-97629 (session
tickets), CVE-2026-132779 (`ssl-early-data`) |

Advisories that need a module the controller does not build (mail, dav,
mp4, slice) or a directive the template does not emit are left out, as
is the CVE-2026-42533 series: it rewrites the script engine the Lua
modules build on, and the template's maps carry no regex that reaches
it. The fork's `images/controller/PROVENANCE.md` lists every patch.

CVE-2026-97629 is the one reachable on platform defaults; #5407 already
turned session tickets off as a mitigation. This image fixes it in
nginx, and the `ssl-session-tickets: "false"` setting stays as it is.

Checked on the published image (`sha256:059a75d5…`, amd64 and arm64),
without running it:

- the nginx binary reports 1.25.5 with the same configure arguments as
in cozystack.1 and .2, and differs from the one in cozystack.2;
- it carries strings the new patches add, such as the gRPC header length
errors and `SSL_SESSION_get0_hostname`;
- it keeps `cap_net_bind_service` in its file capabilities.

The fork's build compares the configure arguments with the shipped
binary and fails on a mismatch. `nginx -t` and a live request were not
run for this image, and neither was a live cluster.

`nginx -v` still says 1.25.5, so scanners that match on the version will
keep flagging it.

### Screenshots

N/A, no UI changes.

### Downstream repositories

Walked the trigger map against the diff: an image tag and digest in
`packages/system/ingress-nginx/values.yaml`. No package, values key,
schema or app README changes.

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(ingress-nginx): the ingress-nginx controller's nginx 1.25.5 now carries the fixes for CVE-2025-23419, CVE-2026-1642, CVE-2026-9256, CVE-2026-42055, CVE-2026-42945, CVE-2026-97629, CVE-2026-118899, CVE-2026-121810, CVE-2026-123634, CVE-2026-125283 and CVE-2026-132779. nginx still reports version 1.25.5.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Updates**
  * Updated the ingress controller to a newer build.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 40b4fc6ad4
2026-11-26 08:48:34 +00:00
Andrei Kvapil 692f78c082 fix(ingress-nginx): pick up the nginx rebuild with the remaining CVE fixes
The v1.11.6-cozystack.3 controller image adds to nginx 1.25.5 the
fixes for the remaining advisories the controller can reach, from
nginx 1.26.3 to 1.30.8.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
(cherry picked from commit c873a50c24)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-26 08:48:34 +00:00
cozystack-ci[bot] 290132a8f2 fix(ingress): restore visitor IPs through SSL passthrough (#5443)
## What this PR does

Closes #5327.

With `cloudflareProxy: true`, HTTPS reaches nginx through
ssl-passthrough on loopback, so an IP whitelist sees `127.0.0.1` instead
of the visitor and rejects legitimate Cloudflare traffic. This change
validates the original transport peer before the whitelist, restoring
the visitor IP for Cloudflare requests without reopening the spoofing
fixed by #4444.

Direct HTTPS requests that bypass Cloudflare still appear as
`127.0.0.1`, as before.

### Validation

- `helm unittest packages/extra/ingress`: 34/34 tests passed, including
a separate run with helm-unittest 1.1.2.
- `make --directory=packages/extra/ingress show NAMESPACE=tenant-root`:
passed against the test cluster after rebasing on `upstream/main`.
- On an isolated ingress-nginx v1.11.6 controller, `nginx -t` passed.
Spoofed headers over HTTP and HTTPS returned 403. A trusted Cloudflare
PROXY-protocol source with an allowed visitor passed the whitelist and
the access log contained the visitor IP; an untrusted source or a
visitor outside the whitelist returned 403.
- A real Cloudflare end-to-end request was not tested.

### Screenshots

Not applicable; this PR does not change the UI.

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(ingress): restore visitor IP handling for Cloudflare-proxied HTTPS through ssl-passthrough while rejecting spoofed `CF-Connecting-IP` headers before IP whitelists
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Cloudflare-proxied ingress accepts `CF-Connecting-IP` only from
trusted Cloudflare address ranges and returns HTTP 403 when an untrusted
source provides the header.
* When no PROXY protocol address is available, source checks use the
direct connection address.
* Loopback addresses are included in trusted real-IP ranges, and the
existing keepalive setting is preserved.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 180c01170f
2026-11-26 06:38:37 +00:00
Aleksei Sviridkin 9d5ea2b919 style(ingress): drop blank lines from the Cloudflare geo block
The range over the Cloudflare ranges kept the newlines around its
actions, so the rendered geo block had an empty line between every
entry. nginx accepts either form; the trimmed one is easier to read
when debugging the generated config.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
(cherry picked from commit ed4a378428)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-26 06:38:37 +00:00
toribru ad3e088104 fix(ingress): restore visitor IPs through SSL passthrough
With cloudflareProxy enabled, HTTPS reaches nginx from the
ssl-passthrough proxy on loopback. Without trusting that proxy, the
whitelist sees 127.0.0.1 instead of the visitor address; trusting it
without checking the PROXY-protocol peer would reopen the spoofing
closed by #4444.

Checking the transport peer before the whitelist preserves that
protection, while port 80 needs its direct peer because no
PROXY-protocol address exists there.

Tested with helm-unittest and an isolated ingress-nginx controller:
trusted PROXY peers pass the whitelist with the restored visitor
address, while spoofed headers on HTTP and HTTPS return 403.

Closes: #5327
Assisted-by: LLM
Signed-off-by: toribru <161638395+toribru@users.noreply.github.com>
(cherry picked from commit 00a540eb62)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-26 06:38:37 +00:00
cozystack-ci[bot] 59f8b24e27 fix(kubernetes-nodes): surge one worker at a time during a pool rollout (#5399)
<!-- Thank you for making a contribution! Here are some tips for you:
- Use Conventional Commits for the PR title: `type(scope): description`
- Types: feat, fix, security (a fix that comes through a security
advisory), docs, style, refactor, perf, test, build, ci, chore
- Scopes are not an exhaustive list — pick the most specific scope for
the change and extend the list when a genuinely new area appears.
Examples:
- System components: dashboard, platform, operator, cilium, kube-ovn,
linstor, fluxcd, cluster-api
- Managed apps: postgres, mariadb, redis, kafka, clickhouse,
virtual-machine, kubernetes
- Development and maintenance: api, hack, tests, ci, docs, maintenance
- Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or
add a `BREAKING CHANGE:` footer
- If it's a work in progress, consider creating this PR as a draft.
- Don't hesistate to ask for opinion and review in the community chats,
even if it's still a draft.
- Fixes merged to `main` reach the release lines the backport batch runs
for automatically, so do not open backport PRs by hand:
https://github.com/cozystack/cozystack/blob/main/docs/release/backports.md
-->

## What this PR does

A worker pool rollout (instance type, image or version change) currently
surges up to `maxReplicas` new VMs before draining an old one, so a pool
running 8 workers under a ceiling of 10 can reach 18 VMs at its peak.
Those VMs land in the tenant's namespace: today they count against its
`ResourceQuota`, and under [tenant quotas as reservation
limits](https://github.com/cozystack/community/pull/48), where a pool
reserves `maxReplicas` workers, they are capacity nobody reserved. This
PR fixes the surge at one Machine per pool.

The surge is treated as platform margin rather than tenant budget:
rollouts are mostly platform-driven, and charging them to the tenant
would block a platform upgrade for any tenant whose pool sits at its
ceiling. Bounding that margin is what this PR does. `maxUnavailable` is
untouched, so a node is still only drained once its replacement is up
(#5153).

The value is the open question for maintainers. **1** keeps the loan to
a single worker per pool and is what this PR ships; a large pool then
rolls one worker at a time. **2** halves the rollout time of a large
pool at twice the margin. I would rather not make it a chart value,
since tenants write the values and would then size the platform's margin
themselves.

Tested with `helm unittest` on `kubernetes-nodes`; the three golden
renders change only in `maxSurge`.

Refs: cozystack/community#48, cozystack/cozystack#5397

### Screenshots

Not a UI change.

### Downstream repositories

<!--
Cozystack is upstream for repositories that are NOT kept in sync with it
automatically, and nothing in CI compares the two sides, so a change
here can break them silently.

Which change forces what, and which file to touch, is the trigger map in
docs/agents/contributing.md under "Downstream Repositories". Walk it
before you tick anything.

IF YOU ARE AN AI AGENT OR AN LLM, THIS IS PART OF THE TASK, NOT A FORM
TO FILL IN:

1. Walk the trigger map against the actual diff of this PR, file by
file. Do not decide from the PR title or from your memory of what you
changed.
2. For every repository you tick, open the follow-up PR there and link
it on the same line. A ticked box with no link claims work that does not
exist, which is worse than an empty box. Search that repository for an
open PR or issue covering it first, and link that instead of filing a
duplicate.
3. When the follow-up is out of scope, or needs a decision that is not
yours to make, open an issue in that repository instead, link that, and
say so in the PR body. Do not push a speculative PR into another
repository just to fill a line here.
4. Do not tick "No downstream repository is affected" to make the
checklist go away. If you are unsure, leave every box empty and say so
in the PR body, so a human decides.
-->

I walked the trigger map against the diff: one template line, its
comment and its tests. No values key, schema, default, version enum or
release name changes.

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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

<!--  Write a release note:
- Explain what has changed internally and for users.
- Start with the same `type(scope):` prefix as in the PR title
- Follow the guidelines at
https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md.
-->

```release-note
fix(kubernetes-nodes): a worker pool rollout now adds one replacement worker at a time instead of up to the pool's maxReplicas, bounding the extra capacity a rollout uses in the tenant's namespace. Large pools roll out more slowly.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Behavior Changes**
* Rolling updates now allow a fixed surge of one worker at a time,
regardless of the pool’s maximum replica count. Pools with higher
replica limits no longer increase the surge allowance. This change
applies even when the pool’s minimum and maximum replica counts are both
set to five. The existing default and explicitly configured
`maxUnavailable` behavior remain unchanged.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 22843c5c5c
2026-11-26 06:38:36 +00:00
cozystack-ci[bot] 9e26a289d4 fix(platform): do not gate cert-manager-issuers on ClusterIssuer readiness (#5210)
## What this PR does

This PR makes the cert-manager-issuers release stop waiting for
ClusterIssuers to become Ready. ClusterIssuer is Ready only after
cert-manager registered an ACME account with the CA, so when
letsencrypt-stage can't reach the staging endpoint, helm upgrade of the
release hangs until timeout with `timeout waiting for:
[ClusterIssuer/letsencrypt-stage status: 'InProgress']`. The release
stays not Ready and every package that dependsOn cozystack.cert-manager
stays in DependencyNotReady, even when letsencrypt-prod works and all
certificates are already issued.

Fix is `healthCheckExprs` with `current: "true"` for ClusterIssuer on
the component, the same mechanism vm-default-images uses. It covers the
prod issuer too, I did not special-case staging because the wait is the
same.

Issuers keep their own status and retry registration, so they start
issuing when the CA is back. Certificate requests that come before that
stay Pending with `IssuerNotReady`, they are not failed.

Downside is that unreachable CA no longer shows up as non-Ready Package.
Only signal left is ClusterIssuer's own Ready condition and Certificates
at `Ready=False`, and there is no alert on ClusterIssuer in monitoring
packages yet.

On a cluster where the release is already stuck, the running upgrade has
to time out first (10m by default), then the retry uses the new spec.

letsencrypt-stage is still rendered on every cluster. Making it optional
needs a migration, because the issuers carry
`platform.cozystack.io/no-delete`, so it is not part of this PR.

Checked on a 3-node dev cluster running v1.7.0. I made the staging ACME
host unreachable from the cert-manager controller, so letsencrypt-stage
went to Ready=False with ErrRegisterACMEAccount, and forced an upgrade
of cert-manager-issuers. Without the expression the release hung in the
upgrade action and 23 releases went to DependencyNotReady within 15
seconds (67 of 124 at the peak). I then added the expression to the
PackageSource by hand, since I did not install a build of this branch.
The stuck upgrade ran until its timeout, the retry came right after it
and the release was Ready within 2 seconds, a second forced upgrade took
8 seconds, and all 124 releases converged with letsencrypt-stage still
False. After I made the host reachable again the issuer registered by
itself in about 30 seconds.

### Screenshots

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(platform): the cert-manager-issuers release no longer waits for ClusterIssuers to become Ready, so an unreachable ACME endpoint (staging included) does not hold other platform packages in DependencyNotReady.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Updated cert-manager issuer release checks to use the ClusterIssuer’s
current status and polling. Releases are no longer held up by ACME
readiness, which can remain unavailable even when issuance may recover
without intervention. This also helps prevent dependent packages from
being delayed while waiting for ACME services to become reachable.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: a1be486fb6
2026-11-26 06:38:36 +00:00
Mattia Eleuteri 23464e5b00 fix(kubernetes-nodes): surge one worker at a time during a pool rollout
A worker pool rolled out with maxSurge set to its maxReplicas, so CAPI
could create up to maxReplicas replacement VMs before draining any old
one. A pool running 8 workers under a ceiling of 10 could reach 18 VMs
at the peak of an instance type, image or version change.

Those extra VMs run in the tenant's namespace. Today the namespace
ResourceQuota counts them, so a tenant near its quota sees replacement
launchers refused and the rollout stall. Under quotas as reservation
limits, where a pool reserves maxReplicas workers and the namespace
quota goes away, the surge is capacity the platform lends for the
length of a rollout: rollouts are mostly platform-driven, and counting
them against the tenant would block a platform upgrade for any tenant
whose pool sits at its ceiling. That loan has to be bounded, and with
a surge tied to maxReplicas it was as large as the pool itself.

The surge is now one Machine whatever the pool's size. It stays out of
the values: tenants write them, and would then size the platform's
margin. maxUnavailable is unchanged, so a node is still only drained
once its replacement is up; a large pool now rolls one worker at a
time.

Tested with helm unittest on kubernetes-nodes, with the golden renders
updated for the new surge.

Refs: cozystack/community#48
Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
(cherry picked from commit fffbb97ac9)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-26 06:38:36 +00:00
Myasnikov Daniil 92d78d24de fix(platform): do not gate cert-manager-issuers on ClusterIssuer readiness
A ClusterIssuer turns Ready only after cert-manager has registered an
ACME account with the CA. Under the kstatus wait helm-controller applies
by default, an unreachable Let's Encrypt endpoint, staging included,
keeps the cert-manager-issuers upgrade in progress until it times out.
Every package that dependsOn cozystack.cert-manager then waits behind
that release, so one unreachable CA leaves the platform half rolled out
while the issuers that are in use keep issuing.

Report the issuers as current through healthCheckExprs. The release
completes once the manifests are applied, and the issuers recover on
their own when the CA is reachable again.

Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
(cherry picked from commit 13fefcedda)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
2026-11-26 06:38:36 +00:00
Myasnikov Daniil e4b2e99378 fix(postgres): move tenant PostgreSQL to patched standard-trixie images (#5405)
## What this PR does

Moves the tenant `postgres` application to PostgreSQL minors that fix
CVE-2026-116331, and makes the upgrade repair the indexes that the move
can break.

### Why the images change

CVE-2026-116331 is a type confusion in the min/max aggregate
optimisation: a role that can create objects runs code as the operating
system user of the server. Tenants hold such roles, so this application
is the exposed one. The fixed minors are 18.7, 17.12, 16.16, 15.20 and
14.25.

The default flavor pins bare image tags (`postgresql:17.7`). A bare tag
is the `system` variant on Debian bullseye, and upstream stopped
building it: the fixed minors are published for bookworm and trixie
only. This PR takes `standard-trixie`: the standard variant, because
backups go through the barman-cloud plugin and need none of the barman
binaries the `system` variant adds, and trixie, because the postgis
flavor is on it already, so both image families share one Debian
release. `hack/update-versions.sh` selects bare tags, so it would have
settled on 17.11 and 18.6, which are still affected.

This PR:

- pins `<minor>-standard-trixie` for the default flavor and bumps every
major to its fixed minor;
- bumps the postgis flavor to the same minors (it was already on
`standard-trixie`), which moves PostGIS from 3.6.1 to 3.7.0;
- teaches `hack/update-versions.sh` to pick minors from
`standard-trixie` tags.

PostgreSQL 13 has no fixed release. It keeps the minor 13.22 and stays
exposed to the CVE, and it moves to the trixie variant with every other
major, so it takes the base image change and the index rebuild without
getting the fix. 14.25 is the last release of the 14 line.

### Why the upgrade needs a repair step

For a running default-flavor cluster the image moves from bullseye to
trixie, so glibc goes from 2.31 to 2.41 and ICU's collator version from
153.14 to 153.128 under an existing data directory. An index ordered by
a collation of either library is then ordered by rules the server no
longer applies. PostgreSQL only logs a warning.

Reproduced on a live cluster with 60 000 rows of mixed Unicode text:

| Index collation | After the image change |
|---|---|
| `C` (what the chart creates by default) | intact |
| libc `en_US.utf8` | intact on this data, version mismatch warning |
| ICU `en-x-icu` | `amcheck`: item order invariant violated; 2 604 rows
not found through the index |

A database the chart created with its defaults uses `C` and is not
affected. A tenant who declared `COLLATE` on a column, used an ICU
collation, or created a database with a locale is.

### What the init Job does now

The post-install/post-upgrade Job gets one more pass. It runs after the
passes that manage roles and databases, so a rebuild that fails or runs
out of time costs none of them. In every connectable database it:

1. finds the indexes that depend on a collation whose recorded library
version differs from the one the server reports. PostgreSQL records a
collation for an index only where it orders a key, so the collations of
the columns an index reads in its expressions and its predicate count as
well;
2. rebuilds them with `REINDEX INDEX CONCURRENTLY` (plain `REINDEX` for
an exclusion constraint's index, which cannot be rebuilt concurrently,
so its table is neither read nor written meanwhile);
3. refreshes the recorded versions with `ALTER COLLATION ... REFRESH
VERSION` and `ALTER DATABASE ... REFRESH COLLATION VERSION`, once every
rebuild in that database succeeded.

**Timing.** Helm runs the hook as soon as the `Cluster` is patched,
while CloudNativePG is still rolling the instances, so the primary can
answer from the old image for minutes. The Job runs the new image, so it
waits until the server reports the same PostgreSQL version and Debian
release as its own `psql`. The rebuild counter of the package is left
out, because a tag is rebuilt in place and the Job can pull a newer
rebuild than the instances run. It waits only when an index depends on a
versioned collation; a cluster with nothing to rebuild is not delayed.

**Retries.** `REINDEX CONCURRENTLY` gives an index a new OID, so the
highest OID seen when a repair begins separates the indexes still to
rebuild from the ones already done. That mark is kept as a setting of
the database (`cozystack.collation_repair`) with a fingerprint of the
stale collations and the list of indexes rebuilt in place, and removed
when the repair is complete. A retry therefore continues instead of
starting over.

**Failures.** A rebuild that fails does not stop the others. The pass
reports the failures and exits non-zero at the end. A failed or
interrupted `REINDEX CONCURRENTLY` leaves an invalid `_ccnew` index on
the table; two of those mean two runs failed there, and the pass then
leaves that table's stale indexes to an operator instead of scanning the
table again on every retry. A rebuild that succeeds drops the leftovers;
dropping them by hand lets the next run try again. An in-place rebuild
leaves no such trace, so the setting records each attempt with the
index's storage file: a changed file means the index was rebuilt, by a
run or by hand, and two attempts on the same file leave it to an
operator. A rebuild that waits for a lock behind an open transaction
gives up when the Job runs out of time, and an in-place rebuild is cut
off at the same point, so no backend is left waiting or holding the
table after the Job is gone. A concurrent rebuild that is already
running is not cut short.

**Privileges.** The Job connects as the superuser, so every session of
the pass sets `search_path` to `pg_catalog, pg_temp`. A function or
operator that a tenant defined in `public` cannot be picked in place of
a built-in.

**Before PostgreSQL 15** the server records no version for a database's
default collation. The version recorded for the libc collation of the
same locale stands in for it; the two are matched as glibc matches them,
so `en_US.UTF-8` finds `en_US.utf8`. A locale with no such collation
cannot be checked, and a run that saw the image change says so in a
warning that names the database.

**Range partition keys.** Rebuilding an index does not move a row to the
partition the new ordering assigns it. A collation that such a key
depends on keeps its recorded version, so PostgreSQL keeps logging the
mismatch, and the Job prints a warning that names the table on every
run. Its indexes are still rebuilt, once.

The pass is driven by the version mismatch, not by this particular image
change, so it also applies to later glibc or ICU bumps.

### Verified

`helm unittest` passes for the chart (236 tests). The e2e suite gains a
step that creates a collation with a stale version, upgrades the release
and checks that the index was rebuilt and the version refreshed.

On a live cluster, applications were installed from the v1.7.0 chart and
upgraded with this change applied on top of v1.7.0. Each had a client
holding a connection, which is what makes the primary restart take
minutes.

| Case | Outcome |
|---|---|
| v17, two instances, default `C` collation only | Job finished in 15 s
without waiting; data identical; `amcheck` clean |
| v17, two instances, ICU, libc, expression, unique, exclusion and
partition indexes | Job waited about 3.5 min for the primary, rebuilt
seven indexes; `amcheck` clean; every row found through the ICU index
again (run with the first revision of the pass) |
| v17, two instances, backups to the system bucket | a backup taken
before and one taken after the upgrade both succeed; WAL archiving
continues with no failed segment, so the barman-cloud plugin covers the
binaries the `standard` variant lacks |
| v18, an application that had been running for months (18.1 to 18.7) |
row counts identical; `amcheck` clean |
| v14 (14.20 to 14.25) and v13 (13.22, base image only) with the same
index set | Job waited, rebuilt six indexes; `amcheck` clean |

The pass itself was also run against a live server for the cases an
upgrade does not produce on demand:

- a second run does nothing;
- a failed rebuild leaves the other indexes rebuilt, and a later run
rebuilds only the failed one;
- after two failed runs the index is left alone until it is rebuilt by
hand, and the pass then completes;
- an exclusion constraint's index is rebuilt in place once, not again by
a retry; when a writer blocks it twice it is left alone, and after a
manual `REINDEX INDEX` the pass completes;
- a collation under a range partition key stays stale and its indexes
are not rebuilt twice;
- a rebuild blocked by an open transaction fails on its lock wait and
leaves no waiting backend; it succeeds once the transaction ends;
- a tenant function named like a built-in is not called by the pass,
while a session with the default `search_path` does call it;
- on PostgreSQL 14 an index on the database default collation is
rebuilt, also when the locale is spelled `en_US.UTF-8`, and a database
with a locale that has no stand-in gets the warning only in a run that
saw the image change;
- an index whose expression or partial-index predicate reads a column of
a stale collation is rebuilt, although PostgreSQL records no collation
for it.

### Known limits

- **A window of wrong results.** Between the primary restart and the end
of the rebuild, queries through an affected index can miss rows and a
unique index can accept a duplicate. The index cannot be built ahead of
time, because it has to be built by the new library. A duplicate that
slipped in makes that index's rebuild fail until the duplicate is
removed.
- **The hook budget.** The wait ends 120 seconds before the Job's
deadline. A roll that takes longer fails the Job, and the next run finds
the server ready. One index must be rebuilt within one run of the Job. A
very large index on a non-`C` collation does not fit that: after two
attempts the pass stops trying and asks for a manual `REINDEX`, and the
release stays failed until then.
- **Range partition keys** are reported, not repaired.
- **Other dependents** of a collation, such as `CHECK` constraints and
materialized views, are not examined.
- **PostgreSQL 13 and 14, default collation.** A database whose locale
has no libc collation in the catalog has no stand-in. Its
default-collation indexes are not rebuilt; the Job warns about it and
names `REINDEX DATABASE` as the remedy.
- **Collations inside expressions.** An index is found through the
collations that order its keys and through the columns its expressions
and predicate read. A collation that an expression applies to a column
of another collation, with `COLLATE` inside the expression, leaves no
trace in the catalog and is missed.
- **The wait is not in the e2e suite.** The e2e step does not swap the
image, so it runs the rebuild but not the wait for the roll. That part
is covered by the live runs above.
- **PostGIS 3.6.1 to 3.7.0** on the postgis flavor is not exercised
here.
- **Upstream `REINDEX` advice for these minors** is not automated. The
17.12 [release
notes](https://www.postgresql.org/docs/17/release-17-12.html) ask for a
`REINDEX` of btree indexes on unconstrained `bpchar` columns and of
`gist_trgm_ops` indexes, among others.

The flavor guard is unchanged in behaviour; its comment and messages no
longer claim that the two image families always differ in Debian
release.

### Screenshots

N/A — no UI changes.

### Downstream repositories

Walked the trigger map against the diff: two version maps, the image
template, the init script, a comment in `db.yaml`, the version update
script and one unit test of `packages/apps/postgres`, plus one e2e
suite. The `version` enum, `values.yaml`, `values.schema.json`, the
README, the `ApplicationDefinition` and the release prefix are
untouched.

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(postgres): tenant PostgreSQL moves to the minors that fix CVE-2026-116331 (18.7, 17.12, 16.16, 15.20, 14.25) on the standard-trixie image variant. Upgrading rolls every Postgres instance.

- PostgreSQL 13 has no fixed release: it keeps 13.22 and stays exposed to CVE-2026-116331, and it still takes the image move and the index rebuild described below. 14.25 is the last release of the 14 line. Plan a move to a newer major for clusters on 13 and 14.
- For the default flavor the image moves from Debian bullseye to trixie, which changes glibc and ICU. The upgrade rebuilds the indexes that depend on a non-C collation. Until that rebuild finishes such an index can return incomplete results and a unique one can accept duplicates, so plan a maintenance window if you use ICU or locale-specific collations. Databases created with the chart defaults use the C collation and are not affected.
- An exclusion constraint's index is rebuilt in place, and its table is neither read nor written meanwhile.
- When a rebuild cannot finish inside the upgrade Job, the release stays failed and the Job is retried. After two failed attempts the Job stops rebuilding that index, names it in its log and keeps failing until an operator steps in. Expect this for a large index on a non-C collation: rebuild it by hand with `REINDEX INDEX CONCURRENTLY`, drop the invalid `_ccnew` indexes the failed attempts left on its table, and the next run completes. A unique index fails the same way while it holds duplicates, which have to be removed first.
- Tables range-partitioned on a text key with a non-C collation need a manual check, after which the collation version is refreshed by hand.
- On the postgis flavor PostGIS moves from 3.6.1 to 3.7.0, and the upgrade does not update the extension in existing databases: once the new image has rolled out to the primary, run `ALTER EXTENSION postgis UPDATE` in each database that uses it.
```

Backported-from: 30ce2a3cb1
2026-11-25 10:49:47 +00:00
Andrey Kolkov f0820507aa fix(postgres): move the default flavor to patched standard-trixie images
The default flavor pinned bare image tags, which are the system variant
on Debian bullseye. Upstream stopped building that variant, so the minors
that fix CVE-2026-116331 (18.7, 17.12, 16.16, 15.20, 14.25) are published
for bookworm and trixie only. The CVE is a type confusion in the min/max
aggregate optimisation that lets a role able to create objects run code
as the operating system user of the server, and tenants hold such roles.

Pin the patched minors on standard-trixie, and move the postgis flavor to
the same minors. The standard variant, because backups go through the
barman-cloud plugin and need none of the barman binaries the system
variant adds. trixie, because the postgis flavor is on it already, so
both image families share one Debian release. PostgreSQL 13 has no
patched release: it keeps 13.22 and moves to trixie with the rest.

For a running default-flavor cluster this changes the Debian release under
the data directory. The init Job rebuilds the indexes that depend on a
collation whose library version changed.

Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
(cherry picked from commit b40be51a6b)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:47 +00:00
Andrey Kolkov 98866c9b49 fix(postgres): rebuild indexes whose collation changed version
An operand image built on another Debian release ships another glibc and
ICU. An index ordered by a collation of either library is then ordered by
rules the server no longer applies: lookups through it miss rows, and a
unique index stops seeing duplicates. PostgreSQL only logs a warning.

The init Job compares the library version each collation was created with
against the one the server reports, rebuilds the indexes that depend on a
collation whose version changed, and refreshes the recorded versions once
every rebuild in the database succeeded. A database on the C or POSIX
collation with no explicitly collated index, which is what the chart
creates by default, has nothing to rebuild and is not delayed.

The pass has to hold on a hook that starts while the instances are still
rolling, runs as the superuser in databases tenants own, and is retried
after a failure:

- It runs after the passes that manage roles and databases, so that a
  rebuild that fails costs none of them, and it waits for the server to
  report the PostgreSQL version and Debian release of its own image when
  an index depends on a versioned collation. The rebuild counter of the
  package is left out of that comparison, because a tag is rebuilt in
  place.
- Every session pins search_path to pg_catalog, so that a function or an
  operator a tenant defined in public cannot stand in for a built-in.
- A retry continues where the last run stopped. REINDEX CONCURRENTLY gives
  an index a new OID, so the highest OID seen when a repair begins marks
  what is left; an index rebuilt in place keeps its OID and is told apart
  by its storage file. Both live in a setting of the database.
- A rebuild that cannot finish is not started for ever: after two
  attempts the index is left to an operator, the pass says how to clear
  it, and the release stays failed until then. Lock waits and in-place
  rebuilds are bounded by what is left of the Job.
- A collation that a range partition key depends on keeps its recorded
  version, because rebuilding an index moves no row between partitions.

PostgreSQL records a collation for an index only where it orders a key,
so the collations of the columns an index reads in its expressions and
predicate count as well. Before PostgreSQL 15 the server records no
version for a database's default collation, and the libc collation of the
same locale stands in for it.

The e2e suite creates a collation with a stale version and checks that an
upgrade rebuilds a unique index and an exclusion constraint's index on it,
refreshes the version and removes the repair setting.

Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
(cherry picked from commit a10e449a56)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:47 +00:00
Myasnikov Daniil e78496f91f fix(ingress-nginx): turn off TLS session tickets for CVE-2026-97629 (#5407)
## What this PR does

Turns off TLS session tickets in the ingress-nginx controller
(`ssl-session-tickets: "false"`).

[CVE-2026-97629](https://nginx.org/en/security_advisories.html): with
session tickets on and no fixed ticket key, nginx rotates its ticket
keys and, before 1.30.6 and 1.31.7, leaves one of them uninitialized in
the worker processes, which may allow a session to be forged. The
platform sets tickets on and no `ssl-session-ticket-key`, so it runs
exactly that path, and the controller nginx 1.25.5 does not carry the
fix ([`fdedba03`](https://github.com/nginx/nginx/commit/fdedba031b))
yet. It will come with the next rebuild of the controller image; this
change closes the hole without waiting for it.

What it costs is small. TLS session resumption keeps working through
`ssl_session_cache`, which the controller has on. And with no fixed
ticket key every pod had its own keys, so a ticket never resumed a
session on another replica anyway.

`make test` in the chart passes.

### Screenshots

N/A, no UI changes.

### Downstream repositories

Walked the trigger map against the diff: one controller ConfigMap value
in `packages/system/ingress-nginx/values.yaml`. No package, platform
values key, schema or app README changes.

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(ingress-nginx): TLS session tickets are turned off in the ingress-nginx controller (CVE-2026-97629). TLS session resumption keeps working through the shared session cache.
```



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Security**
* SSL session tickets are now disabled for ingress connections. TLS
session resumption remains available through the shared session cache,
so existing session reuse behavior continues without session tickets.
This changes how session resumption is handled while preserving the
cache-based option.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 7b9b4347b2
2026-11-25 10:49:46 +00:00
Myasnikov Daniil b5bd292a7a fix(cozystack-basics): make the tenant super-admin VirtualMachine grant read-only (#4797)
<!-- Thank you for making a contribution! Here are some tips for you:
- Use Conventional Commits for the PR title: `type(scope): description`
- Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore
- Scopes are not an exhaustive list — pick the most specific scope for
the change and extend the list when a genuinely new area appears.
Examples:
- System components: dashboard, platform, operator, cilium, kube-ovn,
linstor, fluxcd, cluster-api
- Managed apps: postgres, mariadb, redis, kafka, clickhouse,
virtual-machine, kubernetes
- Development and maintenance: api, hack, tests, ci, docs, maintenance
- Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or
add a `BREAKING CHANGE:` footer
- If it's a work in progress, consider creating this PR as a draft.
- Don't hesistate to ask for opinion and review in the community chats,
even if it's still a draft.
- Add the label `kind/backport` if it's a bugfix that needs to be
backported to a previous version.
-->

## What this PR does

`cozy:tenant:super-admin:base` granted `'*'` on
`kubevirt.io/virtualmachines`, so a tenant super-admin could create a
`VirtualMachine` of any size in their namespace, or edit the one a
`VMInstance` release rendered and raise its guest size. Such a VM is not
a HelmRelease the tenant ordered, so nothing that accounts for
applications sees it. The grant arrived in #516 together with a `'*'` on
`helmreleases`; that one was removed since, this one was not.

Nothing in tree needs the write. Power goes through the
`virtualmachines/start|stop|restart` subresources and console/VNC
through the VMI subresources, both granted at the `use` level; size,
disks and networking go through `VMInstance` values; Forklift's Plan
admission check runs against the migration-controller's own service
account, not the tenant. The rule becomes `get`, `list`, `watch`.
`watch` stays on purpose: the dashboard's power controls and VNC/serial
tabs watch the `VirtualMachine` for its live state, and no other tenant
role grants it.

The tenant roles are aggregated from ClusterRoles in several packages
(`cozystack-basics`, `backup-controller`, `migration-controller`,
`cozystack-scheduler`), so a write path can reach a tenant without
touching the role that names it. A new test in
`hack/e2e-install-cozystack.bats`, right after `tenant-test` is created,
reads the effective rules of the `tenant-test-super-admin` group back
from the apiserver in a single `SelfSubjectRulesReview`, fails if that
review reports itself incomplete or carries an `evaluationError` (both
of which `kubectl auth can-i --list` lets through with exit 0),
subtracts what a bare `system:authenticated` identity already holds, and
fails on any write verb that
`hack/e2e-tenant-super-admin-write-verbs.yaml` does not name. A line
covered by a wildcard grant is folded into it, so a new
`apps.cozystack.io` kind does not need an allowlist edit. An allowlisted
entry the cluster does not grant is printed without failing, for lanes
that disable a package through `COZY_DISABLED_PACKAGES`. The allowlist
sits under `hack/e2e-*.yaml`, which `select-e2e.sh` already escalates to
the full suite. A helm-unittest on the role catches the same regression
on the unit lane.

Verified outside CI on a throwaway k3s v1.33 loaded with the rendered
tenant ClusterRoles and the tenant RoleBindings, through
`hack/cozytest.sh`: with `main`'s roles the test fails and names
`virtualmachines.kubevirt.io - *`; with this change it passes; with the
migration-controller roles removed it passes and prints the eight
`forklift.cozystack.io` entries as not granted. The two awk programs
give the same result under mawk and dash (`ubuntu:24.04`) as on macOS.
The new helm-unittest fails against `main`'s template and passes here.
`hack/bats-runner-coverage.bats`, `hack/bats-no-exit-trap.bats` and
`hack/select-e2e_test.bats` pass.

This change is the standalone fix of the RBAC prerequisite described in
the tenant-quota design proposal, cozystack/community#48, where review
asked for it to land on `main` independently of that design.

### Screenshots

No UI change.

### Downstream repositories

<!--
Cozystack is upstream for repositories that are NOT kept in sync with it
automatically, and nothing in CI compares the two sides, so a change
here can break them silently.

Which change forces what, and which file to touch, is the trigger map in
docs/agents/contributing.md under "Downstream Repositories". Walk it
before you tick anything.

IF YOU ARE AN AI AGENT OR AN LLM, THIS IS PART OF THE TASK, NOT A FORM
TO FILL IN:

1. Walk the trigger map against the actual diff of this PR, file by
file. Do not decide from the PR title or from your memory of what you
changed.
2. For every repository you tick, open the follow-up PR there and link
it on the same line. A ticked box with no link claims work that does not
exist, which is worse than an empty box. Search that repository for an
open PR or issue covering it first, and link that instead of filing a
duplicate.
3. When the follow-up is out of scope, or needs a decision that is not
yours to make, open an issue in that repository instead, link that, and
say so in the PR body. Do not push a speculative PR into another
repository just to fill a line here.
4. Do not tick "No downstream repository is affected" to make the
checklist go away. If you are unsure, leave every box empty and say so
in the PR body, so a human decides.
-->

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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:

Walked the trigger map against the diff: an RBAC narrowing in
`cozystack-basics` plus e2e harness files touch no values key, CRD,
`ApplicationDefinition`, package list or tooling path. The one website
page that patches `virtualmachines.kubevirt.io` directly,
`networking/virtual-router.md`, is a procedure that "requires a
Cozystack administrator account", which this change does not affect.

### Release note

```release-note
fix(cozystack-basics): tenant super-admins can no longer create, edit or delete `kubevirt.io` VirtualMachines directly; they keep read and watch. Virtual machines are managed through VMInstance and VMDisk applications, power through the start/stop/restart actions. The install e2e now fails when a tenant super-admin gains a write verb outside a checked-in allowlist.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Access Control**
* Tenant super-admins can view KubeVirt virtual machines with read-only
permissions through the base role; it no longer grants broad write
access to these resources.
* Tenant super-admin write permissions are checked against an explicit
allowlist. Permissions outside the approved list cause the end-to-end
check to fail, while approved permissions not currently granted do not.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 86ad3870d1
2026-11-25 10:49:46 +00:00
Andrei Kvapil 98ced7da42 fix(ingress-nginx): turn off TLS session tickets for CVE-2026-97629
With tickets on and no fixed ticket key, nginx rotates the keys and,
before 1.30.6 and 1.31.7, leaves one of them uninitialized in the
worker processes, which may let a session be forged. The controller's
nginx 1.25.5 does not have the fix yet. Resumption still works through
the shared session cache, and with no fixed key tickets never resumed
across replicas anyway.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
(cherry picked from commit 3002f3183b)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:46 +00:00
Myasnikov Daniil f47c7cd82c fix(tenant): render the LimitRange only under a compute quota (#4954)
## What this PR does

The tenant chart rendered `tenant-range-limits` whenever
`resourceQuotas` was non-empty. Under a quota on something other than
compute, for example `{services.loadbalancers: "1"}`, `storage` or
`nvidia.com/gpu` alone, its 128Mi default memory limit still applied to
every container and refused any pod that requests more memory without a
limit of its own. virt-launcher is one of those, so VMs could not start
in such a tenant.

The LimitRange exists so pods without requests or limits pass a quota
that tracks `cpu`, `memory` or `ephemeral-storage`. This PR has it
default each of those three only when the flattened quota bounds that
resource (its `requests.*` or `limits.*` key), and renders no LimitRange
when the quota bounds none of them. A quota on all three renders the
LimitRange exactly as before, with the same values. The ResourceQuota is
unchanged. The system memory limits guide has moved to the website and
described the old condition in two places; the follow-up below updates
it. A second commit qualifies the comments in the operator, the tenant
quota controller, the backup controller and the barman and kafka charts
that still said every tenant with `resourceQuotas` gets a 128Mi memory
default.

Tests:

- New `packages/apps/tenant/tests/quota_limitrange_test.yaml` (9 tests):
no LimitRange under a quota on load balancers, storage or GPUs alone;
only the cpu, only the memory, or only the ephemeral-storage defaults
under a quota on that resource alone; only memory beside non-compute
keys; every default, values unchanged, under a quota on all three.
- Against main's template, 7 of the 9 tests fail. The two that pass are
the empty quota and the full cpu, memory and ephemeral-storage quota,
which keep their behaviour.
- `helm unittest` for the whole tenant chart: 23 suites, 98 tests pass.
- `helm template` of `templates/quota.yaml` under `{cpu, memory,
ephemeral-storage}` is identical to main.

I did not reproduce the virt-launcher admission failure on a live
cluster; the reproduction in the issue is from a test cluster on main.

Fixes #4930

### Screenshots

Not a UI change.

### Downstream repositories

- [ ] No downstream repository is affected by this change
- [x] [cozystack/website](https://github.com/cozystack/website) -
follow-up: cozystack/website#817
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(tenant): the tenant LimitRange now defaults cpu, memory and ephemeral-storage only when resourceQuotas bounds that resource, so a quota without memory no longer gives containers a 128Mi default memory limit that kept VMs from starting.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* LimitRange settings are now rendered only when quotas bound CPU,
memory, or ephemeral storage. Defaults are included only for the bounded
resources; quotas limited to load balancers, storage, or GPUs do not
trigger a LimitRange on their own.
* **Documentation**
* Clarified when tenant namespaces receive LimitRange defaults,
including the resource-specific conditions for CPU, memory, and
ephemeral storage.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 94d710e50f
2026-11-25 10:49:46 +00:00
Mattia Eleuteri f9552cebe6 fix(cozystack-basics): make the tenant super-admin VirtualMachine grant read-only
cozy:tenant:super-admin:base carried '*' on kubevirt.io virtualmachines.
A VirtualMachine written directly is sized outside any application: it
is not a HelmRelease the tenant ordered, so nothing that accounts for
applications sees it, and the same verbs let a super-admin raise the
guest size of a VM a VMInstance release rendered. Nothing in tree needs
the write: power goes through the virtualmachines start/stop/restart
subresources, console and VNC through the VMI subresources, size, disks
and networking through VMInstance values. The grant arrived together
with a '*' on helmreleases that was later removed; this one was missed.

watch stays, because the dashboard watches the VirtualMachine for its
live power state and no other tenant role grants it.

The tenant roles are aggregated from ClusterRoles in several packages,
so a write path can reach a tenant without touching the role that
names it; the install e2e now guards against that.

Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
(cherry picked from commit ad47521c95)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:46 +00:00
Nimesh Kulkarni 6be80ea299 docs(tenant): qualify LimitRange defaults by the bounded resource
tenant-range-limits now defaults cpu, memory and ephemeral-storage
each only when resourceQuotas bounds that resource, and is not
rendered at all under a quota on none of them. Comments in the
operator, the tenant quota controller, the backup controller and the
barman and kafka charts still said every tenant with resourceQuotas
gets a 128Mi memory default, which would mislead the next change made
on that assumption.

The tenant quota controller's gate on limits.cpu or limits.memory
stays: a root rendered by an older chart may still carry a LimitRange
under a quota that bounds no compute.

Assisted-by: LLM
Signed-off-by: Nimesh Kulkarni <167794819+GitNimay@users.noreply.github.com>
(cherry picked from commit 46f03b8748)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:46 +00:00
Nimesh Kulkarni 3bda3f4e95 fix(tenant): default only the resources the tenant quota bounds
The tenant chart rendered tenant-range-limits whenever resourceQuotas
was non-empty. Its 128Mi default memory limit then applied under a
quota on load balancers, storage or GPUs alone, or on cpu or
ephemeral-storage without memory, and refused any pod that requests
more memory without a limit of its own, virt-launcher included, so
VMs could not start in such a tenant.

The LimitRange is there so pods without requests or limits pass a
quota that tracks cpu, memory or ephemeral-storage. Default each of
those three only when the flattened quota bounds that resource, and
render no LimitRange when it bounds none of them. A quota on all
three renders the LimitRange exactly as before, with the same values.

Closes: #4930

Assisted-by: LLM
Signed-off-by: Nimesh Kulkarni <167794819+GitNimay@users.noreply.github.com>
(cherry picked from commit 6014860c93)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:46 +00:00
Myasnikov Daniil 47d1a7415f fix(platform): bump system PostgreSQL to 17.12 (#5403)
## What this PR does

Moves the PostgreSQL image pin of the system databases from
`17.7-standard-trixie` to `17.12-standard-trixie`.

PostgreSQL 17.7 is affected by CVE-2026-116331: a type confusion in the
min/max aggregate optimisation lets a role that can create objects run
code as the operating system user of the server. The 17.x line fixes it
in 17.12.

The pin lives in the `Cluster` templates of five system databases, and
the charts expose no value for it, so a release is the only way to move
them:

- Keycloak (`keycloak-db`)
- Harbor
- Grafana (`grafana-db`)
- Alerta (`alerta-db`)
- SeaweedFS (`seaweedfs-db`), together with its unit test

What an upgrade does on a running cluster:

- Every system database on a 17.x image is moved to 17.12. CloudNativePG
rolls the replicas first and then restarts the primary in place.
- The primary restart goes through the smart shutdown window (180
seconds by default) while clients hold connections, followed by a short
hard interruption. Plan for a few minutes per database.
- A database that was moved to another major keeps its image, as before.

The image variant and the Debian release do not change, so glibc and ICU
stay the same under the data directory and no index needs a rebuild.

Verified on live clusters, on both the 1.6 line (CloudNativePG 1.28) and
the 1.7 line (CloudNativePG 1.30):

- a two-instance cluster and a real Keycloak database went from 17.7 to
17.12 with identical row counts, `amcheck` clean on every btree index,
and streaming replication restored;
- Keycloak reported healthy, database check included, after the roll;
- collation versions were the same before and after.

Not in this PR: the tenant `postgres` application. It uses a different
image family and needs separate handling.

Migration 37 keeps its 17.7 target on purpose: it is a one-time step for
clusters coming from older releases, and the chart moves them to 17.12
right after.

### Screenshots

N/A — no UI changes.

### Downstream repositories

Walked the trigger map against the diff: five `Cluster` templates under
`packages/system/` and one unit test. No value, schema, API, CRD,
variant, package or asset changes.

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(platform): system PostgreSQL databases (Keycloak, Harbor, Grafana, Alerta, SeaweedFS) move from 17.7 to 17.12-standard-trixie, which fixes CVE-2026-116331. On upgrade each of these databases is rolled: replicas first, then the primary is restarted in place, with a brief interruption of a few minutes per database.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Updates**
* Updated the default PostgreSQL image to version 17.12 across database
services. Existing custom image handling remains unchanged.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: eb284424d0
2026-11-25 10:49:45 +00:00
Myasnikov Daniil ddc1eeda2b fix(harbor): meter the registry bucket under the registry WorkloadMonitor (#5392)
## What this PR does

The WorkloadMonitor controller finds BucketClaims by the monitor's label
selector. The registry BucketClaim carried no labels, so it never got a
Workload and Harbor's object storage was invisible to billing. Before
the registry moved to S3 its PVC carried the vendored chart's release
and component labels and was reported under the registry monitor;
labelling the BucketClaim the same way restores that.

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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

<!--  Write a release note:
- Explain what has changed internally and for users.
- Start with the same `type(scope):` prefix as in the PR title
- Follow the guidelines at
https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md.
-->

```release-note
fix(harbor): Harbor registry storage is billed again. The WorkloadMonitor controller finds BucketClaims by label, and the registry BucketClaim had no labels. It now carries the registry monitor's `release` and
  `component` labels, so its storage shows up as Workload under the registry WorkloadMonitor, the same way the registry PVC did before it moved to S3. And also registry WorkloadMonitor now reports not operational while the BucketClaim is not provisioned
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Improvements**
* Harbor registry storage claims now include release and component
labels, making them identifiable as part of the Harbor system and
registry.
* Registry workload monitoring now selects storage claims using these
labels.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: a19846c77e
2026-11-25 10:49:45 +00:00
Andrey Kolkov b5e19bdfa3 fix(platform): bump system PostgreSQL to 17.12
The system databases (Keycloak, Harbor, Grafana, Alerta, SeaweedFS) are
pinned to PostgreSQL 17.7, which is affected by CVE-2026-116331: a type
confusion in the min/max aggregate optimisation lets a role that can
create objects run code as the operating system user of the server.
The 17.x line fixes it in 17.12.

Move the pin to 17.12-standard-trixie. The image variant and the Debian
release stay the same, so glibc and ICU do not change under the data
directory. Clusters on another major keep their image, as before.

Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
(cherry picked from commit 8800d0177b)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:45 +00:00
Myasnikov Daniil fdbd9580fe fix(api): validate workload memory before storing an application (#5348)
## What this PR does

The application API accepts `memory: 8` and stores an eight-byte
workload request. On main, #5009 catches it later when Helm renders the
chart. This patch returns HTTP 422 to the caller on create, upsert, or
an update that introduces such a value.

The check follows declared workload resource fields in the chart schema.
An unrelated edit to an existing application with a smaller value still
passes admission. Existing chart checks continue to apply at render
time. A tenant's zero memory quota and arbitrary chart configuration
keep their existing meaning.

The regression tests exercise the REST create and update paths and
verify that a rejected edit leaves storage untouched. The same change
passed the application registry package tests on main and on
release-1.7. Related to #5004 and #5009.

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(api): reject new workload memory values below 1Mi before storing an application. Updates to unrelated fields on existing applications with smaller values still pass admission.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Application creation and updates reject workload memory settings below
the supported minimum of 1 MiB. Values at or above the minimum are
accepted, and existing below-minimum values may remain unchanged.
* Memory settings in quotas and free-form configuration are not
affected. When concurrent updates occur, memory is rechecked against the
latest stored values, preserving repairs and preventing stale updates
from restoring below-minimum settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 7380828271
2026-11-25 10:49:45 +00:00
Ray Low 223785486d fix(harbor): meter the registry bucket under the registry WorkloadMonitor
The WorkloadMonitor controller finds BucketClaims by the monitor's
label selector. The registry BucketClaim carried no labels, so it
never got a Workload and Harbor's object storage was invisible to
billing. Before the registry moved to S3 its PVC carried the vendored
chart's release and component labels and was reported under the
registry monitor; labelling the BucketClaim the same way restores that.

Assisted-by: LLM
Signed-off-by: Ray Low <crossrt@gmail.com>
(cherry picked from commit 732165eebd)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:45 +00:00
Myasnikov Daniil e13f9c6cba fix(gateway): copy allowed routes for the edge listener (#4167)
## What this PR does

Fixes #4118. The `edge` listener retained the renderer's local
`edgeAllowedRoutes` value, while `edge-apex` and child listeners already
received independent copies. Give `edge` its own `DeepCopy()` as well,
so later changes to the local value cannot reach the rendered listener.
The rendered Gateway configuration is unchanged.

The change is confined to that one assignment. Current main already
creates independent allowed-routes values for HTTPS and TLS-passthrough
listeners.

Validation: `go test ./internal/controller/tenantgateway -count=1`
passes. No new test is added, as accepted in the maintainer's review.

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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:

The diff changes only ownership of a local allowed-routes value; API
fields, namespace selectors, route kinds, package layout and rendered
resources stay the same, so it reaches none of the downstream trigger
map's contracts.

### Release note

```release-note
fix(gateway): give the edge TenantGateway listener its own allowed-routes copy; rendered Gateway configuration is unchanged
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Fixed edge-mode gateway listeners so each retains its own
allowed-routes configuration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 2af1e21299
2026-11-25 10:49:45 +00:00
Yan Bondarenko e65cec9418 fix(api): validate workload memory before storing an application
A memory quantity without a unit is measured in bytes. Reject new values
below 1Mi before storing them, while allowing unrelated API edits to
applications that already carry a smaller value. The check runs against
the live release right before the write, so a stale value read at the
start of Update cannot overwrite memory another writer has fixed since.

Assisted-by: LLM
Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com>
(cherry picked from commit 46c70422c4)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:45 +00:00
Myasnikov Daniil 2ac9c8e64b fix(api): make monitor watch versions usable as delete preconditions (#5326)
## What this PR does

A resourceVersion from an Application watch event triggered by a
WorkloadMonitor can now be used as a delete precondition. Today such a
delete always gets 409, because the event carries the monitor's version
and it never matches the HelmRelease.

The event keeps the monitor's version. #2356 added it so a status-only
change reaches informer handlers: client-go's shared informer treats an
update with an unchanged resourceVersion as a resync and hides it from
handlers that are not resyncing. That reason still holds.

The event is now built from a release no older than the monitor. The
cached release is used when it is new enough, otherwise the release is
read live. Before this, the spec came from a cache that can lag behind
the monitor, so the version and the spec in one event could describe
different states. The event carries the newer of the two versions.

A delete precondition is checked against the live release, and only an
older value is a conflict. A newer value is safe to accept because
HelmReleases and WorkloadMonitors live in one etcd, so their versions
come from one sequence. If the live release is still not newer than the
value the client sent, it has not changed since the event's spec was
read. A malformed precondition now gets 400 instead of 409.

Update is not touched. On main it overwrites the caller's
resourceVersion on conflict. #5234 makes it strict with the same rule.

### Limitations

- Late or replayed monitor event. The two backing watches are not
ordered, and a resumed watch replays monitors. When an event would
repeat a version the client may already hold, it falls back to the
monitor's own version, and the object's version steps back. A delete
with that version gets 409 at least until the object's next release
event or monitor change. No write is lost.
- Watch start. An application whose monitors are older than its release
gets an extra MODIFIED event with the lower monitor version. The same
409 window applies.
- Cost. At start and on reconnect a watch reads the release live once
per monitor written after its release last changed. After that it is at
most one live read per monitor status change per open watch. A monitor
whose release is gone or not cached yet now costs a live 404 per event,
where main skipped the event.
- A release event that comes after a monitor event already carried its
version is hidden from informer handlers. Its spec already arrived, and
each monitor's own change still arrives. With several monitors per
application it no longer corrects another monitor's status taken from a
lagging cache. That problem exists on main too: #5325.
- A live read gets one minute, retries included. When it runs out, the
watch ends and the client reconnects. There is no fallback to the cache:
it would pair a stale spec with a newer version again.
- Resuming a watch can still skip an undelivered HelmRelease change of
another application, same as on main: #5324.

Checked consumers: the in-tree console, the Terraform provider (GET then
PUT, no watch), and a downstream UI. None of them filters events by
resourceVersion equality.

### Screenshots

Not a UI change.

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(api): a resourceVersion from a WorkloadMonitor-triggered Application watch event now works as a delete precondition, and the event's spec matches its version.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Application watch events now report consistent resource versions,
including when updates arrive out of order or are replayed after
reconnecting.
* Watch events use current release data when cached data is missing or
outdated, retry transient read failures, and stop promptly when the
watch is canceled or times out.
* Deletion requests validate supplied resource versions against the
latest release, preventing stale requests from deleting newer changes
and returning clear errors for invalid versions.
* **Tests**
* Added coverage for watch-event version handling, read retries and
cancellation, replay behavior, and deletion requests with current,
stale, or invalid versions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 69ba61547e
2026-11-25 10:49:45 +00:00
7487 7fb7e9dece fix(gateway): copy allowed routes for the edge listener
The edge listener retained the renderer's local allowed-routes value,
while the apex and child listeners already owned independent copies.
Give edge the same ownership so later changes to the local value cannot
reach a rendered listener. The rendered Gateway remains unchanged.

Fixes #4118

Assisted-by: LLM
Signed-off-by: 7487 <1042653432@qq.com>
(cherry picked from commit 79e1fb444c)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:45 +00:00
Myasnikov Daniil 6fda99fab3 fix(linstor): run the NFS server wait init container on the platform CSI image (#5358)
## What this PR does

Closes #5307

The LinstorCluster in `packages/system/linstor/templates/cluster.yaml`
had no `nfsServer.podTemplate`. The NFS server DaemonSet's
`linstor-wait-node-online` init container therefore ran
piraeus-operator's default `quay.io/piraeusdatastore/piraeus-csi` image,
at the operator's own tag. Every other container on the CSI image is
pinned to `linstorCSI.image`.

Changes:
- Adds `nfsServer.podTemplate`, which pins that init container to `{{
.Values.linstorCSI.image.repository }}:{{ .Values.linstorCSI.image.tag
}}`, the same way `csiNode` pins its `linstor-wait-node-online`.
- Sets `nfsServer.enabled: true` explicitly. In piraeus-operator
v2.12.1, `ComponentSpec.IsEnabled()` is `c == nil || c.Enabled`. An
absent `nfsServer` is enabled today, and the CRD also defaults `enabled`
to `true`. Stating it keeps the DaemonSet deployed exactly as now and
doesn't rely on that default.
- Adds a helm-unittest case in `tests/linstor_test.yaml`, next to the
existing CSI image pins. It checks that the init container's image is
the cozystack-built `linstor-csi` and that `nfsServer.enabled` is
`true`.

I checked the container name against upstream
`pkg/resources/cluster/nfs-server/nfs-server-daemon-set.yaml` at
v2.12.1, the vendored operator version. The operator applies
`podTemplate` as a strategic merge patch keyed on the container name
(see `ComponentPodTemplate("DaemonSet", "linstor-csi-nfs-server",
...)`), so only the image changes.

### How I checked it

- `helm unittest .` in `packages/system/linstor`: 6 suites and 25 tests
pass. With the template change reverted, the new case fails.
- `helm template` renders `nfsServer` with the pinned
`ghcr.io/cozystack/cozystack/linstor-csi:v1.6.0@sha256:…` image.
- I haven't tried it on a running cluster.

### Screenshots

Not a UI change.

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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:

This only changes one rendered LinstorCluster field in
`packages/system/linstor`. No values keys, images or versions change.

### Release note

```release-note
fix(linstor): the NFS server's linstor-wait-node-online init container now runs the platform-built linstor-csi image instead of the operator's default.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* LINSTOR clusters now enable the NFS server. Its startup check uses the
image repository and tag configured for LINSTOR CSI, including when
those values are overridden.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 7d64fb7a53
2026-11-25 10:49:44 +00:00
Aleksei Sviridkin 88d132920f fix(api): bound live release reads in application watches
A stalled live release read holds the whole application watch event loop.
End the watch when a refresh runs out of time so clients can reconnect
without relying on stale cached release data.

Fixes: 0ccb3fead7 ("fix(api): retry the live release read behind a monitor event")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
(cherry picked from commit dff4553216)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:44 +00:00
Myasnikov Daniil a869d0b9d3 fix(gateway): skip a child apex the wildcard certificate already covers (#5148)
## What this PR does

In DNS-01 mode the controller added every inheriting child tenant's apex
to the parent Gateway's wildcard Certificate. When the child's host
derives one label below the parent (`ci.mgmt.example.com` under
`mgmt.example.com`), the parent's `*.mgmt.example.com` already covers
that apex, and Let's Encrypt refuses the whole order as redundant, so
the parent Gateway is left with no certificate for any of its hostnames.

`renderWildcardCertificate` now skips a child apex when `*.` plus the
apex without its first label is among the wildcards in the same
Certificate, which is the check Boulder runs in `wildcardOverlap`. The
child's own `*.<child-apex>` stays, and an apex two labels below every
wildcard stays listed, because a certificate wildcard matches exactly
one label. That is also why this does not reuse `hostnameCovers`, which
follows Gateway API matching at any depth. The wildcard set is collected
before the loop because `childApexes` is sorted by name and a covering
child wildcard can sort after the apex it covers.

`TestReconcile_DNS01WildcardCertCoversInheritingChildApexes` asserted
the redundant `alice.example.org` SAN and now asserts its absence. The
new `TestRenderWildcardCertificate_SkipsChildApexCoveredByWildcard`
covers the reported case, a child two labels down, a covering wildcard
that sorts late, and an empty or unrelated apex; the reported case and
the late sorting case fail without the fix. The README paragraph that
describes the SAN list is updated to match. `go test -p 2 ./internal/...
-count=1` and `go vet ./internal/controller/tenantgateway/` pass
locally.

Fixes #5125

### Screenshots

No UI change.

### Downstream repositories

- [ ] No downstream repository is affected by this change
- [x] [cozystack/website](https://github.com/cozystack/website) -
follow-up: https://github.com/cozystack/website/issues/779
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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
fix(gateway): the DNS-01 wildcard Certificate no longer lists a child tenant's apex that the parent's wildcard already covers, so Let's Encrypt stops refusing the order and the parent Gateway gets its certificate again.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Wildcard certificates now omit child apex names already covered by an
existing wildcard while retaining the child wildcard names. Apex names
not covered by a wildcard remain included, and duplicate or empty apex
names are excluded. This keeps certificate names focused on the names
needed for coverage.
* **Documentation**
* Clarified how child apex and wildcard names are included in DNS-01
certificates, including when a child apex is covered by an existing
wildcard.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: b7e72840f9
2026-11-25 10:49:44 +00:00
Adham Kiwan 206bf78c56 fix(linstor): run the NFS server wait init container on the platform CSI image
The LinstorCluster set no nfsServer.podTemplate, so the
linstor-wait-node-online init container of the NFS server DaemonSet ran
piraeus-operator's default CSI image. That image follows the operator
release, not linstorCSI.image, so a cluster that pulls only from a
mirror of the platform images still needed quay.io for it, and a client
behaviour change between the two (as with the certificate variables)
would reach this container without the platform choosing it.

Pin it to linstorCSI.image like the CSI node and controller pods.
nfsServer.enabled is set explicitly, because the operator treats an
absent nfsServer as enabled.

Closes: #5307
Assisted-by: LLM
Signed-off-by: Adham Kiwan <adhamkiwan@outlook.com>
(cherry picked from commit 323bd8bd33)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:44 +00:00
Aleksei Sviridkin 689a81b681 test(api): cancel monitor live reads before retrying
FakeWatcher.Modify synchronizes event receipt, not processing. A test
that cancels after sending the event can lose the retry-delay window
and observe more reads even when cancellation works correctly.

Cancel at the first failed live read and wait for its context to end
before returning the error, so the exact read count does not depend
on which goroutine runs next.

Fixes: 0ccb3fead7 ("fix(api): retry the live release read behind a monitor event")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
(cherry picked from commit 48d83b5f77)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:44 +00:00
Myasnikov Daniil 34e19f0693 fix(api): skip an invalid ApplicationDefinition instead of failing startup (#5357)
## What this PR does

Refs #4976. This covers the startup half of that issue. Admission-time
validation is left for a follow-up, so the issue should stay open.

`resourceConfigFrom` built one resource per ApplicationDefinition and
returned the first error from `buildResourceFromCRD`. A single
definition with an unparseable `release.cozystack.io/*` annotation
therefore stopped cozystack-api for every tenant. The definition
controller rolls cozystack-api when those annotations change, so the bad
definition also triggered the rollout that then failed. Since #4308 a
connected repository can install definitions, so this is no longer only
an operator's own mistake.

Changes:
- `resourceConfigFrom` no longer returns on the first error. It leaves
the definition out of the served kinds, logs `Skipping invalid
ApplicationDefinition "<name>": <reason>`, and returns the errors so
tests can check them. This matches how a definition that loses its kind
to an older one is already left out.
- `buildResourceFromCRD` now also rejects an `openAPISchema` that isn't
valid JSON. `BuildPostProcessV2/V3` parse every served kind's schema
with `patchSpec` and fail the whole OpenAPI spec on one that doesn't
parse. Rejecting it here leaves only that kind out.
- The comment that called a bad annotation "a loud startup failure" is
updated.

Things I deliberately left out:
- Platform and repository definitions are treated the same. The issue
left open whether a broken platform definition should still fail hard.
Skipping keeps the API up either way, and the log line names the
definition, but I'm happy to make platform definitions fatal if you
prefer.
- Nothing surfaces the problem on the definition itself (an event or
status condition). cozystack-api doesn't write to ApplicationDefinitions
today, and that seemed like a separate change.
- Admission validation in
`internal/lineagecontrollerwebhook/appdef_validator.go` (point 1 of the
suggested fix). Its `failurePolicy: Ignore` means it couldn't be the
only guard anyway.

### How I checked it

- Added `TestResourceConfigFromSkipsInvalidDefinition` next to
`TestResourceConfigFromRegistersOwnerOnly`. It uses two valid
definitions, one with `release.cozystack.io/helm-install-timeout: ten
minutes`, and one with a truncated `openAPISchema`. Only the two valid
kinds are served, and both broken ones are reported with their names.
- `go vet ./pkg/cmd/server/` and `go test ./pkg/cmd/server/` pass.
- I haven't run this against a cluster.

### Screenshots

Not a UI change.

### Downstream repositories

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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:

This only changes how cozystack-api starts up. No API, values or CRD
changes.

### Release note

```release-note
fix(api): an ApplicationDefinition with an unparseable release.cozystack.io/* annotation or an invalid openAPISchema is now skipped and logged instead of stopping cozystack-api from starting.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* The server can start when an application definition has an invalid
timeout setting, malformed OpenAPI schema JSON, or other
resource-construction error. Invalid definitions are skipped and
reported, while valid definitions continue to be loaded and served. This
prevents a single invalid definition from blocking startup or preventing
other valid application definitions from being available.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: ec8088e54c
2026-11-25 10:49:44 +00:00
somaz 9037cf175e fix(gateway): skip a child apex the wildcard certificate already covers
In DNS-01 mode every inheriting child tenant's apex went into the
parent Gateway's wildcard Certificate. When a wildcard in the same
Certificate already covers that apex one label up, Let's Encrypt
refuses the whole order as redundant and the parent Gateway gets no
certificate at all. Skip such a SAN, matching the single-label check
Boulder runs in wildcardOverlap.

A child may also use a broader custom domain than the gateway. Its
wildcard then covers the gateway apex, so the same check drops the
gateway SAN too.

Closes: #5125
Co-authored-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com>
Assisted-by: LLM
Signed-off-by: somaz <genius5711@gmail.com>
Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com>
(cherry picked from commit 8382ed1a92)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:44 +00:00
Aleksei Sviridkin af38aad6a0 fix(api): retry the live release read behind a monitor event
When the cached release is older than the monitor revision, the watch
reads the release live so that an event never pairs a stale spec with
the monitor's version. A transient error on that read dropped the
monitor event. Both streams are plain API watches, so nothing replayed
it, and a client kept the old WorkloadsReady state until the next
change of either object.

Retry the live read a few times before giving the event up. This
covers a failure shorter than the retry window; a longer one still
drops the event, as a cache miss did before. A release that is gone is
not retried: the event is dropped after one read. The live reads run
under a context that Stop cancels, so a stopped watch does not wait on
the API server. The tests also pin the two paths that were untested: a
release the cache has not seen yet is read live and delivered, and a
release that is gone everywhere produces no event.

Fixes: f13362b0ee ("fix(api): make monitor watch versions usable as delete preconditions")

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
(cherry picked from commit 0ccb3fead7)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:44 +00:00
Myasnikov Daniil 3254b87209 fix(linstor): roll affinity controller and scheduler on client cert rotation (#5160)
<!-- Thank you for making a contribution! Here are some tips for you:
- Use Conventional Commits for the PR title: `type(scope): description`
- Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore
- Scopes are not an exhaustive list — pick the most specific scope for
the change and extend the list when a genuinely new area appears.
Examples:
- System components: dashboard, platform, operator, cilium, kube-ovn,
linstor, fluxcd, cluster-api
- Managed apps: postgres, mariadb, redis, kafka, clickhouse,
virtual-machine, kubernetes
- Development and maintenance: api, hack, tests, ci, docs, maintenance
- Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or
add a `BREAKING CHANGE:` footer
- If it's a work in progress, consider creating this PR as a draft.
- Don't hesistate to ask for opinion and review in the community chats,
even if it's still a draft.
- Add the label `kind/backport` if it's a bugfix that needs to be
backported to a previous version.
-->

## What this PR does

`linstor-affinity-controller` and the `linstor-scheduler` extender read
their LINSTOR API client certificate from `secretKeyRef` env vars, which
kubelet resolves only when the container starts. cert-manager renews
these 90-day certificates every 60 days, but neither workload is
restarted on rotation, so a pod that outlives its certificate keeps
presenting the expired one. The controller refuses every new TLS
handshake and the Go client logs a bare `Get
"https://linstor-controller:3371/v1/resource-definitions?": EOF`, while
the CLI inside the controller pod keeps working, which makes it look
like an API problem.

Observed on a production cluster: an affinity controller pod running for
91 days failed every 15 s from 25 minutes after its certificate expired
(an existing keep-alive connection survived until then), so PV node
affinities stopped following replica moves. One of the two scheduler
replicas had been failing silently for 19 days for the same reason; it
was not the leader, so scheduling was not hit yet, but a lease failover
would have handed scheduling to an extender that cannot reach LINSTOR.

Changes:

- `packages/system/linstor/templates/cluster.yaml`: add the
`reloader.stakater.com/auto` patch for
`Deployment/linstor-affinity-controller`, like the existing ones for
`linstor-controller`, `linstor-csi-controller` and `linstor-csi-node`.
- `packages/system/linstor-scheduler`: annotate the scheduler
`Deployment` with `secret.reloader.stakater.com/reload:
<linstor.clientSecret>`, carried as a third edit in the existing
`patches/cozystack-scheduler-deployment.patch` so `make update` keeps
it. `podAnnotations` would have been enough for Reloader v1.3.0, which
falls back to pod-template annotations, but the vendored chart applies
`podAnnotations` to the admission `Deployment` too, which would roll on
a secret it does not use.
- Regression tests: `linstor/tests/reloader_test.yaml` and
`linstor-scheduler/tests/deployment_test.yaml`. Both fail with the fix
reverted and pass with it. The patch was checked to apply with `patch
-p4` on the pristine 0.3.1 chart and to reproduce the vendored template
byte for byte.

The existing `admission.reloadOnCertChange: false` comment is left as
is: it is about the webhook's serving certificate, which the extender
reloads on its own, not about the LINSTOR client certificate.

### Screenshots

No UI change.

<!-- REQUIRED for UI changes: attach screenshots or screen recordings
demonstrating
the visual impact of your changes. PRs with UI changes without
screenshots will not be merged. -->

### Downstream repositories

<!--
Cozystack is upstream for repositories that are NOT kept in sync with it
automatically, and nothing in CI compares the two sides, so a change
here can break them silently.

Which change forces what, and which file to touch, is the trigger map in
docs/agents/contributing.md under "Downstream Repositories". Walk it
before you tick anything.

IF YOU ARE AN AI AGENT OR AN LLM, THIS IS PART OF THE TASK, NOT A FORM
TO FILL IN:

1. Walk the trigger map against the actual diff of this PR, file by
file. Do not decide from the PR title or from your memory of what you
changed.
2. For every repository you tick, open the follow-up PR there and link
it on the same line. A ticked box with no link claims work that does not
exist, which is worse than an empty box. Search that repository for an
open PR or issue covering it first, and link that instead of filing a
duplicate.
3. When the follow-up is out of scope, or needs a decision that is not
yours to make, open an issue in that repository instead, link that, and
say so in the PR body. Do not push a speculative PR into another
repository just to fill a line here.
4. Do not tick "No downstream repository is affected" to make the
checklist go away. If you are unsure, leave every box empty and say so
in the PR body, so a human decides.
-->

- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[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

<!--  Write a release note:
- Explain what has changed internally and for users.
- Start with the same `type(scope):` prefix as in the PR title
- Follow the guidelines at
https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md.
-->

```release-note
fix(linstor): linstor-affinity-controller and linstor-scheduler now restart when their LINSTOR client certificate is rotated, instead of failing every LINSTOR API call with EOF once the certificate they loaded at startup expires.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* LINSTOR controller, CSI, and affinity-controller deployments now
support automatic reloading.
* Scheduler deployments reload when their configured client Secret
changes, including when a custom Secret name is used.
* Scheduler deployments now identify their component and use a
Kubernetes-version-aware default image tag.
* **Bug Fixes**
* Scheduler Secret references and reload behavior remain aligned when
the client Secret name is overridden.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Backported-from: 2acba8bf60
2026-11-25 10:49:44 +00:00
Adham Kiwan bdb3130fae fix(api): skip an invalid ApplicationDefinition instead of failing startup
cozystack-api built its resource config from every ApplicationDefinition
and returned the first error, so one definition with an unparseable
release.cozystack.io/* timeout annotation stopped the API for every
tenant. The definition controller rolls cozystack-api when those
annotations change, so the bad definition also triggered the failing
rollout. Since a connected repository can install definitions, this is
no longer limited to an operator's own mistake.

Leave such a definition out of the served kinds and log it, the same way
a definition that loses its kind to an older one is left out. An
openAPISchema that is not valid JSON is rejected at the same point:
the OpenAPI post-processors would otherwise fail the whole spec on it.

Refs: #4976
Assisted-by: LLM
Signed-off-by: Adham Kiwan <adhamkiwan@outlook.com>
(cherry picked from commit 918a60462e)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-11-25 10:49:44 +00:00