mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-02 21:30:46 +09:00
8955245afba0273f885b0788adb60bbcb9f53521
5676
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
8955245afb |
[Backport release-1.6] perf(ci): build release lines from their own cache, in parallel (#5490)
## What this PR does Port of #5484 to release-1.6, same reason as for 1.7: `build-release.yaml` and `tags.yaml` run from the line's own copy. This line has no arm64 build and no buildx setup in `tags.yaml`, so only the amd64 cache and the parallel build apply. `packages/core/platform` waits for the rest here, because it writes `backupstrategy-controller` values.yaml (seaweedfs is not a unit on this line). `cache-args` took an optional per-call cache tag that no caller passes, so it takes main's form. Tests that live in files this line doesn't have went to `hack/release-build-cache-contract.bats`. ### 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: ### Release note ```release-note perf(ci): release-1.6 builds images from its own build cache, several units at a time ``` |
||
|
|
9f0931585c |
chore(release): promote v1.6.7-rc.1 -> v1.6.7 (#5530)
Promotes `v1.6.7-rc.1` to stable `v1.6.7` 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.6.7` tag, retagging the candidate and container digests to `v1.6.7` (+`: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.6.7-rc.1` 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.6.7.md`, which finalize uses verbatim as the published release body. ✅ Website docs PR opened/refreshed on `cozystack/website` (branch `update-docs-v1.6.7`), generated from the `release-1.6.7` staging branch. **Do NOT merge that PR until `v1.6.7` 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.6.7 api/apps/v1alpha1/v1.6.7 |
||
|
|
db79ed8e45 |
docs: add changelog for v1.6.7
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
69186102b1 |
Pin promoted packages artifact for v1.6.7
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
88cb9aa110 |
Prepare release v1.6.7 (promoted from v1.6.7-rc.1)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
51af86329b |
Prepare release v1.6.7-rc.1
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
d314cdb428 |
[Backport release-1.6] fix(ingress-nginx): pick up the nginx rebuild with the CVE fixes (#5506)
## What this PR does Hand port of #5377 and #5436 to `release-1.6`. 1.6 still runs v1.11.2 controller, and its nginx has none of the fixes these two brought to main and v1.7.2 (HTTP/2 CVE-2026-123633 and CVE-2026-123007, plus other nginx CVEs the controller can reach, CVE-2026-97629 among them). Backport batch parks both on this line because they build on #4549, the v1.11.6 bump that never comes to 1.6 (see record in #5312), so this PR switches the controller to the same image directly: `v1.11.6-cozystack.3@sha256:059a75d56e567cbf12b4c5df440bfa06f7ed59b7404a0efd8c74e923b340a5cc`. Controller jumps from v1.11.2 to v1.11.6 while chart stays on 4.11.2, this is the part to look at: - Templates that build controller pod and its access (deployment, daemonset, `_params.tpl`, controller ConfigMaps, Service, ServiceAccount, Roles, ClusterRoles and bindings) are identical between 4.11.2 here and 4.11.6 on release-1.7, where this image already runs. Rest of template diff is ServiceMonitor, default backend and templated webhook port (default stays 443, this package doesn't override it), plus one comment and a renamed PrometheusRule file. `helm template` of the package differs from line tip only in controller image line, both for root ingress and for tenant ingress with webhook off. - `Chart.yaml` keeps `appVersion: 1.11.2`, so `app.kubernetes.io/version` label on controller still says 1.11.2. Nothing in the tree reads it and it is not in selector, fixing it means re-vendoring 4.11.6 chart, which is too much for a patch release. - Upstream 1.11.3 to 1.11.6 are bug fixes plus CVE-2025-1974 set in 1.11.5. #720 already put v1.11.2 build with those patches backported on this line, so the only behaviour change among them (admission webhook no longer tests generated nginx config) is not new here. - Segfault of the first v1.11.5 rebuild (#4012, the reason #4017 skipped this line) is fixed in the fork by cozystack/ingress-nginx-with-protobuf-exporter#7, which is an ancestor of `v1.11.6-cozystack.3` tag. - protobuf-exporter sidecar stays at v1.11.2. Main bumps it together with controller, but `pbmetrics.lua` and template hooks calling it are identical between fork `v1.11.2` and `v1.11.6-cozystack.3`, exporter only changed how it is built (multi-arch, Go version). No merge order needed, release-1.7 has this image since v1.7.2. ### Testing - Tag resolves to pinned digest, an index with linux/amd64 and linux/arm64. - `helm unittest --with-subchart=false packages/system/ingress-nginx` passes 2 of 2. Vendored upstream chart suites fail 5 of 76 on this line with or without the change, package has no `test` target here so CI doesn't run them. - `make unit-tests` passes. - [Live check on v1.6.5](https://github.com/cozystack/cozystack/pull/5377#issuecomment-7086384344) swapped only controller image to `cozystack.1` on stock 1.6 chart: rolling update under HTTP/2 load, `nginx -t`, admission webhook server dry-run, no restarts. `cozystack.3` itself was not run on a 1.6 cluster, on 1.7 it runs since v1.7.2. ### 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: ### Release note ```release-note fix(ingress-nginx): the ingress-nginx controller moves to v1.11.6-cozystack.3, nginx 1.25.5 rebuilt with the fixes for CVE-2026-123633, CVE-2026-123007 and the other nginx CVEs the controller can reach. The controller goes from v1.11.2 to v1.11.6 and its pods roll on upgrade. nginx still reports version 1.25.5, so scanners that match on the version will keep flagging it. From this release, upgrade to v1.7.2 or later: v1.7.0 and v1.7.1 run a controller build without these fixes. ```v1.6.7-rc.1 |
||
|
|
7e1444a3a2 |
fix(ingress-nginx): pick up the nginx rebuild with the CVE fixes
release-1.6 runs the v1.11.2 controller, whose nginx carries none of the fixes main and release-1.7 got by moving to v1.11.6-cozystack.3 (#5377, #5436): the two HTTP/2 flaws CVE-2026-123633 and CVE-2026-123007, and the rest the controller can reach, CVE-2026-97629 among them. The backport batch cannot bring those pins over, because both build on the v1.11.6 bump that never reaches this line, so the line takes the same image directly. The controller moves from v1.11.2 to v1.11.6 under the 4.11.2 chart. The templates that build the controller pod and its access (controller-deployment, controller-daemonset, _params.tpl, the controller ConfigMaps, Service and ServiceAccount, the Roles, ClusterRoles and their bindings) are identical between 4.11.2 here and 4.11.6 on release-1.7, which ships this image since v1.7.2. Besides a comment and a renamed PrometheusRule file, the rest of the template diff is the ServiceMonitor, the default backend and a templated admission webhook port whose default stays 443, which this package does not override; the chart defaults differ only in image tags. Chart.yaml keeps appVersion 1.11.2, so the controller's app.kubernetes.io/version label still reads 1.11.2: nothing in the tree reads it, and changing it means re-vendoring the 4.11.6 chart. The protobuf-exporter sidecar stays at v1.11.2: the fork's pbmetrics.lua and the template hooks that call it are unchanged between v1.11.2 and v1.11.6-cozystack.3, and the exporter changed only in how it is built. The tag resolves to the pinned digest, an index with linux/amd64 and linux/arm64. helm template of the package with its own values differs from the line's tip in the controller image line only. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com> |
||
|
|
a7bf3ce172 |
chore(release): promote v1.6.6-rc.3 -> v1.6.6 (#5495)
Promotes `v1.6.6-rc.3` to stable `v1.6.6` 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.6.6` tag, retagging the candidate and container digests to `v1.6.6` (+`: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.6.6-rc.3` 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.6.6.md`, which finalize uses verbatim as the published release body. ✅ Website docs PR opened/refreshed on `cozystack/website` (branch `update-docs-v1.6.6`), generated from the `release-1.6.6` staging branch. **Do NOT merge that PR until `v1.6.6` 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).api/apps/v1alpha1/v1.6.6 v1.6.6 |
||
|
|
f9eafe6c73 |
docs(release): keep the v1.6.6 changelog to the advisory wording
Finalize publishes this file as the v1.6.6 release body while the five security advisories it carries fixes for are still drafts. The generated notes named the affected components, described how each issue could be exploited and cited advisory IDs, in the summary, the Security section and the upgrade notes, so they would disclose the advisories before they are published. Each fix is now one line that names only its package and the severity of its draft advisory and says details follow in an advisory, attributed to the merge it came in with. The upgrade notes keep what an operator has to do without the cause: the monitoring web UI login, sign-in and rotation steps, the Harbor roll, the bucket and Info behavior changes. The upgrade test from v1.6.5 to v1.6.6-rc.3 added three notes: the first backup of a Postgres with a platform backup rolls its instances and fails, the SeaweedFS metadata database restart can lose S3 writes confirmed just before a failover, and a MariaDB restore picks the newest dump. The system PostgreSQL note no longer says the primary always restarts in place, since the test saw it fail over. The #5087 and #4893 entries are corrected for this line, which sets no healthCheckExprs and ships SeaweedFS 4.31. Assisted-By: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com> |
||
|
|
ad7a5d5ea1 |
docs: add changelog for v1.6.6
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
18a4ab2f46 |
Pin promoted packages artifact for v1.6.6
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
ddab559341 |
Prepare release v1.6.6 (promoted from v1.6.6-rc.3)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
321e9d8785 |
[Backport release-1.6] fix(ci): push the stable chart once, so a re-run keeps cozy-installer:X.Y.Z (#5488)
## What this PR does Port of #5486 to release-1.6, finalize runs from base branch copy of the workflow. Cherry-picked with `-x`, docs edit goes to `docs/release.md`. The test went to `hack/promote-gate-contract.bats`, this line has no `promote-packages-contract.bats`. It runs through `cozytest.sh` and passes under dash, the helper prints `ok` or `failed` because the translator makes every function there return 0. ### 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: ### Release note ```release-note fix(ci): a re-run of finalize no longer pushes the stable cozy-installer chart again ``` |
||
|
|
6fb5a194ce |
Prepare release v1.6.6-rc.3
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> |
||
|
|
c14998e86f |
fix(ci): push the stable chart once, so a re-run keeps cozy-installer:X.Y.Z
Since finalize publishes the release page last, a run that fails in Publish draft release is re-run after the chart is already pushed. The re-run packaged and pushed the chart again, and helm package does not give the same bytes twice (two packagings of the same tree with different file times give two digests), so cozy-installer:X.Y.Z moved to another digest. The chart step now pushes only when the registry answers that cozy- installer:X.Y.Z is missing, read as manifest_digest in hack/promote- retag.sh reads it; any other lookup error fails the step instead of being taken for a missing tag. cozy-installer:latest still follows the latest decision on every run. A bats test runs the step against stub skopeo, helm and yq: the first run pushes once, a re-run pushes nothing, an older patch leaves latest alone, a failed push fails the step, and a failed lookup fails it without packaging or pushing. Fixes: |
||
|
|
ffdd851bab |
Merge commit from fork
[Backport release-1.6] security(info): do not render the tenant ServiceAccount token under OIDCv1.6.6-rc.3 |
||
|
|
37e10d82d5 |
Merge commit from fork
[Backport release-1.6] fix(backups): confine Velero restore-copy to the tenant namespace subtree |
||
|
|
34d7b565a8 |
perf(ci): build release lines from their own cache, in parallel
Release-line image builds read only main's build cache, which matches
release-1.6 less with every Dockerfile main changes: the rc Prepare
Release job went from 28 minutes on v1.6.4-rc.1 to 43 on v1.6.5-rc.1
and 45 on v1.6.6-rc.1.
The line now keeps a cache of its own. build-release.yaml writes
buildcache-release-1.6 on every push to the line, and rc builds import
it together with main's buildcache. CACHE_FROM_TAGS lists every cache a
build imports; unset, it is CACHE_TAG (buildcache), as before. This
line's cache-args took an optional per-call cache tag that no caller
passes, so it takes main's form instead. A cache write that fails no
longer fails the build (ignore-error=true).
The units of hack/build-matrix.sh build four at a time (make
build-parallel, hack/build-units.sh), each output line carrying its
unit. On this line packages/core/platform waits for the rest, because
it writes backupstrategy-controller's values.yaml.
Tested with bats: the cache macro, the unit builder against a fake make
and the workflow settings, plus a dry run of hack/build-units.sh over
this line's units with make -n.
Assisted-by: LLM
(cherry picked from commit
|
||
|
|
87d62af925 |
Merge commit from fork
[Backport release-1.6] fix(bucket): refuse COSI classes of another SeaweedFS instance |
||
|
|
cd77b124e9 |
Merge commit from fork
[Backport release-1.6] security(harbor): give the inner registry its own credential and port policy |
||
|
|
ec5c5474a3 |
security(info): bind the real tenant ServiceAccount without OIDC
The RoleBinding subject was built as tenant-<namespace> in namespace tenant-<namespace>, but the release namespace already starts with tenant-, so the binding did not name the tenant's own ServiceAccount. The name it did form is one another tenant can claim: a child named root of a tenant named tenant owns the ServiceAccount tenant-tenant-root, which would then be granted the token Secret of tenant-root. Bind the tenant's own ServiceAccount instead. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
9c9958a4ca |
security(info): do not render the tenant ServiceAccount token under OIDC
The Info application selects the ServiceAccount token Secret for the
tenantsecrets API, and the use tier can read tenantsecrets, so the token
and the rights bound to its ServiceAccount were readable by every use
member of the tenant.
With OIDC enabled the dashboard signs in with the user's own ID token and
nothing consumes the token, so the Secret is no longer rendered. Removing
it also invalidates tokens that were already read.
Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
(cherry picked from commit
|
||
|
|
b3c99ae913 |
[Backport release-1.6] fix(ci): publish the release only after the stable images and chart exist (#5481)
## What this PR does Port of #5169 to release-1.6. Closed-PR finalize runs from base branch copy of `pull-requests-release.yaml`, so patch releases on this line keep publishing release page before stable images and chart exist until the line has the change itself. Finalize on this line differs from main (release body only from changelog, no release notes file and no size limit, single toolchain step), so on top of cherry-pick I rebuilt the steps by hand from line's own file: draft lookup and `latest` decision moved to `Resolve draft release` before retag, release page published last with line's own body selection, same concurrency group as on main. Docs edits go to `docs/release.md`. `hack/promote-packages-contract.bats` and `hack/release-changelog-behaviour.bats` don't exist here, so order, failure and concurrency checks went to `hack/promote-gate-contract.bats`. It runs through `cozytest.sh`, passes under dash and fails against current line workflow. Line has no harness for github-script steps, so I ran `Resolve draft release` and `Publish draft release` by hand against stubbed API (missing draft, orphaned draft, older patch after newer minor, newest stable, rc, empty and missing changelog), this is not in the suite. ### 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: ### Release note ```release-note fix(ci): finalize publishes the release page last, after the stable image tags and the cozy-installer chart exist, and finalizes one release at a time ``` |
||
|
|
a7866066cb |
fix(ci): publish the release only after the stable images and chart exist
Finalize undrafted the release before it retagged the images and
published the cozy-installer chart, so for the length of the retag the
release page announced a version whose images and chart returned
manifest unknown. The retag took 80-95 seconds on the 1.6.x patches and
several minutes on v1.7.0. A failure in either step also left a public
release that a re-run could not repair, because the re-run looked for a
draft and found none.
Move the draft lookup and the latest decision into their own step that
runs before any registry write, hand the decision to the retag, the
chart and the release page as step outputs, and undraft last. A missing
draft now fails while no stable name exists, and a failed retag leaves
the draft in place for a re-run. The comments and docs that took the
release to be public by the time finalize pushes the stable tag now say
when it is published.
Deciding latest before the retag opens minutes in which two release PRs
merged close together would both decide they are the newest, leaving
latest on the older line on the page, the image aliases and the chart.
Finalize therefore runs one release at a time, in a concurrency group
that only release PRs join and that queues every merged release rather
than cancelling the one waiting.
On this line hack/promote-gate-contract.bats fails on a release page
published before the registry steps, a registry step allowed to fail, a
publish step that runs after a failure, a `latest` that moves without
the decision, or finalize runs that may overlap. The line has no harness
for its github-script steps, so both were run by hand against a stubbed
API: a missing draft, an orphaned draft, an older patch after a newer
minor, a newest stable, an rc, and an empty or missing changelog.
Assisted-by: LLM
(cherry picked from commit
|
||
|
|
45f3f74240 |
Merge commit from fork
[Backport release-1.6] security(monitoring): give Alerta a real signing key and its own admin passwordv1.6.6-rc.2 |
||
|
|
7214c8ab90 |
fix(backport): batch for release-1.6, 2026-11-13 (#5312)
## What this PR does Backports to `release-1.6` 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). - [#3633](https://github.com/cozystack/cozystack/pull/3633) `fix(tenant): retry failed monitoring and gateway installs in place`, 1 commit - [#4095](https://github.com/cozystack/cozystack/pull/4095) `fix(harbor): give the nginx proxy explicit resources so it survives the tenant LimitRange`, 1 commit - [#4289](https://github.com/cozystack/cozystack/pull/4289) `fix(bucket): stop the ACME cleanup hook from talking to localhost, and gate the class`, 1 commit - [#4427](https://github.com/cozystack/cozystack/pull/4427) `fix(monitoring): give kube-apiserver its own scrape size limit`, 3 commits - [#4537](https://github.com/cozystack/cozystack/pull/4537) `fix(mariadb): correct webhook cert-manager override key path`, 1 commit - [#4673](https://github.com/cozystack/cozystack/pull/4673) `fix(backups): create no driver object for a job that already finished`, 2 commits, changed in the pick: `c7dc37258041` - [#5025](https://github.com/cozystack/cozystack/pull/5025) `test(harbor): pin the resources of the nginx proxy and the portal`, 2 commits - [#4985](https://github.com/cozystack/cozystack/pull/4985) `fix(etcd): stop counting canceled watch streams as failed gRPC requests`, 1 commit - [#5005](https://github.com/cozystack/cozystack/pull/5005) `fix(tcp-balancer): cap HAProxy fds and threads by the pod's own limits`, 1 commit - [#5086](https://github.com/cozystack/cozystack/pull/5086) `fix(tenant): stop the gateway release waiting on TenantGateway listeners and certificates`, 1 commit - [#5087](https://github.com/cozystack/cozystack/pull/5087) `fix(controller): carry healthCheckExprs and waitStrategy to existing releases`, 1 commit - [#4004](https://github.com/cozystack/cozystack/pull/4004) `fix(dashboard): link a tenant row to its detail page`, 2 commits, changed in the pick: `663cf9edf85f` - [#5212](https://github.com/cozystack/cozystack/pull/5212) `fix(cilium): pass the CiliumNode list to jq on stdin in the IPAM hook`, 1 commit - [#5213](https://github.com/cozystack/cozystack/pull/5213) `fix(kubernetes): move the OIDC users out of the bootstrap Job's script`, 1 commit - [#5208](https://github.com/cozystack/cozystack/pull/5208) `fix(clickhouse): restore the archive a Backup was taken as`, 3 commits - [#5091](https://github.com/cozystack/cozystack/pull/5091) `fix(postgres): render the declared databases in a stable order`, 1 commit - [#5123](https://github.com/cozystack/cozystack/pull/5123) `fix(mariadb-operator): derive the cluster name from the platform domain`, 2 commits - [#5124](https://github.com/cozystack/cozystack/pull/5124) `fix(lineage, kubernetes): resolve CAPK node VMs to their cluster`, 2 commits, changed in the pick: `9ca427589e57` - [#5184](https://github.com/cozystack/cozystack/pull/5184) `fix(api): read pool usage under the quota key the controller counts`, 1 commit - [#5190](https://github.com/cozystack/cozystack/pull/5190) `fix(platform): remove the dead registries value and patch-containerd Secret`, 2 commits - [#5207](https://github.com/cozystack/cozystack/pull/5207) `fix(mariadb): fail backup and restore jobs whose operator Job failed`, 5 commits - [#5024](https://github.com/cozystack/cozystack/pull/5024) `fix(kubernetes, monitoring): send tenant cluster metrics to the tenant's vminsert`, 1 commit - [#5284](https://github.com/cozystack/cozystack/pull/5284) `fix(seaweedfs): bump the COSI driver to v0.4.0 for the lost-grant fix`, 1 commit - [#5152](https://github.com/cozystack/cozystack/pull/5152) `fix(monitoring-agents): let the release uninstall when the VictoriaMetrics operator is gone first`, 1 commit - [#5270](https://github.com/cozystack/cozystack/pull/5270) `fix(vm-instance): keep an external PortList VM valid with no ports`, 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 - [#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: `600a268351c7` - [#4993](https://github.com/cozystack/cozystack/pull/4993) `feat(monitoring): alert when pods of one workload share a node`, 1 commit - [#5114](https://github.com/cozystack/cozystack/pull/5114) `fix(kubevirt): let tenant admins upload a VMDisk image with virtctl`, 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 - [#5242](https://github.com/cozystack/cozystack/pull/5242) `fix(vpa): shorten the admission webhook timeout to 5s`, 2 commits - [#5265](https://github.com/cozystack/cozystack/pull/5265) `fix(controller, platform): give unbounded pool members the root's LimitRange`, 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, changed in the pick: `9d15a98369ec` - [#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, changed in the pick: `9967676a6841` - [#5373](https://github.com/cozystack/cozystack/pull/5373) `fix(opensearch): disable the Base64 intrinsics hit by CVE-2026-114938`, 1 commit, changed in the pick: `330e8c516fb8` - [#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 - [#5134](https://github.com/cozystack/cozystack/pull/5134) `fix(securitygroups): reject port ranges and malformed FQDNs on the SecurityGroup path`, 2 commits - [#4984](https://github.com/cozystack/cozystack/pull/4984) `fix(postgres): keep users.app's password across pod restarts`, 1 commit - [#5160](https://github.com/cozystack/cozystack/pull/5160) `fix(linstor): roll affinity controller and scheduler on client cert rotation`, 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 - [#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 - [#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 - [#5210](https://github.com/cozystack/cozystack/pull/5210) `fix(platform): do not gate cert-manager-issuers on ClusterIssuer readiness`, 1 commit, changed in the pick: `9061f9a5e1a1` - [#5443](https://github.com/cozystack/cozystack/pull/5443) `fix(ingress): restore visitor IPs through SSL passthrough`, 2 commits ### 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. [#4673](https://github.com/cozystack/cozystack/pull/4673) `fix(backups): create no driver object for a job that already finished`, carried by `4eb480d83bbf`: ```text fix(backups): a BackupJob or RestoreJob that the controller has just marked Failed no longer gets a driver object created for it by the next reconcile, which could start on a cache that had not yet seen the Failed status and retry the step that failed — leaving, for instance, an untracked Velero Backup behind a Failed BackupJob, or a restore that halts the VM after its RestoreJob failed. ``` - `git range-diff --creation-factor=999 eafa441b9c36^! c7dc37258041^!` - `git diff b1192bfcbcf4^1 b1192bfcbcf4` - `git diff 4eb480d83bbf^1 4eb480d83bbf` [#4004](https://github.com/cozystack/cozystack/pull/4004) `fix(dashboard): link a tenant row to its detail page`, carried by `19693538013e`: ```text fix(dashboard): tenant name in the tenant list links to its detail page now (where Delete is), and top level tenants get their Edit button back. ``` - `git range-diff --creation-factor=999 7f55ff5d85fd^! 663cf9edf85f^!` - `git diff a2cc9a30168f^1 a2cc9a30168f` - `git diff 19693538013e^1 19693538013e` [#5124](https://github.com/cozystack/cozystack/pull/5124) `fix(lineage, kubernetes): resolve CAPK node VMs to their cluster`, carried by `529b3b67295e`: ```text fix(lineage, kubernetes): the virt-launcher pods of Kubernetes worker nodes are now resolved to their Kubernetes application and marked as managed by Cozystack, so a SecurityGroup attached to a Kubernetes cluster now applies to its worker nodes, not only to its control plane. ``` - `git range-diff --creation-factor=999 93faa7a8620d^! 9ca427589e57^!` - `git diff 1f35c26ece02^1 1f35c26ece02` - `git diff 529b3b67295e^1 529b3b67295e` [#5119](https://github.com/cozystack/cozystack/pull/5119) `fix(postgres): accept a standard five-field backup schedule`, carried by `d54b11f14f0c`: ```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^! 600a268351c7^!` - `git diff 5fe356f57e8a^1 5fe356f57e8a` - `git diff d54b11f14f0c^1 d54b11f14f0c` [#4915](https://github.com/cozystack/cozystack/pull/4915) `fix(seaweedfs): remove identities left behind by deleted BucketAccesses`, carried by `ccdaa7779174`: ```text 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. ``` - `git range-diff --creation-factor=999 045f1a9bbc64^! 9d15a98369ec^!` - `git diff 15e87fdbeaa1^1 15e87fdbeaa1` - `git diff ccdaa7779174^1 ccdaa7779174` [#5364](https://github.com/cozystack/cozystack/pull/5364) `fix(backups): delete the Velero backup of a failed BackupJob`, carried by `6b310132a6e1`: ```text 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`. ``` - `git range-diff --creation-factor=999 5fbf7e9a3806^! 9967676a6841^!` - `git diff 7f31011b99a2^1 7f31011b99a2` - `git diff 6b310132a6e1^1 6b310132a6e1` [#5373](https://github.com/cozystack/cozystack/pull/5373) `fix(opensearch): disable the Base64 intrinsics hit by CVE-2026-114938`, carried by `2fab06097342`: ```text 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. ``` - `git range-diff --creation-factor=999 65f094371015^! 330e8c516fb8^!` - `git diff 026b0156355a^1 026b0156355a` - `git diff 2fab06097342^1 2fab06097342` [#5210](https://github.com/cozystack/cozystack/pull/5210) `fix(platform): do not gate cert-manager-issuers on ClusterIssuer readiness`, carried by `150d36e0f65c`: ```text 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. ``` - `git range-diff --creation-factor=999 13fefcedda13^! 9061f9a5e1a1^!` - `git diff a1be486fb6fd^1 a1be486fb6fd` - `git diff 150d36e0f65c^1 150d36e0f65c` ### Parked These cannot land on `release-1.6` 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. - [#5071](https://github.com/cozystack/cozystack/pull/5071) `fix(marketplace): do not install a connected repository's components on connect`: builds on [#3940](https://github.com/cozystack/cozystack/pull/3940), [#4308](https://github.com/cozystack/cozystack/pull/4308), which never reaches this line - [#5088](https://github.com/cozystack/cozystack/pull/5088) `fix(ingress-nginx): drop the admission-webhook policy a rebase brought back`: only part of it applies; it would leave `packages/system/ingress-nginx/templates/admission-webhook-networkpolicy.yaml`, `packages/system/ingress-nginx/tests/admission_webhook_networkpolicy_test.yaml` without effect - [#4917](https://github.com/cozystack/cozystack/pull/4917) `fix(kubernetes): run Proxmox CCM v0.16.1 and pin the Proxmox images by digest`: builds on [#4089](https://github.com/cozystack/cozystack/pull/4089), which never reaches this line - [#4974](https://github.com/cozystack/cozystack/pull/4974) `fix(kubernetes-nodes): plan autoscaler capacity on the cores the VM actually gets`: builds on [#3315](https://github.com/cozystack/cozystack/pull/3315), [#4386](https://github.com/cozystack/cozystack/pull/4386), which never reaches this line - [#4971](https://github.com/cozystack/cozystack/pull/4971) `fix(e2e): keep the Proxmox tenant kubeconfig per run and remove it`: builds on [#4089](https://github.com/cozystack/cozystack/pull/4089), which never reaches this line - [#4970](https://github.com/cozystack/cozystack/pull/4970) `fix(e2e): read the KubernetesNodes pool release in the HelmRelease guard`: builds on [#3594](https://github.com/cozystack/cozystack/pull/3594), which never reaches this line - [#4972](https://github.com/cozystack/cozystack/pull/4972) `fix(e2e): validate the leak allowlist against every suite layout`: builds on [#4492](https://github.com/cozystack/cozystack/pull/4492), [#4658](https://github.com/cozystack/cozystack/pull/4658), [#4713](https://github.com/cozystack/cozystack/pull/4713), which never reaches this line - [#5082](https://github.com/cozystack/cozystack/pull/5082) `fix(marketplace): pin a tapped repository to a digest instead of a mutable tag`: builds on [#3940](https://github.com/cozystack/cozystack/pull/3940), which never reaches this line - [#5230](https://github.com/cozystack/cozystack/pull/5230) `fix(backups): re-render the default backup objects when the S3 endpoint changes`: builds on [#3562](https://github.com/cozystack/cozystack/pull/3562), [#3990](https://github.com/cozystack/cozystack/pull/3990), [#3992](https://github.com/cozystack/cozystack/pull/3992), [#4000](https://github.com/cozystack/cozystack/pull/4000), [#4929](https://github.com/cozystack/cozystack/pull/4929), which never reaches this line - [#5133](https://github.com/cozystack/cozystack/pull/5133) `fix(securitygroups): project a membership-only group to a policy Cilium accepts`: builds on [#4447](https://github.com/cozystack/cozystack/pull/4447), which never reaches this line - [#5151](https://github.com/cozystack/cozystack/pull/5151) `fix(redis): run one Sentinel when Redis runs a single pod`: builds on [#4832](https://github.com/cozystack/cozystack/pull/4832), which never reaches this line - [#5211](https://github.com/cozystack/cozystack/pull/5211) `fix(postgres): fail a backup job as soon as its cnpg Backup fails`: builds on [#4674](https://github.com/cozystack/cozystack/pull/4674), which never reaches this line - [#5226](https://github.com/cozystack/cozystack/pull/5226) `fix(platform): leave tenant-root's ingress empty when the root tenant has none`: builds on [#3280](https://github.com/cozystack/cozystack/pull/3280), which never reaches this line - [#5228](https://github.com/cozystack/cozystack/pull/5228) `fix(seaweedfs): enforce S3 bucket lifecycle rules`: builds on [#3562](https://github.com/cozystack/cozystack/pull/3562), [#3580](https://github.com/cozystack/cozystack/pull/3580), which never reaches this line - [#5308](https://github.com/cozystack/cozystack/pull/5308) `fix(seaweedfs): stop the master crashing on the crowded volume map`: builds on [#4819](https://github.com/cozystack/cozystack/pull/4819), which never reaches this line - [#4986](https://github.com/cozystack/cozystack/pull/4986) `fix(etcd): require an even spread of members over nodes by default`: builds on [#3962](https://github.com/cozystack/cozystack/pull/3962), [#3964](https://github.com/cozystack/cozystack/pull/3964), which never reaches this line - [#5249](https://github.com/cozystack/cozystack/pull/5249) `fix(kubernetes): detach volumes when the infra PVC is missing`: builds on [#4447](https://github.com/cozystack/cozystack/pull/4447), which never reaches this line - [#4234](https://github.com/cozystack/cozystack/pull/4234) `fix(seaweedfs, cozy-lib): cap the Go heap so components survive their memory limit`: builds on [#5228](https://github.com/cozystack/cozystack/pull/5228), which never reaches this line - [#5096](https://github.com/cozystack/cozystack/pull/5096) `fix(workloadmonitor): report a bucket's workloads not ready until its claim is provisioned`: builds on [#4380](https://github.com/cozystack/cozystack/pull/4380), which never reaches this line - [#4945](https://github.com/cozystack/cozystack/pull/4945) `fix(apps): keep Job and CronJob names within the Kubernetes limits`: builds on [#2352](https://github.com/cozystack/cozystack/pull/2352), which never reaches this line - [#5011](https://github.com/cozystack/cozystack/pull/5011) `fix(cozystack-basics): refuse a direct delete of a tenant namespace`: builds on [#4639](https://github.com/cozystack/cozystack/pull/4639), which never reaches this line - [#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`: builds on [#4261](https://github.com/cozystack/cozystack/pull/4261), [#4756](https://github.com/cozystack/cozystack/pull/4756), which never reaches this line - [#5153](https://github.com/cozystack/cozystack/pull/5153) `fix(kubernetes): bring up a replacement worker before draining the old one`: builds on [#3280](https://github.com/cozystack/cozystack/pull/3280), [#3315](https://github.com/cozystack/cozystack/pull/3315), [#4713](https://github.com/cozystack/cozystack/pull/4713), which never reaches this line - [#5175](https://github.com/cozystack/cozystack/pull/5175) `fix(tests): reject matcher failures in negative file assertions`: builds on [#3548](https://github.com/cozystack/cozystack/pull/3548), [#3637](https://github.com/cozystack/cozystack/pull/3637), [#3676](https://github.com/cozystack/cozystack/pull/3676), [#3723](https://github.com/cozystack/cozystack/pull/3723), [#3804](https://github.com/cozystack/cozystack/pull/3804), [#3836](https://github.com/cozystack/cozystack/pull/3836), [#3843](https://github.com/cozystack/cozystack/pull/3843), [#3886](https://github.com/cozystack/cozystack/pull/3886), [#3888](https://github.com/cozystack/cozystack/pull/3888), [#3889](https://github.com/cozystack/cozystack/pull/3889), [#3890](https://github.com/cozystack/cozystack/pull/3890), [#3919](https://github.com/cozystack/cozystack/pull/3919), which never reaches this line - [#5377](https://github.com/cozystack/cozystack/pull/5377) `fix(ingress-nginx): pick up the nginx rebuild with the HTTP/2 CVE fixes`: builds on [#4549](https://github.com/cozystack/cozystack/pull/4549), which never reaches this line - [#5354](https://github.com/cozystack/cozystack/pull/5354) `fix(platform): honour a bool false in ingress-enabled and monitoring-enabled`: builds on [#5226](https://github.com/cozystack/cozystack/pull/5226), which never reaches this line - [#5045](https://github.com/cozystack/cozystack/pull/5045) `fix(talos): bump Talos to v1.14.4 (CVE-2026-99999)`: builds on [#4552](https://github.com/cozystack/cozystack/pull/4552), [#4598](https://github.com/cozystack/cozystack/pull/4598), which never reaches this line - [#5352](https://github.com/cozystack/cozystack/pull/5352) `docs(gateway): stop saying the route-hostname policy admits hostname-less routes`: builds on [#3861](https://github.com/cozystack/cozystack/pull/3861), which never reaches this line - [#5356](https://github.com/cozystack/cozystack/pull/5356) `fix(seaweedfs): point the Lance catalog consumers at the renamed s3 Service`: builds on [#4079](https://github.com/cozystack/cozystack/pull/4079), which never reaches this line - [#5357](https://github.com/cozystack/cozystack/pull/5357) `fix(api): skip an invalid ApplicationDefinition instead of failing startup`: builds on [#4424](https://github.com/cozystack/cozystack/pull/4424), which never reaches this line - [#5148](https://github.com/cozystack/cozystack/pull/5148) `fix(gateway): skip a child apex the wildcard certificate already covers`: builds on [#3342](https://github.com/cozystack/cozystack/pull/3342), which never reaches this line - [#4167](https://github.com/cozystack/cozystack/pull/4167) `fix(gateway): copy allowed routes for the edge listener`: builds on [#3861](https://github.com/cozystack/cozystack/pull/3861), which never reaches this line - [#4954](https://github.com/cozystack/cozystack/pull/4954) `fix(tenant): render the LimitRange only under a compute quota`: builds on [#3494](https://github.com/cozystack/cozystack/pull/3494), which never reaches this line - [#5399](https://github.com/cozystack/cozystack/pull/5399) `fix(kubernetes-nodes): surge one worker at a time during a pool rollout`: builds on [#3315](https://github.com/cozystack/cozystack/pull/3315), [#5153](https://github.com/cozystack/cozystack/pull/5153), which never reaches this line - [#5436](https://github.com/cozystack/cozystack/pull/5436) `fix(ingress-nginx): pick up the nginx rebuild with the remaining CVE fixes`: builds on [#5377](https://github.com/cozystack/cozystack/pull/5377), which never reaches this line - [#5236](https://github.com/cozystack/cozystack/pull/5236) `fix(kubernetes): include the namespace in the kubevirt-csi ClusterRole name`: builds on [#4563](https://github.com/cozystack/cozystack/pull/4563), which never reaches this line ### Maintainer overrides - [#3633](https://github.com/cozystack/cozystack/pull/3633) `fix(tenant): retry failed monitoring and gateway installs in place`: `backport/include`, on this branch - [#4095](https://github.com/cozystack/cozystack/pull/4095) `fix(harbor): give the nginx proxy explicit resources so it survives the tenant LimitRange`: `backport/include`, on this branch - [#4289](https://github.com/cozystack/cozystack/pull/4289) `fix(bucket): stop the ACME cleanup hook from talking to localhost, and gate the class`: `backport/include`, on this branch - [#4427](https://github.com/cozystack/cozystack/pull/4427) `fix(monitoring): give kube-apiserver its own scrape size limit`: `backport/include`, on this branch - [#4537](https://github.com/cozystack/cozystack/pull/4537) `fix(mariadb): correct webhook cert-manager override key path`: `backport/include`, on this branch - [#4673](https://github.com/cozystack/cozystack/pull/4673) `fix(backups): create no driver object for a job that already finished`: `backport/include`, on this branch - [#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`, on this branch - [#5005](https://github.com/cozystack/cozystack/pull/5005) `fix(tcp-balancer): cap HAProxy fds and threads by the pod's own limits`: `backport/include`, on this branch - [#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`, parked: builds on [#3861](https://github.com/cozystack/cozystack/pull/3861), which never reaches this line - [#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 - [#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, merged before `release-1.6` started under the policy on 2026-10-26: 553, too many to list here; the run's output lists them - Rule 2, the title type is not `fix` or `security`, or the scope is `deps`: 80, too many to list here; the run's output lists them - Rule 3, a breaking change: 6 - Rule 4, touches platform migrations, `targetVersion` or a CRD, or makes a sizeable API change: 3 - Rule 6, not on `release-1.7` yet: 16 - Dropped from `release-1.6` by a maintainer: 5 <details><summary>Rule 3, a breaking change</summary> - [#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> - [#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>Rule 6, not on `release-1.7` yet</summary> - [#5232](https://github.com/cozystack/cozystack/pull/5232) `fix(clickhouse): let a running backup sidecar pick up system-bucket credentials`, `not on release-1.7 yet` - [#5229](https://github.com/cozystack/cozystack/pull/5229) `fix(clickhouse): keep failed backup attempts out of the bucket`, `not on release-1.7 yet` - [#5221](https://github.com/cozystack/cozystack/pull/5221) `fix(postgres): stop backup jobs from fighting over the WAL archive destination`, `not on release-1.7 yet` - [#5227](https://github.com/cozystack/cozystack/pull/5227) `fix(mariadb): restore the dump a Backup was taken as`, `not on release-1.7 yet` - [#5309](https://github.com/cozystack/cozystack/pull/5309) `fix(linstor): restore snapshots on a schedulable node`, `not on release-1.7 yet` - [#5294](https://github.com/cozystack/cozystack/pull/5294) `fix(postgres): hold the WAL archive destination for backups no job tracks`, `not on release-1.7 yet` - [#5295](https://github.com/cozystack/cozystack/pull/5295) `fix(postgres): restore from an archive with the access it was written with`, `not on release-1.7 yet` - [#5344](https://github.com/cozystack/cozystack/pull/5344) `fix(backups): stop leaking MariaDB dumps of stuck runs and torn-down namespaces`, `not on release-1.7 yet` - [#5375](https://github.com/cozystack/cozystack/pull/5375) `fix(kubernetes): apply addons.monitoringAgents.valuesOverride`, `not on release-1.7 yet` - [#5224](https://github.com/cozystack/cozystack/pull/5224) `fix(clickhouse): delete the archive when its Backup is deleted`, `not on release-1.7 yet` - [#5398](https://github.com/cozystack/cozystack/pull/5398) `fix(cluster-api): name the kubeconfig the upgrade hook runs with`, `not on release-1.7 yet` - [#5415](https://github.com/cozystack/cozystack/pull/5415) `fix(clickhouse): keep a quota-held archive delete and count a failed one once`, `not on release-1.7 yet` - [#5049](https://github.com/cozystack/cozystack/pull/5049) `fix(kubernetes): bump tenant worker Talos to v1.13.12 (CVE-2026-99999)`, `not on release-1.7 yet` - [#5426](https://github.com/cozystack/cozystack/pull/5426) `fix(seaweedfs): stop reserving storage pool name suffixes`, `not on release-1.7 yet` - [#5427](https://github.com/cozystack/cozystack/pull/5427) `fix(kubernetes): stop refusing extraOutputs hooks monitoring-agents accepts`, `not on release-1.7 yet` - [#5320](https://github.com/cozystack/cozystack/pull/5320) `fix(postgres): bound a backup whose cnpg Backup stalls in pending`, `not on release-1.7 yet` </details> <details><summary>Dropped from `release-1.6` by a maintainer</summary> - [#5142](https://github.com/cozystack/cozystack/pull/5142) `fix(release): keep release bodies within GitHub's size limit`, `dropped on #5312: not needed on release-1.6, it ships only patches now and their changelogs are 8-22 KB, far below release body limit` - [#5155](https://github.com/cozystack/cozystack/pull/5155) `fix(postgres): refuse system databases and never drop them`, `dropped on #5312: builds on init script passes from #4078 and #4574, release-1.6 doesn't have them and #4078 is breaking` - [#4960](https://github.com/cozystack/cozystack/pull/4960) `fix(vm-disk): refuse a disk smaller than the golden image it clones`, `dropped on #5312: builds on golden image checks of #4796, which is breaking and won't reach release-1.6` - [#4920](https://github.com/cozystack/cozystack/pull/4920) `fix(lineage-webhook): keep an explicit tenantresource false`, `dropped on #5312: its test needs newHandleTestWebhook from #4447, which never reaches release-1.6` - [#5405](https://github.com/cozystack/cozystack/pull/5405) `fix(postgres): move tenant PostgreSQL to patched standard-trixie images`, `dropped on #5312: reverted on release-1.7 in #5461, comes to release-1.6 only as the hand port #5433 after #5459 is fixed` </details> ```backport-batch {"version":3,"line":"release-1.6","built":{"main":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","line":"5de32a56267d6fb8e8c858af0e3b022e2dad0ec0","newer":"d096e1006921674455330a1b498a30a8b1309a67","policy":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","batch":"6b310132a6e13e0f7df0fca067e6816e9a660fc1","tool":"fba9fa8278a08150215670406c7e6e63832c9dee","run":"","at":"2026-11-26T16:35:08Z","options":{"noWorkflowFiles":true,"mode":"drop"}},"report":"09ba042bd04aab5f5fe57b593a4959c24b9eee7dac2ab6acaca60a4e61c37759","closing":null,"deferred":[],"dropped":[{"original":4920,"merge":"65cb73e38098a127d9c09bca3cf16d431222696e","reason":"its test needs newHandleTestWebhook from #4447, which never reaches release-1.6","on":5312,"date":"2026-11-26"},{"original":4960,"merge":"a5c58e5e985399a687e5f676a7321f828eda5ff7","reason":"builds on golden image checks of #4796, which is breaking and won't reach release-1.6","on":5312,"date":"2026-11-26"},{"original":5142,"merge":"5c564f9154ddc03387fd4cd6b7a9185b11b0bdb3","reason":"not needed on release-1.6, it ships only patches now and their changelogs are 8-22 KB, far below release body limit","on":5312,"date":"2026-11-25"},{"original":5155,"merge":"b53ca1fedebcc6288856995ada2629c06c9e4ae7","reason":"builds on init script passes from #4078 and #4574, release-1.6 doesn't have them and #4078 is breaking","on":5312,"date":"2026-11-26"},{"original":5405,"merge":"30ce2a3cb1de5b64e629780ef70349608d5cd05d","reason":"reverted on release-1.7 in #5461, comes to release-1.6 only as the hand port #5433 after #5459 is fixed","on":5312,"date":"2026-11-26"}],"stale":[],"parked":[{"original":4167,"merge":"2af1e21299e161041e87d07d21fbfa4d81f97903","kind":"dependency","needs":[3861],"announced":true},{"original":4234,"merge":"df42104b13ff01ca23a5a9f0835530b38824af16","kind":"dependency","needs":[5228],"announced":true},{"original":4917,"merge":"44848b9c9d08f529bbef6e1347c2533a24121406","kind":"dependency","needs":[4089],"announced":true},{"original":4945,"merge":"ea4968cf4613f696cd955bb1f66a7cfd877529ce","kind":"dependency","needs":[2352],"announced":true},{"original":4954,"merge":"94d710e50fe728827cb34c0ff7023c772984d1d0","kind":"dependency","needs":[3494],"announced":true},{"original":4970,"merge":"013b166967e72cdd441e3efde58a4bc1ef75192c","kind":"dependency","needs":[3594],"announced":true},{"original":4971,"merge":"048c029e29607a0b4c5b9e3d9e3b70c76e53bb51","kind":"dependency","needs":[4089],"announced":true},{"original":4972,"merge":"ba0b1ac6ef250048dd33657ff0aca9934900d612","kind":"dependency","needs":[4492,4658,4713],"announced":true},{"original":4974,"merge":"60d1f53e82419ad2138807a54d1045007921d986","kind":"dependency","needs":[3315,4386],"announced":true},{"original":4986,"merge":"e4d059ceddfee96d30dabe3c1a4fade5e18c55cf","kind":"dependency","needs":[3962,3964],"announced":true},{"original":5011,"merge":"29e8522f4b8d2fdef964a8e3f60e1af44fcd08e9","kind":"dependency","needs":[4639],"announced":true},{"original":5045,"merge":"382169be52d15f1a0ae4f3500039e0e8a9beb7fb","kind":"dependency","needs":[4552,4598],"announced":true},{"original":5071,"merge":"7dc5c0b5e63e1a7b7308f8d18adf42cfb900148e","kind":"dependency","needs":[3940,4308],"announced":true},{"original":5082,"merge":"94ada11eefdccc9040db71b710334c878f6bed83","kind":"dependency","needs":[3940],"announced":true},{"original":5088,"merge":"b36628661f60d8076a1122487356406c6d5b86b9","kind":"partial","files":["packages/system/ingress-nginx/templates/admission-webhook-networkpolicy.yaml","packages/system/ingress-nginx/tests/admission_webhook_networkpolicy_test.yaml"],"announced":true},{"original":5096,"merge":"6f8171db8990e5a0c12b216c37877abd0798213e","kind":"dependency","needs":[4380],"announced":true},{"original":5133,"merge":"72ff22dc9ebd51c899f024ebefec111d8a36b7b1","kind":"dependency","needs":[4447],"announced":true},{"original":5148,"merge":"b7e72840f92b15241f8dc451819f3a054e70d84a","kind":"dependency","needs":[3342],"announced":true},{"original":5151,"merge":"23461e065d0fa210c2990122663e7f084f7b2a50","kind":"dependency","needs":[4832],"announced":true},{"original":5153,"merge":"da17254bbc2c739c33c06139e7c2cfb280ae60c5","kind":"dependency","needs":[3280,3315,4713],"announced":true},{"original":5175,"merge":"5a5d5cd3d85fec610516651ab9bc5623a83f62cf","kind":"dependency","needs":[3548,3637,3676,3723,3804,3836,3843,3886,3888,3889,3890,3919]},{"original":5211,"merge":"10e0ef9ece2b7a527c5c2c3fed9bdbecacdb668f","kind":"dependency","needs":[4674],"announced":true},{"original":5226,"merge":"aa97451bc2cec98e9ac04131b9efd2a065983fff","kind":"dependency","needs":[3280],"announced":true},{"original":5228,"merge":"238b3ee491f513302722972b50060e689292f826","kind":"dependency","needs":[3562,3580],"announced":true},{"original":5230,"merge":"9e8e10c307584061f497e9b6506765c0e87b6c91","kind":"dependency","needs":[3562,3990,3992,4000,4929],"announced":true},{"original":5236,"merge":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","kind":"dependency","needs":[4563]},{"original":5249,"merge":"e5ab1d6a7e09ff10d92c497a3468c3f9800cff5b","kind":"dependency","needs":[4447],"announced":true},{"original":5308,"merge":"30c4232be19bc1b887228d66e5e0fb8dc508547a","kind":"dependency","needs":[4819],"announced":true},{"original":5329,"merge":"90797d9de977d791d32d16acf7286c848fa6aab2","kind":"dependency","needs":[4261,4756],"announced":true},{"original":5352,"merge":"dec14c736d32cd12798de9af23363469986c7ed4","kind":"dependency","needs":[3861],"announced":true},{"original":5354,"merge":"18a9530b873e557d0198c1b6f2bfeddead746445","kind":"dependency","needs":[5226],"announced":true},{"original":5356,"merge":"4190aa82f5ef93a2bd4edd59a7e1db3f75bc8d01","kind":"dependency","needs":[4079],"announced":true},{"original":5357,"merge":"ec8088e54c719be89fff58fcd17f88950a6cb1a0","kind":"dependency","needs":[4424],"announced":true},{"original":5377,"merge":"d7573c009c482aacfc957954b9c1ae228c844ce7","kind":"dependency","needs":[4549],"announced":true},{"original":5399,"merge":"22843c5c5c204249cf2599ad23abef203d492948","kind":"dependency","needs":[3315,5153],"announced":true},{"original":5436,"merge":"40b4fc6ad4f39d3c449beee2a492fbd7f621b8ba","kind":"dependency","needs":[5377],"announced":true}],"changed":[4004,4673,4915,5119,5124,5210,5364,5373]} ``` ```backport-batch-report {"format":2,"id":"09ba042bd04aab5f5fe57b593a4959c24b9eee7dac2ab6acaca60a4e61c37759","line":"release-1.6","built":{"main":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","line":"5de32a56267d6fb8e8c858af0e3b022e2dad0ec0","newer":"d096e1006921674455330a1b498a30a8b1309a67","policy":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","batch":"6b310132a6e13e0f7df0fca067e6816e9a660fc1","tool":"fba9fa8278a08150215670406c7e6e63832c9dee","run":"","at":"2026-11-26T16:35:08Z","options":{"noWorkflowFiles":true,"mode":"drop"}},"overrides":{"backport/include":[3633,4095,4289,4427,4537,4673,4985,4993,5005,5025,5352,5407],"backport/skip":[4817,4921,4973,4989,4990,5083,5156,5163,5180,5186,5337,5393]},"primary":{"picked":[3633,4004,4095,4289,4427,4537,4673,4797,4893,4896,4915,4946,4948,4963,4965,4984,4985,4993,5005,5024,5025,5086,5087,5091,5094,5098,5100,5102,5114,5119,5123,5124,5134,5152,5160,5183,5184,5189,5190,5207,5208,5210,5212,5213,5242,5250,5265,5270,5280,5284,5326,5331,5340,5348,5358,5364,5373,5392,5403,5407,5443],"missing":[],"deferred":[],"parked":[{"original":4167,"merge":"2af1e21299e161041e87d07d21fbfa4d81f97903","kind":"dependency","needs":[3861]},{"original":4234,"merge":"df42104b13ff01ca23a5a9f0835530b38824af16","kind":"dependency","needs":[5228]},{"original":4917,"merge":"44848b9c9d08f529bbef6e1347c2533a24121406","kind":"dependency","needs":[4089]},{"original":4945,"merge":"ea4968cf4613f696cd955bb1f66a7cfd877529ce","kind":"dependency","needs":[2352]},{"original":4954,"merge":"94d710e50fe728827cb34c0ff7023c772984d1d0","kind":"dependency","needs":[3494]},{"original":4970,"merge":"013b166967e72cdd441e3efde58a4bc1ef75192c","kind":"dependency","needs":[3594]},{"original":4971,"merge":"048c029e29607a0b4c5b9e3d9e3b70c76e53bb51","kind":"dependency","needs":[4089]},{"original":4972,"merge":"ba0b1ac6ef250048dd33657ff0aca9934900d612","kind":"dependency","needs":[4492,4658,4713]},{"original":4974,"merge":"60d1f53e82419ad2138807a54d1045007921d986","kind":"dependency","needs":[3315,4386]},{"original":4986,"merge":"e4d059ceddfee96d30dabe3c1a4fade5e18c55cf","kind":"dependency","needs":[3962,3964]},{"original":5011,"merge":"29e8522f4b8d2fdef964a8e3f60e1af44fcd08e9","kind":"dependency","needs":[4639]},{"original":5045,"merge":"382169be52d15f1a0ae4f3500039e0e8a9beb7fb","kind":"dependency","needs":[4552,4598]},{"original":5071,"merge":"7dc5c0b5e63e1a7b7308f8d18adf42cfb900148e","kind":"dependency","needs":[3940,4308]},{"original":5082,"merge":"94ada11eefdccc9040db71b710334c878f6bed83","kind":"dependency","needs":[3940]},{"original":5088,"merge":"b36628661f60d8076a1122487356406c6d5b86b9","kind":"partial","files":["packages/system/ingress-nginx/templates/admission-webhook-networkpolicy.yaml","packages/system/ingress-nginx/tests/admission_webhook_networkpolicy_test.yaml"]},{"original":5096,"merge":"6f8171db8990e5a0c12b216c37877abd0798213e","kind":"dependency","needs":[4380]},{"original":5133,"merge":"72ff22dc9ebd51c899f024ebefec111d8a36b7b1","kind":"dependency","needs":[4447]},{"original":5148,"merge":"b7e72840f92b15241f8dc451819f3a054e70d84a","kind":"dependency","needs":[3342]},{"original":5151,"merge":"23461e065d0fa210c2990122663e7f084f7b2a50","kind":"dependency","needs":[4832]},{"original":5153,"merge":"da17254bbc2c739c33c06139e7c2cfb280ae60c5","kind":"dependency","needs":[3280,3315,4713]},{"original":5175,"merge":"5a5d5cd3d85fec610516651ab9bc5623a83f62cf","kind":"dependency","needs":[3548,3637,3676,3723,3804,3836,3843,3886,3888,3889,3890,3919]},{"original":5211,"merge":"10e0ef9ece2b7a527c5c2c3fed9bdbecacdb668f","kind":"dependency","needs":[4674]},{"original":5226,"merge":"aa97451bc2cec98e9ac04131b9efd2a065983fff","kind":"dependency","needs":[3280]},{"original":5228,"merge":"238b3ee491f513302722972b50060e689292f826","kind":"dependency","needs":[3562,3580]},{"original":5230,"merge":"9e8e10c307584061f497e9b6506765c0e87b6c91","kind":"dependency","needs":[3562,3990,3992,4000,4929]},{"original":5236,"merge":"a2b341e31be2fc4d7c044a4f5ad5239d5f342af6","kind":"dependency","needs":[4563]},{"original":5249,"merge":"e5ab1d6a7e09ff10d92c497a3468c3f9800cff5b","kind":"dependency","needs":[4447]},{"original":5308,"merge":"30c4232be19bc1b887228d66e5e0fb8dc508547a","kind":"dependency","needs":[4819]},{"original":5329,"merge":"90797d9de977d791d32d16acf7286c848fa6aab2","kind":"dependency","needs":[4261,4756]},{"original":5352,"merge":"dec14c736d32cd12798de9af23363469986c7ed4","kind":"dependency","needs":[3861]},{"original":5354,"merge":"18a9530b873e557d0198c1b6f2bfeddead746445","kind":"dependency","needs":[5226]},{"original":5356,"merge":"4190aa82f5ef93a2bd4edd59a7e1db3f75bc8d01","kind":"dependency","needs":[4079]},{"original":5357,"merge":"ec8088e54c719be89fff58fcd17f88950a6cb1a0","kind":"dependency","needs":[4424]},{"original":5377,"merge":"d7573c009c482aacfc957954b9c1ae228c844ce7","kind":"dependency","needs":[4549]},{"original":5399,"merge":"22843c5c5c204249cf2599ad23abef203d492948","kind":"dependency","needs":[3315,5153]},{"original":5436,"merge":"40b4fc6ad4f39d3c449beee2a492fbd7f621b8ba","kind":"dependency","needs":[5377]}],"skipped":{"on-line":[],"before-start":[2195,2196,2198,2252,2352,2618,2621,2654,2666,2667,2680,2682,2683,2692,2698,2729,2914,2956,2984,3031,3115,3116,3158,3195,3208,3228,3260,3262,3266,3280,3315,3340,3341,3342,3353,3372,3373,3378,3379,3380,3383,3385,3391,3398,3399,3406,3407,3408,3409,3411,3412,3417,3421,3422,3427,3428,3429,3430,3435,3436,3441,3443,3444,3446,3447,3449,3454,3455,3460,3462,3463,3466,3468,3470,3471,3475,3476,3494,3495,3496,3500,3501,3505,3506,3507,3510,3511,3520,3522,3523,3524,3527,3529,3531,3535,3539,3546,3548,3551,3552,3557,3562,3564,3567,3569,3571,3572,3574,3575,3579,3580,3581,3584,3585,3586,3590,3591,3592,3593,3594,3595,3596,3598,3599,3602,3604,3605,3606,3607,3608,3616,3617,3620,3621,3622,3627,3630,3632,3636,3637,3639,3645,3647,3651,3659,3661,3662,3664,3670,3672,3673,3676,3677,3715,3723,3727,3735,3738,3742,3750,3760,3762,3763,3768,3769,3772,3775,3777,3780,3783,3784,3790,3791,3795,3797,3798,3799,3800,3802,3804,3808,3815,3817,3833,3834,3836,3837,3839,3840,3841,3843,3844,3845,3846,3848,3849,3856,3859,3860,3861,3862,3863,3872,3874,3886,3887,3888,3889,3890,3891,3897,3898,3899,3901,3907,3908,3910,3914,3919,3920,3922,3925,3926,3928,3931,3932,3934,3935,3936,3937,3938,3940,3945,3951,3954,3955,3956,3959,3960,3962,3963,3964,3967,3968,3969,3973,3980,3990,3992,3995,3997,4000,4011,4012,4013,4014,4015,4018,4019,4020,4021,4022,4023,4035,4039,4041,4042,4058,4063,4064,4077,4078,4079,4087,4088,4089,4090,4096,4097,4098,4099,4100,4101,4102,4103,4107,4109,4110,4121,4129,4130,4133,4134,4135,4136,4138,4143,4148,4152,4163,4170,4171,4182,4184,4185,4186,4188,4191,4200,4204,4220,4221,4222,4223,4225,4226,4228,4231,4232,4233,4236,4237,4242,4251,4252,4253,4254,4255,4256,4261,4271,4277,4278,4279,4280,4281,4282,4284,4286,4290,4291,4292,4293,4296,4299,4300,4306,4308,4317,4323,4326,4331,4333,4340,4341,4347,4356,4362,4363,4366,4367,4376,4379,4380,4381,4383,4386,4387,4390,4392,4394,4398,4399,4403,4405,4407,4411,4414,4415,4417,4424,4425,4426,4429,4436,4439,4441,4442,4443,4444,4447,4448,4451,4453,4455,4457,4458,4459,4460,4461,4462,4468,4469,4471,4473,4478,4480,4483,4485,4490,4492,4493,4494,4496,4497,4498,4501,4505,4512,4514,4517,4521,4522,4532,4534,4538,4544,4545,4549,4552,4557,4558,4562,4563,4567,4568,4569,4572,4573,4574,4576,4578,4583,4584,4585,4586,4587,4594,4595,4598,4603,4606,4608,4610,4612,4627,4632,4633,4634,4635,4637,4638,4639,4640,4643,4645,4648,4651,4652,4654,4657,4658,4660,4663,4664,4666,4669,4671,4672,4674,4675,4678,4682,4689,4692,4694,4695,4697,4701,4707,4710,4712,4713,4722,4724,4729,4738,4741,4742,4751,4754,4756,4757,4761,4766,4767,4768,4778,4779,4789,4790,4791,4792,4796,4799,4803,4804,4805,4807,4811,4812,4815,4819,4826,4828,4830,4831,4832,4833,4834,4843,4845,4847,4848,4861,4865,4866,4867,4873,4881,4888,4889,4898,4899,4914,4929,4936,4939,4940,4941,4955,4959,5027],"type":[2622,2664,2665,3149,3382,3440,4495,4508,4822,4859,4860,4869,4877,4879,4900,4902,4931,4944,4952,4953,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":[4802,4818,5009,5085,5167,5191],"touches":[5166,5223,5430],"newer":[5049,5221,5224,5227,5229,5232,5294,5295,5309,5320,5344,5375,5398,5415,5426,5427],"skip-label":[4817,4921,4973,4989,4990,5083,5156,5163,5180,5186,5337,5393],"dropped":[4920,4960,5142,5155,5405]}},"overlays":{"dropped":[{"original":4920,"merge":"65cb73e38098a127d9c09bca3cf16d431222696e","reason":"its test needs newHandleTestWebhook from #4447, which never reaches release-1.6","on":5312,"date":"2026-11-26"},{"original":4960,"merge":"a5c58e5e985399a687e5f676a7321f828eda5ff7","reason":"builds on golden image checks of #4796, which is breaking and won't reach release-1.6","on":5312,"date":"2026-11-26"},{"original":5142,"merge":"5c564f9154ddc03387fd4cd6b7a9185b11b0bdb3","reason":"not needed on release-1.6, it ships only patches now and their changelogs are 8-22 KB, far below release body limit","on":5312,"date":"2026-11-25"},{"original":5155,"merge":"b53ca1fedebcc6288856995ada2629c06c9e4ae7","reason":"builds on init script passes from #4078 and #4574, release-1.6 doesn't have them and #4078 is breaking","on":5312,"date":"2026-11-26"},{"original":5405,"merge":"30ce2a3cb1de5b64e629780ef70349608d5cd05d","reason":"reverted on release-1.7 in #5461, comes to release-1.6 only as the hand port #5433 after #5459 is fixed","on":5312,"date":"2026-11-26"}],"stale":[],"changed":[4004,4673,4915,5119,5124,5210,5364,5373]},"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: ### Release note ```release-note fix(tenant): retry a failed monitoring or gateway install instead of uninstalling the release, so a slow first install no longer runs the cleanup hooks that delete the tenant's metrics and logs volumes or its ACME account key fix(harbor): set resources for the nginx proxy and raise the portal preset so neither is OOMKilled by the tenant LimitRange default (128Mi) fix(bucket): the ACME cleanup hook now reaches the apiserver instead of reporting success while doing nothing fix(monitoring): kube-apiserver is scraped with its own 128MB size limit (`vmagent.apiserverMaxScrapeSize` in the monitoring-agents component) instead of the global 32MB, so a large `/metrics` no longer makes KubeAPIDown fire on a healthy API server. A new VMAgentScrapeSizeExceeded alert reports any target whose response exceeds the scrape size limit. fix(mariadb): correct webhook cert-manager override key path so cert-manager is actually used for the mariadb-operator webhook certificate fix(etcd): the tenant etcd alert etcdHighNumberOfFailedGRPCRequests now counts only the gRPC codes that the etcd mixin and the platform copy of the alert count, so the Canceled watch streams of a Kubernetes API server that stops no longer fire it on every etcd member. fix(tcp-balancer): HAProxy now takes its fd and thread caps from the replica's memory and CPU limits instead of the node, so a t1.nano balancer is no longer OOMKilled on nodes with many CPUs. maxconn follows the memory limit at about 16 connections per MiB, 2035 on t1.nano, and the pods roll once on upgrade. fix(tenant): the tenant gateway release no longer times out on upgrade while TenantGateway listener certificates are pending, it waits only until the controller has observed the current TenantGateway spec. fix(controller): existing HelmReleases now get `healthCheckExprs` and `waitStrategy` from their ApplicationDefinition. vm-disk and postgres releases created before these expressions were added stop waiting on DataVolume and KEDA ScaledObject during upgrades. fix(cilium): the IPAM migration hook no longer fails with "Argument list too long" on clusters with more than a few nodes, which blocked the cilium upgrade and every package that depends on networking. fix(kubernetes): the OIDC bootstrap Job no longer fails to start for a tenant cluster with about 240 or more oidc.users, the bindings now come from a ConfigMap the Job mounts. fix(clickhouse): a RestoreJob now restores the archive its Backup was taken as, not the newest one. New Backups record the archive name, Backups taken before this release are restored best effort from the newest archive stamped no later than their takenAt, with a warning in the restore pod log. A ClickHouse BackupJob created again under a name whose Backup still exists now fails instead of reporting that Backup as its result. fix(postgres): the init script renders the declared databases in a stable order, so an upgrade that leaves the databases unchanged no longer rewrites the init-script Secret. fix(mariadb-operator): the MariaDB operator now uses the platform's networking.clusterDomain instead of a hard-coded cozy.local, so replication and User/Database/Grant reconciliation work on clusters with a non-default cluster domain. fix(api): tenant quota admission now counts the parent pool's usage of extended resources and hugepages, so a child tenant can no longer get a share the parent has already used. After upgrading, updates to existing tenants may be rejected if their quota for these resources exceeds the parent's remaining budget. This includes updates that leave the quota unchanged. fix(mariadb): a MariaDB BackupJob or RestoreJob whose operator Job failed now ends Failed instead of Succeeded, and a failed backup no longer creates a Ready Backup without an archive. Backups created by failed runs before this fix are not removed; restoring from one can fail or select another dump from the shared prefix. fix(kubernetes, monitoring): the vmagent of tenant Kubernetes clusters now writes to the tenant's vminsert and labels series with the owning tenant instead of `cozy-monitoring`. Previously no tenant cluster metric reached the tenant's Monitoring. fix(seaweedfs): bucket users granted together could get S3 keys that never work (403 InvalidAccessKeyId). COSI driver is bumped to v0.4.0, which writes each grant to per-identity IAM file. 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(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(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(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(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. [vpa] Shorten the VPA admission webhook timeout to 5s so pod creation does not stall cluster-wide while the admission controller is unreachable. 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(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(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(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(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. 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(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(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(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(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(ingress): restore visitor IP handling for Cloudflare-proxied HTTPS through ssl-passthrough while rejecting spoofed `CF-Connecting-IP` headers before IP whitelists ```v1.6.6-rc.1 |
||
|
|
d85c8d7c7b |
security(monitoring): pin the Alerta image by digest
The entrypoint and nginx template mounted over the image are copies of alerta-web 9.1.0 at this digest. A retagged image could carry different files, and the mounted copies would then no longer match it. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
51acf0fcbb |
security(monitoring): reset the Alerta admin password on every start
The entrypoint creates admin users only when they are missing, so an admin user created before Alerta had a password of its own keeps the Grafana password, which stays valid after an operator rotates Grafana's. The mounted entrypoint runs a step right after user creation that sets every admin user's password to ADMIN_PASSWORD, and stops the container if it fails. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
cbdb4f64a5 |
security(monitoring): show tenants Alerta's login apart from its keys
Tenants logged in to the Alerta UI with the Grafana credentials, the only Secret of the release they are shown. With Alerta on a password of its own, that password moves to a Secret that holds nothing but the login, listed for tenants next to Grafana's, so the signing key and the API key in the alerta Secret stay hidden. The alerta Secret is now rendered under data alone. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
77c74ea04a |
test(backups): register the RestoreJob status subresource in the fake client
The restore tests on this line build their fake client without a status subresource for RestoreJob, so a reconcile that fails the job through Status().Update gets NotFound instead of a Failed phase. The cross-tenant checks backported here are the first tests on this line to take that path; main already registers it. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
bd1bdc7a38 |
security(monitoring): keep Alerta credentials out of its container log
The Alerta entrypoint prints the whole environment, including the admin password and API key, and echoes the admin API keys it creates, while nginx logs the request line where Alertmanager passes the key as a query parameter. Pod logs are readable at lower tenant tiers than the credentials themselves. This line runs the upstream image, so the entrypoint and nginx template are mounted over the image's copies from a ConfigMap, changed only to drop that output and mask the parameter. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
661be40703 |
test(harbor): select the nested HelmRelease by kind
The registry credential Secret now renders ahead of the HelmRelease, so a fixed document index points the storageClass assertions at the wrong object. Select the release by kind, as main already does. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
2682f9d3b8 |
fix(harbor): roll jobservice without a surge
jobservice keeps its job log on a ReadWriteOnce volume, but the
upstream chart rolls it with the default surge. When the replacement
lands on another node it waits on the volume attach for good, and the
nested release fails as stalled. The registry credential rotation
restarts jobservice on every existing release, so the upgrade would hit
this on any multi-node cluster.
Only jobservice is changed, through a post-renderer: the chart's own
switch to Recreate also applies to the registry, which keeps its data
in S3 and should go on rolling without an outage.
Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
(cherry picked from commit
|
||
|
|
428d5a5e0f |
security(harbor): give the inner registry its own credential and port policy
The Harbor application never set a credential for the registry that
Harbor core and jobservice talk to, so the vendored chart's published
default applied, and the registry Service accepted it from any pod the
tenant network policies let through. That bypasses Harbor's own
authorisation, quotas and audit log.
Each release now gets a random registry password with a matching
htpasswd line, kept in a Secret that stays out of the tenant-visible
allowlist and is reused across upgrades so the bcrypt salt does not
restart the registry on every reconcile. An existing installation
rotates on upgrade: core, jobservice and registry roll together because
their Secret checksums change; registry storage is untouched.
The inner chart also ships a CiliumNetworkPolicy that denies the
registry and registryctl ports to everything but core, jobservice and
trivy of the same release. A deny is needed because the tenant base
policy already allows the traffic and Cilium allow rules are additive.
Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
(cherry picked from commit
|
||
|
|
ed1b86fda5 |
fix(backups): confine Velero restore-copy to the tenant's namespace subtree
A RestoreJob with the Velero strategy took options.targetNamespace verbatim
and, for a cross-namespace copy, checked only that the namespace existed. A
tenant administrator could restore their own backup - Secrets, PVCs and data
included - into any other tenant's namespace, or overwrite an application
there. GHSA-vq9c-8j6p-r6mp / GHSA-p7mc-34g4-53vv / GHSA-4295-xcmq-8h9h.
Require the target namespace to carry the tenant.cozystack.io/<restoreJob
namespace> subtree label, the same marker the Cilium egress and
tenant-namespace delete policies already use. The target is then the
RestoreJob's own namespace or a descendant; a different tenant, a parent, a
sibling or a system namespace is refused before any Velero Restore is created.
Restore-copy within a tenant's own subtree keeps working.
Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
(cherry picked from commit
|
||
|
|
479245f4f1 |
fix(monitoring): give Alerta a real signing key and its own admin password
Alerta signs its session JWTs with SECRET_KEY, but the upstream image never
wires a real value into it: the entrypoint renders the generated key into
alertad.conf under the name SECRET (which the application never reads) and
unsets SECRET_KEY before exec, so at runtime the built-in default from
alerta.settings ("changeme") signs and verifies every token. Anyone can mint
a valid admin token without credentials.
Alerta's admin account also reused Grafana's credentials
(grafana-admin-password), and Alerta exposes the whole process environment via
/api/management/properties to any admin-scoped caller, so admin on Alerta
yielded Grafana's admin password.
Generate a strong SECRET_KEY and a dedicated admin password, persist both in
the alerta Secret so they survive upgrades and restarts, feed the key to the
application through a mounted alertad.conf under the name it actually reads,
and stop referencing grafana-admin-password. Add a unittest covering the key,
the mount and the credential decoupling.
Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
|
||
|
|
6b310132a6 |
fix(backups): delete the Velero backup of a failed BackupJob (#5364)
<!-- 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
<!-- Link the issues this PR addresses. For a complete fix targeting the
default branch, use Closes #N (Closes owner/repository#N for another
repository). Otherwise use a non-closing reference; release-branch PRs
need manual issue linking and closure when appropriate. -->
Closes #5355
A BackupJob whose Velero backup ends `Failed` or `PartiallyFailed`
leaves that `backup.velero.io` object and its data in the backup bucket
(partial resources, logs) until Velero's TTL expires it, 720h by
default. No `Backup` is created for a failed run, and the `Backup`
finalizer was the only code that asked Velero to delete backup data;
deleting the BackupJob does not remove it either, because the Velero
backup is only labelled for the job, not owned by it.
The first commit requests deletion of the failed Velero backup through a
`DeleteBackupRequest`, and turns the reconcile of a `Failed` BackupJob,
which returned at once, into a sweep over the Velero backups still
labelled for the job. That sweep also cleans up backups leaked by
earlier versions after an upgrade. The request creation is shared with
the `Backup` finalizer and named after the Velero backup, so repeated
reconciles converge on one request. The failure message is unchanged.
The second commit narrows that sweep and makes it converge:
- Only `Failed`, `PartiallyFailed` and `FailedValidation` Velero backups
are deleted. A `Completed` one is never touched from a job-level
failure: a job can fail after Velero completed (creating or recording
the `Backup` failed), and that Velero backup may be the only copy of
good data.
- Deletion is requested only after `Failed` is persisted. The strategy
no longer sends the request inline, so a failed status write cannot
leave a retried run without the backup it reports the failure from. The
BackupJob watch has no predicate, so the `Failed` status update itself
triggers the sweep.
- While a failed backup still exists, the job is requeued every 5
minutes. Nothing watches `DeleteBackupRequest`, so this is how a request
Velero processed with errors is noticed and replaced. A backup that is
still running is rechecked every minute.
- Backups that reference the Velero backup are read through the uncached
API reader before anything is deleted.
- The ClusterRole of `backupstrategy-controller` gains `delete` on
`deletebackuprequests`, needed to replace a processed-with-errors
request. The `Backup` finalizer shares the helper, and without the verb
that path would fail with 403.
The third commit makes a deletion that Velero could not finish converge,
and makes it visible:
- A Velero backup in `Deleting` goes through the same request path.
Velero sets that phase before it removes the data and leaves it there
when removal fails, so skipping it left the data in place until the TTL.
- Our own request that Velero processed while the backup still exists is
replaced, whether it carries errors or not. The second case is a backup
that the BSL sync brought back.
- Each replacement emits a `VeleroBackupDeletionFailed` Warning event on
the BackupJob with Velero's `status.errors`, and doubles the wait before
the next replacement, 5 minutes up to 1 hour (enforced from the recorded
attempt time since the fourth commit). The count is kept in the
`backups.cozystack.io/velero-deletion-retries` annotation on the
BackupJob. A missing, read-only or unavailable BSL therefore shows up in
`kubectl describe` instead of being retried silently every 5 minutes.
The fourth commit makes the backoff binding rather than advisory:
- Each request the sweep creates records its time in the
`backups.cozystack.io/velero-deletion-attempted-at` annotation, next to
the retry counter. A request Velero has processed is replaced only once
the backoff for the current retry count has passed since that time.
Writing the annotations triggers a reconcile at once, because the
BackupJob watch has no predicate; that reconcile now only computes the
remaining wait. Before, with a BSL that fails instantly, it could
replace the request again right away.
- A request Velero has not processed yet, and a Velero backup still in
`New` or with no phase, are checked again after as long as they have
already waited: between 5 minutes (1 minute for a running backup) and 1
hour. Waiting emits no event.
- If the job was deleted before the annotations are written, the sweep
stops quietly. Any other error writing them is logged, and the computed
requeue is kept, because the request already exists.
Points for the reviewer:
- The sweep matches on the BackupJob labels, not on the strategy kind,
because a `Failed` job's BackupClass may be gone. The Kubernetes
strategy labels its Velero backup the same way and has the same leak on
failure, so a failed Kubernetes strategy run is cleaned up by the sweep
as well.
- The Velero strategy still treats a `FailedValidation` Velero backup as
in progress and requeues the BackupJob indefinitely. That is unchanged
here; the sweep already treats `FailedValidation` as deletable.
- After the upgrade, the Velero backups of BackupJobs that already
failed are deleted. An operator who wants one of them for a manual
`velero restore` must copy it first.
### Screenshots
<!-- 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. -->
N/A — no UI changes.
### 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.
-->
The diff touches Go code in `internal/backupcontroller/` and one chart
file, `packages/system/backupstrategy-controller/templates/rbac.yaml`,
which adds the `delete` verb on `deletebackuprequests` to the
controller's ClusterRole. Walked against the trigger map:
- website: no package, platform value, variant, component, release
asset, ApplicationDefinition, Talos or tooling change. The ClusterRole
is not documented there.
- terraform-provider-cozystack: no app, schema field, enum, default,
`kind`/`plural`, prefix, or `Package`/`Plan`/`RestoreJob` CRD change.
- ansible-cozystack, talm, examples: no installer value, namespace,
variant, platform value, node prerequisite, or object the role waits on.
- ccp, external-apps-example: nothing under `hack/`, no package layout,
`-rd` path, variant, `tags.yaml`, `ApplicationDefinition` CRD or
commit-convention change.
- cozyhr, cozy-proxy, cozystack-telemetry-server, community: none of
their annotations, labels, metrics, `hack/package.mk` targets, PR
template or commit convention change.
No entry applies.
- [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(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`.
```
Backported-from:
|
||
|
|
40af058885 |
fix(clickhouse): restore the archive a Backup was taken as (#5208)
## What this PR does
A ClickHouse `RestoreJob` restored the newest archive under the app
prefix, whichever `Backup` it named. Strategy pod generated the archive
name with `date -u` and nothing was recorded on the `Backup`, so restore
could only list the remote archives and take the last one. Restoring an
older `Backup` brought back the latest data.
Now the controller names the archive before it creates the backup Job
(`clickhouse-<app>-<startedAt>` from persisted `status.startedAt`, so
retried pods write the same one), passes it to the pod as `.ArchiveName`
and records it in the `Backup` `driverMetadata`. Restore takes exactly
that archive and fails with its name when storage has no such archive.
The name is recorded only when the Job's pod got it, so a Job left from
the previous controller during an upgrade, or a custom strategy with its
own names, leaves no name instead of a wrong one.
A retried pod reuses the name, so it waits for an attempt the sidecar
still runs (no 423) and asks for `resume`.
A `Backup` outlives its `BackupJob` and a Plan names `BackupJob`s after
the schedule slot, so a `BackupJob` created again under a used name met
the earlier run's `Backup` when its Job completed, took it as its result
and left the archive it just wrote recorded nowhere. Now it fails if
that `Backup` records another archive, and the message names both. A
retry of the same run still gets its own `Backup` back.
Old `Backup`s have no recorded name and stay restorable: the pod logs a
`WARNING` and takes the newest archive stamped no later than `takenAt`,
and fails when nothing qualifies. While the chart rolls out, previous
controller pod can still render the new template and pass no `takenAt`,
so a restore of a `Backup` without recorded name fails before it touches
any table, and works when created again after the rollout.
Fixes https://github.com/cozystack/cozystack/issues/5199
Tests are go unit tests for naming, recording, a reused `BackupJob` name
and restore render, and `hack/altinity-backup-strategy.bats`, which runs
the shipped script against a stubbed clickhouse-backup API (the restore
tests go red on the old template). Checked on a live ClickHouse with two
backups of 1500 and 2000 rows: restore of the older one by recorded name
ends with 1500 rows, fallback for an unnamed older backup picks the same
archive with the warning, a missing archive fails without touching the
table, a retry over an existing local backup completes under the same
name. The controller binary itself was not run on the cluster, only its
rendered output in the pod.
### 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(clickhouse): a RestoreJob now restores the archive its Backup was taken as, not the newest one. New Backups record the archive name, Backups taken before this release are restored best effort from the newest archive stamped no later than their takenAt, with a warning in the restore pod log. A ClickHouse BackupJob created again under a name whose Backup still exists now fails instead of reporting that Backup as its result.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Backups now use a consistent archive name tied to the backup job, and
completed backups retain that name for future restores.
* Restores can select the recorded archive and backup timestamp. If no
archive was recorded, the system selects the newest eligible archive for
the application.
* **Bug Fixes**
* A restore now fails when its recorded archive is missing instead of
silently selecting a different one.
* Backup requests avoid starting a duplicate action when the matching
action is already in progress.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Backported-from:
|
||
|
|
ee1d64c4e2 |
fix(backups): enforce the Velero deletion backoff of failed BackupJobs
The retry backoff of the failed-job sweep only set RequeueAfter. Writing the
retry counter onto the BackupJob triggers a reconcile at once, since the
BackupJob watch has no predicate. When Velero processes a request instantly,
as it does when the backup storage location is missing or read-only, that
reconcile replaced the request again, emitted another event and raised the
counter without any wait. The sweep now records when it last created a
request, in the backups.cozystack.io/velero-deletion-attempted-at annotation,
and replaces a processed request only after the backoff for the current
count has passed since then. Before that, it requeues for the remaining
time.
A request Velero never processes, because Velero is down, and a Velero
backup stuck in New or with no phase were checked at a fixed interval,
each check with an uncached list of Backups. They are now checked again
after as long as they have already waited, from the request's or the
backup's creation time, capped at one hour. Waiting emits no event.
Recording the attempt can fail after the request was created. If the job
was deleted meanwhile, the sweep ends without an error. Any other error is
logged and the computed requeue is kept, because failing the reconcile
would only retry sooner.
Unit tests drive the clock through two back-to-back reconciles of an
instantly processed request (one replacement, one event), then three
retries at 10, 20 and 40 minutes. They also check the waiting intervals for
requests and backups of different ages, and both annotation write errors.
Refs: #5355
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
(cherry picked from commit
|
||
|
|
0acc4d3dfa |
fix(backups): fail a ClickHouse BackupJob whose Backup name is taken
A Backup outlives the BackupJob that made it, so a BackupJob created
again under a name already used meets the earlier run's Backup when its
own Job completes. That happens by hand, and from a Plan reconciled
again inside its starting deadline, since a Plan names each BackupJob
after its schedule slot. The Altinity driver took the earlier Backup as
its result: the BackupJob turned Succeeded with a BackupRef recording
the earlier run's archive, the archive this run wrote was recorded on
nothing, and restoring what the BackupJob reported brought back the
older data.
An existing Backup is now taken as this run's only when it records this
run's archive, which is what an earlier reconcile of the same run
leaves when its status write is lost. Any other fails the BackupJob,
naming both archives, and leaves the earlier Backup untouched.
Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
(cherry picked from commit
|
||
|
|
6d70eb20de |
fix(backups): retry stuck Velero deletions of failed BackupJobs and report them
Velero marks a backup Deleting before it removes the data and leaves it in
that phase when removing the data fails, with the deletion request
processed with errors. The failed-job sweep skipped Deleting backups and
did not requeue for them, so their data stayed in the bucket until
Velero's TTL. Deleting backups now go through the same request path: a
pending request is left alone, and a processed one of ours is replaced.
A request of ours that Velero processed without errors is also replaced
when the backup still exists, for example after the BSL sync brought it
back. Otherwise the request name blocked a new attempt until Velero
garbage-collects processed requests a day later.
When Velero can never carry out the deletion, because the backup storage
location is missing, read-only or unavailable, the sweep replaced the
request every 5 minutes without any sign of it. Each replacement now
emits a VeleroBackupDeletionFailed Warning event on the BackupJob with
Velero's status.errors, and doubles the requeue interval from 5 minutes
up to 1 hour. The count is kept in the
backups.cozystack.io/velero-deletion-retries annotation, because the
replaced request is gone and a requeue carries no state. The
controller's ClusterRole already allows patching BackupJobs.
Unit tests cover a Deleting backup with a pending request and with an
errored one, a cleanly processed request whose backup still exists, an
errored request under a foreign name that is left alone, three
consecutive failed deletions (three events, 10m, 20m and 40m requeues,
the 1h cap), and a cluster without the Velero CRDs.
Refs: #5355
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
(cherry picked from commit
|
||
|
|
1dc45c6ec6 |
fix(backups): keep completed Velero backups of failed BackupJobs
The failed-job sweep treated a Completed Velero backup as deletable. A
BackupJob can fail after Velero completed, when creating or recording its
Backup fails transiently, and that Velero backup may be the only copy of a
good backup. The sweep now deletes only Failed, PartiallyFailed and
FailedValidation backups, also when several Velero backups reference one
job, and it reads the Backups that may reference them through the uncached
API reader, so a Backup the cache has not seen yet still protects its data.
The Velero strategy no longer requests the deletion before it records the
failure. If that status write failed, Velero removed the backup and the
retried run created a new one, so the failure was lost. The deletion now
comes only from the sweep, which runs on the reconcile that the persisted
Failed phase triggers; the BackupJob watch has no predicate that drops
status updates.
Replacing a request that Velero processed with errors deletes it, and the
backupstrategy-controller ClusterRole only allowed create, get, list and
watch on deletebackuprequests. That Delete failed with 403, and since the
Backup finalizer uses the same helper, a Backup deletion could get stuck
on it. The rule now includes delete.
Nothing watches DeleteBackupRequests, so the sweep did not run again after
Velero processed a request with errors. A Failed job now requeues every
5 minutes while a failed Velero backup of it remains, which replaces such a
request, and every minute while one is still running, instead of every 5
seconds.
Unit tests cover a rejected Failed status write, Completed, Deleting and
FailedValidation backups, a request processed with and without errors, the
UID precondition on the replacement, a Backup visible only to the uncached
reader, and API errors from the helper.
Refs: #5355
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
(cherry picked from commit
|
||
|
|
9967676a68 |
fix(backups): delete the Velero backup of a failed BackupJob
When a Velero strategy run ended Failed or PartiallyFailed, no Backup was
created, and the Backup finalizer was the only code that asked Velero to
delete backup data. The failed backup.velero.io object, labelled for the
BackupJob but not owned by it, stayed in the bucket with its partial
resources and logs until Velero's TTL (720h by default) expired it, and
deleting the BackupJob did not remove it.
The strategy now requests the deletion through a DeleteBackupRequest before
it marks the job Failed, and the failure message is still read from the
Velero backup first. A direct delete is not enough, because the BSL sync
recreates the object from the object store. A reconcile of a Failed
BackupJob, which used to return at once, now requests deletion of every
Velero backup still labelled for the job. That retries a request that could
not be created and removes backups that earlier versions leaked, after an
upgrade. A Velero backup that a Backup references (the job failed after its
Backup was created) is left alone, and one still running is polled until
Velero accepts a request for it. The sweep matches on the job labels, so it
also covers the Velero backup of a failed Kubernetes strategy run.
The request is named after the Velero backup, and the Backup finalizer uses
the same helper, so repeated reconciles converge on one request. Nothing is
created while another request for the backup is pending. A request that
Velero processed with errors is replaced, because Velero keeps it for a day
and its name would block the retry until then. A job with more than one
Velero backup now fails with a message that names them, not with an empty
one.
Fake-client unit tests cover Failed and PartiallyFailed runs, a repeated
reconcile, leftovers of already Failed jobs (no request, a pending request,
a request processed with errors, a Backup-referenced backup, a running
backup) and the unchanged Succeeded path.
Closes: #5355
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
(cherry picked from commit
|
||
|
|
529b3b6729 |
fix(lineage, kubernetes): resolve CAPK node VMs to their cluster (#5124)
<!-- 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
The virt-launcher pods of Kubernetes worker nodes are never marked as
managed by the lineage webhook, so anything that relies on the webhook
having resolved them misses them. The visible symptom: a SecurityGroup
attached to a `Kubernetes` application labels the control-plane pods but
never the worker nodes, because the securitygroup-controller caches only
pods carrying `internal.cozystack.io/managed-by-cozystack=true`.
**Root cause.** The webhook is not skipped for these pods (they do not
carry the managed-by label, so the `objectSelector` lets them through);
it runs and fails to resolve their owner chain. The walk goes Pod →
VirtualMachineInstance → VirtualMachine and stops there: the Cluster API
KubeVirt provider creates the VirtualMachine with no ownerReference and
links it to its KubevirtMachine through the
`capk.cluster.x-k8s.io/kubevirt-machine-{name,namespace}` labels only.
With no ownerReference, no HelmRelease kind and no
`helm.toolkit.fluxcd.io/name` label on the VM, `WalkOwnershipGraph`
returns no ancestor, `computeLabels` returns nothing and the pod is
admitted unmanaged. The
`apps.cozystack.io/application.{group,kind,name}` labels the pods do
carry come from the `KubevirtMachineTemplate` in
`packages/apps/kubernetes-nodes/templates/nodegroup.yaml`, not from the
webhook.
**Measured on a v1.6.5 cluster.** Every Kubernetes cluster on it showed
the same shape (three clusters across two tenants). For one worker node:
the pod carries the three lineage labels but not `managed-by-cozystack`;
the pod is owned by its VMI and the VMI by its VM; the VM has no
ownerReferences, and its labels include
`capk.cluster.x-k8s.io/kubevirt-machine-name` and
`capk.cluster.x-k8s.io/kubevirt-machine-namespace` pointing at a
KubevirtMachine in the same namespace. From there ownerReferences run
KubevirtMachine → Machine → MachineSet → MachineDeployment → Cluster,
and the CAPI Cluster carries `helm.toolkit.fluxcd.io/name:
kubernetes-<name>`. The bridge is one hop. Setting
`managed-by-cozystack=true` by hand on a worker's virt-launcher pod made
the securitygroup-controller stamp the membership label within ten
seconds.
**Fix.** `WalkOwnershipGraph` now follows a VirtualMachine without
ownerReferences to the KubevirtMachine named by its CAPK labels, and
keeps walking from there. Node pods then resolve to the parent
`Kubernetes` application, which is the attribution the machine template
already hard-codes, and they get `managed-by-cozystack` like every other
managed pod. The bridge is only taken when the label names the VM's own
namespace: CAPK can target an external infrastructure cluster, and the
walk must never attribute an object across namespaces. The webhook's
ClusterRole already grants `get` on every resource, so no RBAC change is
needed.
**Why at the source rather than in the consumer.** Relaxing the
securitygroup-controller's pod cache to
`apps.cozystack.io/application.kind` Exists would also have fixed the
symptom, but it would leave every other consumer of the managed-by label
blind to node pods, and it would rest membership on labels the webhook
never vouched for. Stamping `managed-by-cozystack` from the machine
template was ruled out too: the `objectSelector` would then skip these
pods entirely, and they would lose the scheduling-class injection the
webhook performs on every pod.
**Blast radius.** Only objects below a CAPK VM change: the VMI, the
virt-launcher pods and the PVCs of the VM's `dataVolumeTemplates` now
get the lineage labels of their Kubernetes application. None of them
match a resource selector of the `Kubernetes` ApplicationDefinition, so
they get `tenantresource=false`. Nothing selects PVCs on
`application.kind=Kubernetes` (the Velero strategy selects `VMDisk`).
The `-userdata` cloud-init Secret CAPK creates is not affected either
way: at the pinned provider commit, `reconcileKubevirtBootstrapSecret`
creates it with the bootstrap Secret's labels and no ownerReferences, so
the walk reaches neither the VM nor the KubevirtMachine from it, before
or after this change. Existing node pods pick the labels up on their
next admission (recreation, live migration, or any update).
**Tests.** `pkg/lineage/capk_test.go` builds the observed chain in a
fake dynamic client and checks that a worker's virt-launcher pod
resolves to `Kubernetes/cluster-a`, that a VM pointing at a
KubevirtMachine in another namespace is not followed, that a VM without
CAPK labels still has no ancestor, and, in a table of negative cases,
that the CAPK labels are ignored on any object other than a
`kubevirt.io/v1` VirtualMachine (another kind of the `kubevirt.io`
group, a VirtualMachineInstance, a VirtualMachine of another group or
version). Weakening the kind and API version guard to match on either
field alone fails all four cases. With the bridge disabled, the first
test fails. No chainsaw case: the only suites that bring up worker VMs
are `kubernetes-latest` and `kubernetes-previous`, whose shared runner
script is already over its time budget, and the unit test covers the
walk exactly as it runs in the webhook.
### Screenshots
<!-- 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(lineage, kubernetes): the virt-launcher pods of Kubernetes worker nodes are now resolved to their Kubernetes application and marked as managed by Cozystack, so a SecurityGroup attached to a Kubernetes cluster now applies to its worker nodes, not only to its control plane.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Lineage results now connect supported virtual machines to their
associated machine and Kubernetes application when the required
association labels are present.
* **Bug Fixes**
* Association tracing is limited to supported virtual machine resources
and machines in the same namespace. Unlabelled standalone virtual
machines and machines in another namespace do not gain ancestors through
this association.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Backported-from:
|
||
|
|
51d4668029 |
test(backups): remove the Altinity strategy tests' scratch directories
Every test in hack/altinity-backup-strategy.bats made a directory with
mktemp -d and never removed it, so each passing run of the file left
nine directories in TMPDIR, and they pile up on any machine that keeps
it between runs.
Each test now removes its directory as its last statement. A failed
assertion aborts the body before that line, so a failing test keeps
its stub log and rendered script for inspection.
Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
(cherry picked from commit
|
||
|
|
150d36e0f6 |
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:
|
||
|
|
8df659f84e |
test(lineage): reject CAPK labels on objects that are not KubeVirt VMs
The bridge from a VirtualMachine to its KubevirtMachine is guarded by
the object's API version and kind, but no test exercised that guard:
weakening it to match on either field alone still passed, and let a
labelled kubevirt.io Cluster or a VirtualMachine of another group
resolve to the Kubernetes application.
Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
(cherry picked from commit
|
||
|
|
bf60f024d8 |
fix(backups): restore the ClickHouse archive a Backup was taken as
The Altinity strategy named each archive inside its Pod with date -u
and recorded nothing on the Backup, so a restore could only guess: it
listed the remote archives under the application's prefix and took the
newest. A RestoreJob of an older Backup therefore restored whichever
backup had run last.
The controller now names the archive before it creates the backup Job,
from the BackupJob's persisted StartedAt, so every reconcile and every
retried Pod of the Job writes the same one. The name is recorded in the
Backup's driverMetadata next to the strategy parameters, and a restore
renders it into the strategy Pod, which restores exactly that archive
and fails, naming it, when remote storage no longer holds it. The name
is recorded only when the Job's Pod was given it, so a Job created by
an earlier controller, or a strategy that names its own archives,
leaves the Backup without one instead of pointing it at an archive
that does not exist.
Because a retried Pod reuses the name, it waits on an attempt the
sidecar is still running instead of being refused with 423, and asks
for resume, so a local or partial remote backup an earlier attempt left
is completed rather than refused as existing.
Backups taken before names were recorded stay restorable: the Pod picks
the newest archive whose name is stamped no later than the Backup's
takenAt, which is set only after the backup Job finished, and logs a
warning that the choice is a best effort.
Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
(cherry picked from commit
|
||
|
|
9061f9a5e1 |
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
|