mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 12:46:14 +09:00
f5ceed0e2406cde12e28b9cfaea3a91821bbbcac
3103
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f5ceed0e24 |
feat(linstor, platform): upgrade snapshot-controller to v8.7.0 and enable VolumeGroupSnapshots (#5239)
## What this PR does Windows VMs with three or more disks cannot get an application-consistent Velero backup on Cozystack today. Velero takes one CSI snapshot per PVC, one after the other, while virt-freezer holds the guest frozen, and on LINSTOR each snapshot takes 2 to 4 s. With three disks or more the freeze runs past the 10 s that Windows VSS allows, VSS aborts with `0x80042314`, and the backup fails. The only workaround is `kubevirt.io/skip-backup-hooks=true` on the VM, which gives up application consistency. The fix is a VolumeGroupSnapshot: one snapshot request for all the PVCs of a VM, taken inside the freeze. linstor-csi has implemented the CSI GroupController since v1.11 (the package ships v1.11.2), and it creates the whole group in a single LINSTOR `Resources.CreateSnapshots` call, so every volume of the VM is captured at the same instant and the freeze lasts one snapshot instead of N. Velero 1.18 drives VolumeGroupSnapshots through `groupsnapshot.storage.k8s.io/v1beta2`. What is missing is on the Cozystack side: snapshot-controller v8.0.1 serves the group snapshot API only as v1alpha1 and runs without the `CSIVolumeGroupSnapshot` gate, and piraeus-operator turns the gate off on the csi-snapshotter sidecar when it does not find v1beta2. This PR: - Upgrades the vendored Piraeus `snapshot-controller` chart from 3.0.5 (v8.0.1) to 5.4.0 (v8.7.0) with the package's `make update`. The `snapshot.storage.k8s.io` CRDs stay at v1. The `groupsnapshot.storage.k8s.io` CRDs go from v1alpha1 only to v1beta1, v1beta2 and v1, with v1beta2 as the storage version. The controller runs with `--feature-gates=CSIVolumeGroupSnapshot=true`, the chart's default. The validating webhook is gone upstream, replaced by CEL rules in the CRDs. The new optional conversion webhook stays disabled, as upstream ships it, since no cluster holds group snapshot objects to convert. - Sets `keepCRDs: true`. The chart now renders its CRDs from a template instead of `crds/`, so without it an uninstall of the release would delete every VolumeSnapshot with the CRDs. - Patches the vendored CRD template (`patches/skip-foreign-crds.diff`, applied by `make update`) so a CRD is rendered only when it is absent or already carries this release's `meta.helm.sh/release-name` and `meta.helm.sh/release-namespace`. A CRD a distribution ships, or that another release owns, stays out of the manifest, so helm-controller neither takes it over nor rewrites it on upgrade. On a fresh install, and for the CRDs migration 62 adopts, the output is unchanged. - Adds migration 62 and bumps `migrations.targetVersion` to 63 (renumbered from 61 after upstream took migration 61 for the Strimzi v1 conversion). The CRDs `crds/` created carry no Helm ownership metadata, and the patched chart renders only the CRDs that do, so the migration annotates the three `snapshot.storage.k8s.io` CRDs the release installed for adoption, which keeps them in its manifest. The three group snapshot CRDs cannot be adopted: the apiserver rejects an update that drops v1alpha1 while it is listed in `status.storedVersions`. The old controller never ran with the gate, so no v1alpha1 object was ever acted on, and the migration deletes each of these CRDs when it is empty and creates it again straight away at v1beta2, from copies `make image-migrations` renders out of the snapshot-controller chart with the release's ownership metadata (as it already bakes the etcd-operator CRDs for migration 50). Every HelmRelease waits for this pre-upgrade hook, so the linstor release renders against the v1beta2 API even when it upgrades before snapshot-controller. A CRD that still holds objects is kept and recorded on the `cozystack-version` ConfigMap as `cozystack.io/migration-62-needs-attention`, and the CRD stays out of the release, which carries no Helm ownership on it, so snapshot-controller still upgrades with that group snapshot API at v1alpha1 and group snapshots off. Nothing re-renders either release once the CRD is cleaned up, so the migration's warning gives the whole recovery: delete the objects and the CRD, force a snapshot-controller HelmRelease upgrade so the chart creates the CRD at v1beta2, restart the snapshot-controller Deployment, which sets up its group snapshot watches only when it starts, then force a linstor HelmRelease upgrade. The migration only touches CRDs that helm-controller labelled as installed by `cozy-snapshot-controller/snapshot-controller`, and the chart leaves the others out of the release, so a distribution that ships its own snapshot CRDs keeps them in both places. Whether the release is installed is read from its HelmRelease rather than from those labels, so a retry after a failed create still recreates the group CRDs it deleted when only they carried the labels; without the HelmRelease the migration changes nothing. The version is stamped only once every release-owned v1beta2 group snapshot CRD is Established, whichever path brought it there, so a retry after a timed-out wait waits again rather than letting linstor render before the API is served. - Sets `FEATURE_GATE_CSI_VOLUME_GROUP_SNAPSHOT=true` on the linstor-csi `csi-snapshotter` sidecar through the LinstorCluster pod template. piraeus-operator v2.10.2 probes for the v1beta2 API once, when it starts, and adds a patch that sets the variable to `false` when the probe fails. On a cluster upgraded from v1alpha1 the operator started before the new CRDs existed, so the gate would stay off until the operator next restarted. The pod template is merged after the operator's own patch. The variable is always set, to `true` only when the apiserver serves all three `groupsnapshot.storage.k8s.io/v1beta2` kinds and to `false` otherwise: the operator's probe looks at VolumeGroupSnapshot alone, and csi-snapshotter with the gate on and a group API missing waits for its group snapshot caches before it starts the ordinary snapshot workers. The class below renders under the same check. - Adds a default `VolumeGroupSnapshotClass` `linstor-group-snapshots` for `linstor.csi.linbit.com`, next to the existing `linstor-snapshots` VolumeSnapshotClass, with the `velero.io/csi-volumegroupsnapshot-class: "true"` label Velero selects a group snapshot class by. Only on a cluster where migration 62 kept a populated v1alpha1 CRD do they wait for the forced linstor upgrade at the end of that recovery. Not in this PR: grouping a VM's PVCs for Velero. Velero builds a group from the PVCs that share the value of the `velero.io/volume-group` label, so the `vm-instance` and `vm-disk` charts would have to set it to the VM name on every disk. That is a separate change, and an operator can set the label by hand meanwhile. Testing: - Kubernetes v1.34.3, Velero 1.18.1, linstor-csi v1.11.2, piraeus-operator v2.10.2. On that cluster the group snapshot CRDs are v1alpha1 only, list `["v1alpha1"]` in `storedVersions`, hold no object, and carry the helm-controller labels of `cozy-snapshot-controller/snapshot-controller`. The csi-snapshotter sidecar runs with `FEATURE_GATE_CSI_VOLUME_GROUP_SNAPSHOT=false`, set by the operator's patch. - `hack/migration-62-snapshot-crds.bats` (16 cases) runs migration 62 in the migrations base image against a fake kubectl that keeps the CRDs in a state file: adoption and deletion, a second run that changes nothing, a CRD holding objects, CRDs another installer owns, CRDs that already serve v1beta2, a cluster without the release, a release without the group CRDs, a failing HelmRelease read, CRD read or delete that aborts before the stamp, a failed diagnostic record that still stamps, a failed create that aborts and is completed by the retry, release labels on the group CRDs alone, with and without a failed first create, a timed-out Established wait whose retry must wait again before stamping, and a v1beta2 CRD that still stores v1alpha1, which is recorded rather than adopted. With the delete removed from the migration, the first case fails; with the release identity taken from the CRD labels instead of the HelmRelease, the failed-create case with group-only labels stamps 63 without recreating the CRDs and fails. Without the wait on the adoption path, the timed-out-wait case stamps 63 on the retry without waiting and fails. - New helm-unittest suites: `packages/system/snapshot-controller/tests/crds_test.yaml` pins `keepCRDs`, v1beta2 served and stored on the three group snapshot CRDs and the controller gate; `packages/system/snapshot-controller/tests/crd_ownership_test.yaml` mocks the live CRDs and checks that one without Helm ownership and one owned by another release are left out while an absent one and one this release owns are rendered (it fails with the patch reverted); `packages/system/linstor/tests/volume_group_snapshot_test.yaml` pins the sidecar gate on with and without strict topology, off when only VolumeGroupSnapshot or no group API is served, and the VolumeGroupSnapshotClass rendered only when the v1beta2 API is served. `csi-topology_test.yaml` now counts the `csi-snapshotter` entry in the pod template. - `helm unittest` passes for `packages/system/linstor` (30 tests), `packages/system/snapshot-controller` (7) and `packages/core/platform` (285). `hack/cozystack-version-stamp.bats` and `hack/check-migrations-target.sh` pass. - Not yet run end to end: the upgrade of a live cluster through migration 62, and a Velero backup with a VolumeGroupSnapshot through linstor-csi. ### Screenshots Not a UI change. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: The only change to `packages/core/platform/values.yaml` is the value of `migrations.targetVersion`. The website's `platform-package.md` lists that key without a value, so it needs no change. No website page mentions VolumeGroupSnapshots or documents the snapshot-controller webhook. The rest of the diff is a vendored chart, two system packages, a migration and its tests, none of which the trigger map reaches. ### Release note ```release-note feat(platform): snapshot-controller is upgraded to v8.7.0 and serves VolumeGroupSnapshots as groupsnapshot.storage.k8s.io/v1beta2, and linstor-csi takes group snapshots with a default VolumeGroupSnapshotClass labelled for Velero. A platform migration hands the snapshot CRDs over to the release and removes the empty v1alpha1 group snapshot CRDs. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added LINSTOR volume group snapshot support when all required APIs are available, including a default snapshot class. * Updated the snapshot controller to support newer snapshot APIs and a conversion webhook. * Added safer CRD installation and upgrade handling, preserving CRDs with existing objects and recording items that need attention. * **Bug Fixes** * Improved snapshot-controller upgrade reliability, including recovery from certain CRD creation failures. * **Documentation** * Updated chart guidance for CRD management, conversion webhooks, and snapshot class configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
f6bccbe23f |
feat(platform): make the Keycloak public host configurable (#5112)
<!-- 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 Keycloak chart already accepts `ingress.host`, but every OIDC consumer rebuilds the issuer as `https://keycloak.<root-host>/realms/<realm>` on its own: the dashboard and linstor-gui gatekeepers (`--oidc-issuer-url`, `--login-url`, `--whitelist-domain`, external logout URL), Grafana SSO (`auth_url`, `token_url`, `api_url`), the info kubeconfig (`--oidc-issuer-url`) and tenant Kubernetes clusters in `oidc.mode: System` (AuthenticationConfiguration issuer). Serving Keycloak on any other hostname (for example `auth.example.org`) therefore changes the `iss` of every token while those consumers keep expecting the old one, and SSO breaks across the platform. This adds `authentication.oidc.keycloakHost` to the platform values. The platform resolves it once (empty means `keycloak.<root-host>`), validates it as a bare lowercase hostname (no scheme, port or path, since it is spliced into URLs and `--whitelist-domain`), and publishes it as `_cluster.keycloak-host`. The Keycloak chart (Ingress, HTTPRoute, `KC_HOSTNAME`) and the five consumers read that key, each falling back to `keycloak.<root-host>` when it is absent so a chart rendered without the platform Secret behaves as before. `ingress.host` on the Keycloak chart keeps working and still wins, and its comment now points at the platform value. Existing clusters render unchanged: with `keycloakHost` empty, every URL is byte-identical to today's. Changing the value on a live cluster is an issuer change, so sessions and refresh tokens minted under the old host stop being accepted and the management apiserver (configured out of band via talm `oidcIssuerUrl`) must trust the new issuer first; the values comment says so. Tests: one new suite each for the platform wiring and validation and for the Keycloak chart, plus a custom-host case in the dashboard, linstor-gui, info, monitoring and kubernetes suites. Reverting the templates makes every new case fail; `helm unittest` passes on all seven touched charts. ### 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. --> - [ ] No downstream repository is affected by this change - [x] [cozystack/website](https://github.com/cozystack/website) - follow-up: https://github.com/cozystack/website/issues/778 (issue rather than PR: the table row should land once this PR merges) - [ ] [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 feat(platform): add authentication.oidc.keycloakHost to serve Keycloak on a custom public hostname; the Keycloak Ingress, KC_HOSTNAME, the dashboard and linstor-gui gatekeepers, Grafana SSO, the info kubeconfig and tenant Kubernetes clusters in oidc.mode System all follow it. Empty keeps keycloak.<root-host>. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added an optional public Keycloak hostname, defaulting to `keycloak.<cluster-root-domain>` when unset. * The configured hostname is used for Keycloak access, OIDC issuer and login URLs, and related browser-facing authentication settings across supported services and kubeconfig. * Existing Keycloak hostname overrides remain supported when compatible with the platform hostname. * **Bug Fixes** * Invalid configured hostnames—including values with schemes, paths, ports, or invalid DNS lengths—and conflicting explicit Keycloak and platform hostnames now prevent rendering. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
2acba8bf60 |
fix(linstor): roll affinity controller and scheduler on client cert rotation (#5160)
<!-- Thank you for making a contribution! Here are some tips for you: - Use Conventional Commits for the PR title: `type(scope): description` - Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore - Scopes are not an exhaustive list — pick the most specific scope for the change and extend the list when a genuinely new area appears. Examples: - System components: dashboard, platform, operator, cilium, kube-ovn, linstor, fluxcd, cluster-api - Managed apps: postgres, mariadb, redis, kafka, clickhouse, virtual-machine, kubernetes - Development and maintenance: api, hack, tests, ci, docs, maintenance - Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or add a `BREAKING CHANGE:` footer - If it's a work in progress, consider creating this PR as a draft. - Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft. - Add the label `kind/backport` if it's a bugfix that needs to be backported to a previous version. --> ## What this PR does `linstor-affinity-controller` and the `linstor-scheduler` extender read their LINSTOR API client certificate from `secretKeyRef` env vars, which kubelet resolves only when the container starts. cert-manager renews these 90-day certificates every 60 days, but neither workload is restarted on rotation, so a pod that outlives its certificate keeps presenting the expired one. The controller refuses every new TLS handshake and the Go client logs a bare `Get "https://linstor-controller:3371/v1/resource-definitions?": EOF`, while the CLI inside the controller pod keeps working, which makes it look like an API problem. Observed on a production cluster: an affinity controller pod running for 91 days failed every 15 s from 25 minutes after its certificate expired (an existing keep-alive connection survived until then), so PV node affinities stopped following replica moves. One of the two scheduler replicas had been failing silently for 19 days for the same reason; it was not the leader, so scheduling was not hit yet, but a lease failover would have handed scheduling to an extender that cannot reach LINSTOR. Changes: - `packages/system/linstor/templates/cluster.yaml`: add the `reloader.stakater.com/auto` patch for `Deployment/linstor-affinity-controller`, like the existing ones for `linstor-controller`, `linstor-csi-controller` and `linstor-csi-node`. - `packages/system/linstor-scheduler`: annotate the scheduler `Deployment` with `secret.reloader.stakater.com/reload: <linstor.clientSecret>`, carried as a third edit in the existing `patches/cozystack-scheduler-deployment.patch` so `make update` keeps it. `podAnnotations` would have been enough for Reloader v1.3.0, which falls back to pod-template annotations, but the vendored chart applies `podAnnotations` to the admission `Deployment` too, which would roll on a secret it does not use. - Regression tests: `linstor/tests/reloader_test.yaml` and `linstor-scheduler/tests/deployment_test.yaml`. Both fail with the fix reverted and pass with it. The patch was checked to apply with `patch -p4` on the pristine 0.3.1 chart and to reproduce the vendored template byte for byte. The existing `admission.reloadOnCertChange: false` comment is left as is: it is about the webhook's serving certificate, which the extender reloads on its own, not about the LINSTOR client certificate. ### Screenshots No UI change. <!-- REQUIRED for UI changes: attach screenshots or screen recordings demonstrating the visual impact of your changes. PRs with UI changes without screenshots will not be merged. --> ### Downstream repositories <!-- Cozystack is upstream for repositories that are NOT kept in sync with it automatically, and nothing in CI compares the two sides, so a change here can break them silently. Which change forces what, and which file to touch, is the trigger map in docs/agents/contributing.md under "Downstream Repositories". Walk it before you tick anything. IF YOU ARE AN AI AGENT OR AN LLM, THIS IS PART OF THE TASK, NOT A FORM TO FILL IN: 1. Walk the trigger map against the actual diff of this PR, file by file. Do not decide from the PR title or from your memory of what you changed. 2. For every repository you tick, open the follow-up PR there and link it on the same line. A ticked box with no link claims work that does not exist, which is worse than an empty box. Search that repository for an open PR or issue covering it first, and link that instead of filing a duplicate. 3. When the follow-up is out of scope, or needs a decision that is not yours to make, open an issue in that repository instead, link that, and say so in the PR body. Do not push a speculative PR into another repository just to fill a line here. 4. Do not tick "No downstream repository is affected" to make the checklist go away. If you are unsure, leave every box empty and say so in the PR body, so a human decides. --> - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note <!-- Write a release note: - Explain what has changed internally and for users. - Start with the same `type(scope):` prefix as in the PR title - Follow the guidelines at https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md. --> ```release-note fix(linstor): linstor-affinity-controller and linstor-scheduler now restart when their LINSTOR client certificate is rotated, instead of failing every LINSTOR API call with EOF once the certificate they loaded at startup expires. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * LINSTOR controller, CSI, and affinity-controller deployments now support automatic reloading. * Scheduler deployments reload when their configured client Secret changes, including when a custom Secret name is used. * Scheduler deployments now identify their component and use a Kubernetes-version-aware default image tag. * **Bug Fixes** * Scheduler Secret references and reload behavior remain aligned when the client Secret name is overridden. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
9ca20d00f7 |
feat(monitoring, kubernetes): add destinations to the monitoring agents without replacing the defaults (#5376)
<!-- 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 To send a copy of metrics or logs to a store of their own, a user today has to override `vmagent.remoteWrite.urls` or `fluent-bit.config.outputs`. Both are replaced wholesale on merge, so the override must restate the platform's own destinations; one that does not silently cuts the tenant's VictoriaMetrics and VictoriaLogs off, with the application still `Ready`. A plain URL list cannot carry credentials either. This adds two keys to the monitoring-agents chart, appended after the defaults instead of replacing them: - `vmagent.extraRemoteWrite`: VMAgent `remoteWrite` entries passed as is, so an entry can carry `basicAuth`, `bearerTokenSecret`, `headers` or `tlsConfig`. - `fluent-bit.config.extraOutputs`: `[OUTPUT]` sections appended by the outputs template. On a managed Kubernetes cluster both are set through `addons.monitoringAgents.valuesOverride`, for example: ```yaml addons: monitoringAgents: enabled: true valuesOverride: vmagent: extraRemoteWrite: - url: https://metrics.example.org/api/v1/write basicAuth: username: {name: remote-write-auth, key: username} password: {name: remote-write-auth, key: password} fluent-bit: config: extraOutputs: | [OUTPUT] Name http Match kube.* Host logs.example.org port 443 tls On ``` `extraOutputs` is appended by a hook at the end of the default `outputs`, because the vendored fluent-bit chart builds `fluent-bit.conf` from `outputs` alone. Overriding `outputs` therefore means keeping that hook (`{{- with .Values.config.extraOutputs }}` / `{{ . }}` / `{{- end }}`) or moving the extra destinations into `outputs` itself. Setting `extraOutputs` together with an `outputs` override that lacks the hook fails the render, in the system chart and in the tenant HelmRelease template, instead of dropping the destinations in silence. Depends on #5375, which makes the app apply `valuesOverride` at all; its commit is the first one here and drops out once it merges. The commits after it belong to this PR. With neither key set, both the system chart render and the tenant render (the app's HelmRelease values fed into the system chart) are byte-identical to before. The example above was rendered end to end: the tenant's VMAgent gets its own vminsert plus the extra entry with its credentials, and `fluent-bit.conf` gets the tenant's vlinsert output followed by the extra one. Open point for reviewers: the tenant outputs carry the hook as escaped template text, because the app chart renders that string before the fluent-bit subchart renders it again. The alternative was appending at app render time from `valuesOverride`, which would leave root and tenant installs with two different mechanisms for the same key. ### 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 feat(monitoring): the monitoring agents accept `vmagent.extraRemoteWrite` and `fluent-bit.config.extraOutputs` to send metrics and logs to additional destinations without replacing the default ones; on managed Kubernetes clusters they are set through `addons.monitoringAgents.valuesOverride`. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Monitoring agents can send metrics to additional remote-write destinations, including destinations that use Basic Auth. * Fluent Bit can include custom output sections alongside its default outputs. * Monitoring-agent value overrides can customize selected settings while retaining other default configuration. * **Bug Fixes** * Rendering now reports an error when custom Fluent Bit outputs omit the required hook while extra outputs are configured. Retaining the hook allows default and custom destinations to be rendered. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
4190aa82f5 |
fix(seaweedfs): point the Lance catalog consumers at the renamed s3 Service (#5356)
## What this PR does Closes #4878 `s3-service-name.patch` renames the S3 Service to `<name>-s3`. The Lance catalog came with chart 4.45, and its two consumers still build the name with `seaweedfs.componentName`, which gives `<fullname>-s3`: - the Lance ingress backend (`templates/s3/s3-lance-ingress.yaml`) - the Lance namespace URL the worker gets (`seaweedfs.worker.lanceNamespaceUrl` in `templates/shared/_helpers.tpl`) Changes: - Both places now use the `<name>-s3` form that the S3, Iceberg and COSI consumers already use. The ingress uses `{{ template "seaweedfs.name" . }}-s3` like the Iceberg ingress, and the URL uses `printf "%s-s3" (include "seaweedfs.name" .)`. - The two hunks are appended to `patches/s3-service-name-consumers.patch`, so `make update` keeps them. - Two cases are added to `tests/s3_service_name_consumers_test.yaml`. They set a non-zero `lancePort` and `fullnameOverride: seaweedfs-system`, like the existing cases do. Nothing changes with the shipped values. `lancePort: 0` keeps both consumers from rendering, and `fullnameOverride: seaweedfs` makes both names equal anyway. ### How I checked it - `helm unittest .` in `packages/system/seaweedfs`: 23 suites and 135 tests pass. With the template changes reverted, the two new cases fail and the rest still pass. - `make test-guard-fail-closed` passes. - I reversed the full patch chain from the `update` target on a copy of `charts/`, newest first, then applied it forward again. Every patch applied cleanly, and the result matched the committed `charts/` exactly. - I couldn't run `make test-image-version` locally because `yq` isn't installed here. This PR doesn't touch the Dockerfile or the chart version. ### Screenshots Not a UI change. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: This touches only a vendored chart patch and its tests under `packages/system/seaweedfs`. Nothing in the trigger map of `docs/agents/contributing.md` applies. ### Release note ```release-note fix(seaweedfs): the Lance catalog ingress and the worker's Lance namespace URL now point at the renamed `<name>-s3` Service. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Corrected S3 service names used by ingress routes, worker namespace URLs, and COSI endpoint URLs to consistently use the release name. * COSI endpoint URLs now use the configured S3 port, including when using the fallback S3 configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
9680ed64df |
feat(cluster-api)!: update Cluster API to v1.14.4 (#4902)
<!-- 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. - Breaking changes: append `!` after type/scope or add a `BREAKING CHANGE:` footer. - If it is a work in progress, consider creating this PR as a draft. - Ask for opinion and review in the community chats when needed. - Fixes merged to main reach supported release lines through the backport batch automatically. Do not open backport PRs by hand. --> ## What this PR does Updates the Cluster API stack with an automatic intermediate upgrade for existing v1.10 providers. The core chart upgrades them through v1.13.8 before Helm applies the final manifests. The hook fails on API errors, conflicting changes or timeouts. The hook image goes through cozy-lib. The core chart's PackageSource declares that library, otherwise the packaged chart can't render the hook. Fresh installations skip the intermediate providers. Helm keeps the intermediate ConfigMaps, so they stay in the cluster after the next change of the intermediate version, and that bump has to remove them. Each provider now selects exactly one repository. The bridge and final ConfigMaps carry `provider.cluster.x-k8s.io/version` with the full version, including the role suffix, and the core and kubeadm selectors include it. The operator's finalize step hashes every ConfigMap the selector matches and rejects more than one. During an upgrade it also checks the selector of every other installed provider. So the bridge ConfigMaps carry only the version label, and the v1.10 selectors, which have no version, never match them. The hook switches the version and the selector in one guarded patch and selects a bridge by that label alone. It also narrows an existing bridge selector to that label. A provider whose first installation never finished takes the fresh-install path. Kamaji, CAPK, capmox and IPAM keep their existing pins and temporary v1beta1 compatibility. The autoscaler keeps its explicit v1beta1 selection. An infrastructure provider's v1beta1 `failureReason` no longer immediately fails a Machine or triggers remediation. The provider conditions still show the cause. The vendored operator chart gets six local patches, and `make update` reapplies them. The core components get a startup probe patch. The sync-period patch from main stays. I kept the one-minute resync setting until restart recovery is tested. CAPI Bats, the bootstrap and platform Helm suites and the rendering checks pass locally. On envtest against cluster-api-operator v0.30.0, legacy v1.10 core and kubeadm providers go through v1.13.8 to v1.14.4 with these ConfigMaps. With the old bridge labels core stayed on v1.10. I have not run a live upgrade, restart or eviction test on this revision. The [earlier Proxmox report](https://github.com/cozystack/cozystack/pull/4902#pullrequestreview-5510737333) covers the v1.13 candidate only. ### 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. --> Not a UI change. ### Downstream repositories <!-- Cozystack is upstream for repositories that are not kept in sync automatically. Check the trigger map in docs/agents/contributing.md against the diff. Keep every checkbox. Tick an affected repository only after linking an existing or newly opened follow-up. Do not claim no downstream impact when it is unknown. --> - [ ] No downstream repository is affected by this change - [x] [cozystack/website](https://github.com/cozystack/website) - follow-up: cozystack/website#751 - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: The existing website follow-up needs the management-cluster minimum updated to v1.33. No tenant API fields, version enums, installer values or platform variants change. ### Release note ```release-note feat(cluster-api)!: update Cluster API core and kubeadm bootstrap to v1.14.4, cluster-api-operator to v0.30.0 and Talos bootstrap to v0.6.13. Legacy core and kubeadm installations are upgraded through v1.13.8 before the final manifests are applied. The core and kubeadm bootstrap charts reject management Kubernetes older than v1.33. The upgrade is one-way: Cluster and Machine CRDs use v1beta2 storage and downgrades are not supported. The preferred Cluster API version becomes v1beta2. Clients relying on v1beta1 fields must select that version explicitly. The operator no longer serves operator.cluster.x-k8s.io/v1alpha1. The autoscaler stays on the v1beta1 Cluster API. ``` |
||
|
|
5daa04ea6e |
feat(networking): cozyplane eBPF CNI + cozyplane-kpr networking variant (drops Cilium) (#3149)
## What this PR does Adds an **opt-in** `bundles.system.networkingVariant: "cozyplane"` for the `isp-full` (Talos) bundle: it replaces kube-ovn, Cilium and kube-proxy with the [cozyplane](https://github.com/lllamnyp/cozyplane) eBPF CNI, its aggregated `sdn.cozystack.io` API server, and the `cozyplane-kpr` socket-LB kube-proxy replacement. The default `kubeovn-cilium` path renders identically to main; the selector is refused outright on every other bundle variant (slim variants included), where it would half-apply. Components: three wrapper charts around cozyplane's upstream charts — the CNI (`packages/system/cozyplane`), the kube-proxy replacement (`cozyplane-kpr`) and the aggregated apiserver with its etcd-operator-managed, PVC-backed etcd (`cozyplane-apiserver`) — plus the Cilium policy CRDs shipped inert so stock charts install (`cozyplane-cilium-crds`), a `cozystackAPI.serveSDN` toggle in cozystack-api, and the platform wiring. The wiring threads the platform's `networking.podCIDR`/`serviceCIDR` (and `clusterDNS`, the service network's address plus 10 when unset) into the cozyplane component, drops the packages that assume the replaced stack (kubeovn-webhook/-plunger, multus, securitygroup-controller, the virtualprivatecloud app), refuses the default `cilium` gateway class and `networking.encryption.enabled` on the variant, and turns off sdn serving in cozystack-api. Bootstrap ordering: the CNI installs first with the kube API as its only dependency and ships only the LOCAL group's CRDs (`local.sdn.cozystack.io`, underlay IPAM); the tenant kinds (VPC, Port, SecurityGroup, …) have **no CRDs** and are served only by the aggregated apiserver, which installs later behind cert-manager, etcd-operator and storage. Until it lands, `sdn.cozystack.io` is simply not served; there is no takeover. On Talos the agent and kpr bootstrap against KubePrism, since with no kube-proxy the `kubernetes.default` ClusterIP is unserved until kpr itself runs. Each cozyplane package follows the umbrella pattern: the upstream chart is vendored verbatim under `charts/<name>` by `make update` from a ref pinned in the wrapper's Makefile, and everything Cozystack-specific lives in the wrapper — the Talos overlays, the apiserver's etcd storage class and replica count, and two ClusterRoles that carry cozyplane's own tenant roles into the `cozy:tenant` tiers by aggregation, so the list of tenant kinds stays upstream's to maintain. Image pins are the digests upstream pins for that ref, with multi-arch legs verified there. The wrappers carry helm-unittest suites pinning the platform contract, the egress args the platform threads included, and the platform suite covers the variant's package set, the guards and the CIDR threading. The variant is experimental: it has no e2e lane yet and is not for production clusters, which the operator-facing values comment says. **CiliumNetworkPolicy objects apply but are not enforced on this variant** — tenant network isolation on the default network, the Cilium host firewall and the platform components' own Cilium policies (several of them `ingressDeny` rules native NetworkPolicy cannot express) are not in effect, as stated in the values comment, the networking source and the threat model; rebuilding them on what cozyplane does enforce (native NetworkPolicy, its operator-only HostFirewall) is a follow-up. cozystack-api's SecurityGroup (a restricted interface over CiliumNetworkPolicy) is not served on the variant; cozyplane's own SecurityGroup is the first-class tenant instrument for traffic inside and across VPCs. The tenant-facing VPC application lands in #4508, stacked on this PR. ### Screenshots Not a UI change. ### Downstream repositories The trigger map fires for cozystack/website (a new platform variant and new `platform.values` keys); cozystack/website#815 documents both. It arguably fires for terraform-provider-cozystack too (the SecurityGroup spec differs per variant); that box is left unticked so a human decides. - [ ] No downstream repository is affected by this change - [x] [cozystack/website](https://github.com/cozystack/website) - follow-up: cozystack/website#815 - [ ] [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 feat(platform): opt-in networkingVariant "cozyplane" for the Talos bundle — replaces kube-ovn, Cilium and kube-proxy with the cozyplane eBPF CNI, its aggregated sdn.cozystack.io API server and a socket-LB kube-proxy replacement; CiliumNetworkPolicy objects are not enforced on this variant ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added an opt-in Cozyplane networking variant with cluster DNS configuration, CNI, and service routing. * Added a Cozyplane API service for tenant networking resources, with tenant edit and view permissions. * Added control over whether the existing SDN API is served. * Gateway configurations using an unavailable class are now rejected with guidance. * **Important Limitations** * Cozyplane does not enforce existing Cilium network policies or platform Cilium rules. Tenant traffic isolation may require native NetworkPolicies; some platform rules require operator-managed HostFirewall policies. * Cozyplane networking does not support encryption or the default Cilium Gateway class, and requires pod and service CIDRs. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
64fa40e255 |
feat(monitoring): add destinations to the agents without replacing the defaults
Sending a copy of metrics or logs to a store of one's own meant overriding vmagent.remoteWrite.urls or fluent-bit.config.outputs. Both are replaced wholesale on merge, a list and a single string, so the override had to restate the platform's own destinations, and one that did not silently cut the tenant's VictoriaMetrics and VictoriaLogs off. A plain URL list could not carry credentials either. vmagent.extraRemoteWrite takes VMAgent remoteWrite entries appended after urls and passed as is, so an entry can carry basicAuth, bearerTokenSecret, headers or tlsConfig. fluent-bit.config.extraOutputs takes [OUTPUT] sections appended by the outputs template itself, which the fluent-bit subchart renders with tpl, so .Values there is the subchart's own. The managed Kubernetes app replaces outputs for tenant clusters, so its outputs carry the same hook, escaped to survive the app chart's render. On a tenant cluster both are set through addons.monitoringAgents.valuesOverride. With neither key set, the system chart render and the tenant render (app HelmRelease values fed to the system chart) are byte-identical to before. Unit tests cover both keys in the system chart and the hook in the tenant HelmRelease; each fails without the change. Both charts refuse to render when extraOutputs is set and the effective outputs does not emit it, so an outputs override that drops the hook fails loudly instead of losing the extra destinations. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io> |
||
|
|
d89bce58e8 |
feat(linstor): enable VolumeGroupSnapshots for linstor-csi
linstor-csi implements the CSI GroupController since v1.11 and creates the snapshots of a group in one LINSTOR call, so the volumes of a multi-disk VM are captured at the same instant. Velero needs that for application-consistent backups of Windows VMs with three or more disks: taken one by one, the snapshots outlast the 10 s VSS allows a freeze. piraeus-operator decides the csi-snapshotter gate from an API probe it runs only at startup, so on an upgraded cluster the gate would stay off until the operator restarted. The gate is set in the LinstorCluster pod template instead, and a default VolumeGroupSnapshotClass carries the label Velero selects a group snapshot class by. Both render only when the apiserver serves all three v1beta2 group snapshot kinds. With the gate on and the API missing, csi-snapshotter waits for its group snapshot caches before it starts the ordinary snapshot workers, so every VolumeSnapshot would stall, and a v1beta2 VolumeGroupSnapshotClass would fail the upgrade. Otherwise the operator's own probe decides the gate. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io> |
||
|
|
892d9c9b34 |
feat(platform): upgrade snapshot-controller to v8.7.0
snapshot-controller v8.0.1 serves VolumeGroupSnapshots only as v1alpha1 and runs without the CSIVolumeGroupSnapshot gate, so no CSI driver on the platform can take a crash-consistent snapshot of several volumes at once. Velero 1.18 and piraeus-operator both look for groupsnapshot.storage.k8s.io/v1beta2, which v8.7.0 serves and which the upstream chart enables by default. The upstream chart renders its CRDs as ordinary templates instead of shipping them in crds/, and helm-controller takes over existing objects by default. A patch makes the chart render a CRD only when it is absent or already carries this release's ownership, so a distribution that ships its own snapshot CRDs keeps them as they are. keepCRDs is set because an uninstall would otherwise delete every VolumeSnapshot along with the CRDs. Migration 62 hands the CRDs this release installed over to it, read from its helm-controller labels, and checks the HelmRelease rather than those labels to decide whether the release exists, so a retry after a failed create still recreates what the first attempt deleted. The apiserver refuses to drop v1alpha1 from a CRD that lists it in storedVersions, so the empty v1alpha1 group snapshot CRDs are deleted and created again at v1beta2 from copies the image build renders out of the chart. Every HelmRelease waits for the pre-upgrade hook, so linstor renders against the v1beta2 API even when it upgrades first; the version is stamped only once every release-owned v1beta2 group snapshot CRD is Established, which a retry after a timed-out wait must check again. A CRD that still holds v1alpha1 objects is kept, recorded on the cozystack-version ConfigMap, and its warning spells out the manual recovery, since nothing renders either release again once it is gone. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io> |
||
|
|
93a49eda63 |
feat(platform): make the Keycloak public host configurable
Keycloak's own chart already accepts ingress.host, but the OIDC consumers rebuild the issuer as keycloak.<root-host> on their own. Moving Keycloak to another hostname therefore changed the issuer of every token while the dashboard and linstor-gui gatekeepers, Grafana, the info kubeconfig and tenant clusters in oidc.mode System kept expecting the old one, and SSO broke everywhere at once. authentication.oidc.keycloakHost resolves the host once in the platform and publishes it as _cluster.keycloak-host, which Keycloak (Ingress, HTTPRoute, KC_HOSTNAME) and every consumer read. Left empty it resolves to keycloak.<root-host>, so existing clusters render unchanged. The kind is checked before any default, since `default` treats false and 0 as unset and would silently fall back to the derived host. An explicit host must also respect the RFC 1123 label and total length limits. Setting the chart's ingress.host and a different non-default keycloakHost is refused, as KC_HOSTNAME and the consumers' issuer would disagree; a legacy ingress.host alone keeps working. Any valid DNS name is accepted, including all-digit labels and words such as true, so the host is quoted wherever it is rendered; unquoted it turns into a YAML number or bool and the Ingress no longer decodes. The Gateway path's whole-apex cert modes render listeners for the apex only, and the Keycloak chart cannot see the TenantGateway cert mode to refuse an out-of-apex host, so that constraint is documented next to the setting. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io> |
||
|
|
f7c1850017 |
fix(linstor): roll affinity controller and scheduler on client cert rotation
linstor-affinity-controller and the linstor-scheduler extender read their LINSTOR API client certificate from secretKeyRef env vars, which kubelet resolves only when the container starts. cert-manager renews these 90-day certificates every 60 days, but neither workload is restarted on rotation, so a pod that lives longer than the certificate keeps presenting the expired one. The controller then refuses every new TLS handshake and the Go client reports a bare EOF. For the affinity controller this means PV node affinities stop following replica moves; for the scheduler, once a pod with an expired certificate holds the leader lease, pods with LINSTOR volumes are no longer placed next to their replicas. Add the Reloader auto annotation to linstor-affinity-controller through the LinstorCluster patches, as already done for the controller and the CSI workloads, and annotate the linstor-scheduler Deployment with the client secret it consumes. The scheduler annotation goes on the Deployment rather than podAnnotations, which the admission Deployment shares and would roll for a secret it does not use. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io> |
||
|
|
382169be52 |
fix(talos): bump Talos to v1.14.4 (CVE-2026-99999) (#5045)
## What this PR does Bumps the Talos release Cozystack ships for host nodes from v1.14.2 to v1.14.4. Talos v1.14.4 ships Linux 6.18.57, which carries the upstream fix [`6785011f8b16`](https://git.kernel.org/linus/6785011f8b16abf40b1e9d8b2e332232b3e68822) ("ipv4: validate checksum_start before completing checksum") for CVE-2026-99999, known as PwnEscape. v1.14.2 runs Linux 6.18.54 and is affected. A guest controls the `csum_start` field of the `virtio_net_hdr` it hands to the host through TAP or vhost-net. When the host fragments such a packet, `skb_checksum_help()` writes two guest-chosen bytes inside the IPv4 header, and `ip_frag_next()` then copies host memory past the packet into every fragment. The leak has been chained into code execution on the host. No nested virtualization is needed. KubeVirt VMs on Cozystack use the bridge binding, a TAP device with vhost-net and checksum offload on, so root in any guest (a `vm-instance` or a tenant Kubernetes worker) reaches this path on the host node. Changes: - `packages/core/talos/images/talos/profiles/*`: regenerated with `hack/gen-profiles.sh v1.14.4` (installer-base and every system extension digest, amd64 and arm64). - `packages/system/multus/images/multus-cni/Dockerfile`: the `talos-cni-plugins-checked-against` marker moves to v1.14.4. Talos v1.14.4 still pins containernetworking/plugins v1.9.1 in siderolabs/pkgs, the same as `CNI_PLUGINS_VERSION`. - `docs/operations/system-memory-limits.md`: the shipped version it names moves to v1.14.4. No OOM handler file changed between v1.14.2 and v1.14.4, so the quoted defaults still hold. The v1.14.2 to v1.14.4 changes are patch fixes only (network route teardown, DHCP, KubePrism recovery, mount cleanup, etcd 3.7.2), with DRBD 9.3.4 and ZFS 2.4.4 unchanged. No machine-config change is needed on top of the v1.14 requirements that v1.14.2 already brought in. Not covered here: tenant Kubernetes workers default to Talos v1.13.6 (`packages/apps/kubernetes`, `packages/apps/kubernetes-nodes`). The bug is on the host side, so the host bump is what closes the guest escape. No v1.13 release with the fix exists yet (v1.13.11 is on 6.18.54). Tested: `hack/cni-plugins-staging-contract.bats` and `hack/talos-installer-index_test.bats` pass (12/12), run in the `bats/bats:1.13.0` container. No image was built or booted locally. ### Screenshots Not a UI change. ### Downstream repositories The trigger map hits `cozystack/website`: this bumps the version in `packages/core/talos/images/talos/profiles/installer.yaml`, and `data/versions/next.yaml` there pinned `talos: "v1.14.2"`. The follow-up moves it to v1.14.4 and should merge after this PR. No other repository on the map is reached by this diff. - [ ] No downstream repository is affected by this change - [x] [cozystack/website](https://github.com/cozystack/website) - follow-up: https://github.com/cozystack/website/pull/768 - [ ] [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(talos): Bump Talos to v1.14.4 (Linux 6.18.57) to fix CVE-2026-99999 (PwnEscape), a guest-to-host escape through virtio_net_hdr checksum offload that any KubeVirt VM can reach on the host node. Upgrade and reboot host nodes; the fix applies only to the kernel that is running. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Updates** * Updated Talos-based installer, ISO, kernel, metal, and NoCloud images—including ARM64 variants—from v1.14.2 to v1.14.4, with refreshed system extensions and firmware. * Updated the documented Talos version associated with host-node memory-limit defaults to v1.14.4. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
18a9530b87 |
fix(platform): honour a bool false in ingress-enabled and monitoring-enabled (#5354)
## What this PR does `default "true"` treats a bool false as empty, so an unquoted `_cluster.ingress-enabled: false` or `_cluster.monitoring-enabled: false` still rendered `_namespace.ingress: tenant-root` and the monitoring ExternalName redirects. Both gates now check for a missing key first and otherwise require `"true"` or a bool true, so a missing key keeps the old behaviour, every string value keeps its old meaning, and a bool false turns the feature off. #5097 does the same for the seaweedfs flag. helm-unittest 1.1.2, cozystack-basics 83 of 83. Against the templates on main the two new bool-false cases fail. ### 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): an unquoted false in _cluster.ingress-enabled or _cluster.monitoring-enabled now turns off the tenant-root ingress key and the monitoring redirects. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Ingress and monitoring redirects are no longer enabled when their settings are explicitly `false` or empty. When settings are missing, existing default behavior is preserved. * **Tests** * Added coverage for disabling ingress and monitoring redirects with boolean `false`. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
0c44188eb5 |
Merge branch 'main' into mattia/pwnescape-kvm-cozystack-talos-dec626
Signed-off-by: Aleksei Sviridkin <f@lex.la> |
||
|
|
5d96897d73 |
build(kafka-operator): vendor Strimzi 1.3.1 (#5372)
## What this PR does
Moves the Kafka operator from Strimzi 1.2.0 to 1.3.1, the only Strimzi
release rebuilt on an OpenJDK that fixes CVE-2026-114938 ("Java4Shell").
The CVE is an out-of-bounds write in the AVX-512 VBMI Base64 decoder of
OpenJDK 17.0.6 and later. A broker decodes Base64 in SASL/SCRAM before
the client is authenticated, so on an x86-64 node with AVX-512 VBMI a
tenant's cluster can be attacked by anyone who reaches its listeners.
Strimzi [rebuilt 1.3.1 and does not plan to rebuild
1.2.0](https://github.com/strimzi/strimzi-kafka-operator/issues/13394).
| Image | Bundled OpenJDK |
|---|---|
| `quay.io/strimzi/kafka:1.2.0-kafka-4.3.1`,
`quay.io/strimzi/operator:1.2.0` (today) | 21.0.12, affected |
| `quay.io/strimzi/kafka:1.3.1-1-kafka-4.3.1`,
`quay.io/strimzi/operator:1.3.1-1` (this PR) | 21.0.13.1, fixed |
What changes:
- The vendored chart is 1.3.1 as published, with no local patches. It
keeps Kafka 4.2.1 and 4.3.1, the two versions the `kafka` application
offers, so no tenant has to change `version`.
- The images are pinned to the suffixed rebuild tags (`1.3.1-1`, bridge
`1.2.1-1`). Strimzi moved the plain `1.3.1` tags onto the rebuild, so a
node that pulled the first build would keep the affected JDK under an
unchanged tag. All ten images the chart references exist under the
suffixed tags.
- The chart drops Kaniko (Buildah is the only Connect builder) and
grants the operator `serviceaccounts/token` and cert-manager
`certificates`, for two features that are off by default.
- The example backup scripts fall back to the same Kafka image and
follow it.
- A first commit makes the Kafka backup strategies (the platform's
topic-metadata strategy and the topic-data demo strategy) SigV4-sign
their S3 requests themselves with `openssl` and `sha256sum` instead of
`curl --aws-sigv4`. The Strimzi 1.3.1-1 images ship curl
`7.76.1-43.el9`, whose RHEL backport of the S3 payload handling signs
`x-amz-content-sha256` without sending it, so SeaweedFS answered every
backup upload and download with 403; that is what failed
`kafka-2-backup-roundtrip` and `kafka-3-metadata-roundtrip` on the first
run of this PR. The commit comes first because it works with the Strimzi
1.2 curl as well, so each commit is green on its own.
Not verified here: nothing was run on a live cluster. The check that
matters is the Kafka E2E on this PR, an upgrade of running clusters from
1.2.0 included. The signing was run against SeaweedFS 4.45 on a
non-default port inside both `quay.io/strimzi/kafka:1.2.0-kafka-4.3.1`
and `1.3.1-1-kafka-4.3.1` (metadata backup, restore and cleanup; demo
upload and download of a binary tarball), and the bats suites hold the
signature to the one botocore computes for the same request.
Notes for the reviewer:
- Strimzi 1.3 requires Kubernetes 1.32 or newer on the cluster the
operator runs on.
- Upgrading rolls every Kafka cluster once.
- This changes CRDs, so it does not reach the release lines, which are
on Strimzi 0.45.1 anyway. Those are covered by the JVM flag in #5371.
- #5371 stays useful after this merges only for the release lines; on
`main` the two do not conflict.
### Screenshots
N/A — no UI changes.
### Downstream repositories
Walked the trigger map against the diff: the vendored chart under
`packages/system/kafka-operator`, its wrapper values, the Kafka strategy
script in `packages/system/backupstrategy-controller/files`, the Kafka
backup examples and their bats suites. No package added or renamed, no
`values.schema.json` or README of an app, no version enum
(`packages/apps/kafka/files/versions.yaml` is unchanged), no platform
values, no `hack/` tooling or make target.
- [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
build(kafka-operator): update Strimzi to 1.3.1, whose images carry an OpenJDK with the fix for CVE-2026-114938 (Java4Shell). Every Kafka cluster rolls once on upgrade. Strimzi 1.3 requires Kubernetes 1.32 or newer. Kafka backups now sign their S3 requests in the strategy script, so they keep working with the curl the new Kafka images ship.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Added support for projected service-account-token volumes, additional
volume ownership settings, and bind-mount options across Kafka
components.
* Added cert-manager support for cluster and client certificate
authorities.
* Expanded Kafka version options and added broker health panels to the
monitoring dashboard.
* **Updates**
* Updated Strimzi operator, Kafka, and Kafka Bridge images. Kubernetes
1.32 or newer is now required.
* S3 backup and restore requests now support signed requests to
custom-port endpoints.
* **Removals**
* Removed Kaniko executor configuration and documentation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
d7573c009c |
fix(ingress-nginx): pick up the nginx rebuild with the HTTP/2 CVE fixes (#5377)
## What this PR does Moves the ingress-nginx controller to `v1.11.6-cozystack.1`, the same v1.11.6 controller with its nginx 1.25.5 rebuilt with two HTTP/2 fixes from the nginx 1.30 stable branch: | nginx commit | Fixes | | --- | --- | | [`0c87dd1d`](https://github.com/nginx/nginx/commit/0c87dd1db413e440a4e3ef7ee8acc518509e8809) | CVE-2026-123633, HTTP/2 use-after-free when `worker_connections` run out | | [`b89c4100`](https://github.com/nginx/nginx/commit/b89c4100bf6762a45e4a6463eaf4b70368277c94) | CVE-2026-123007, HTTP/2 flow control window overflow | kubernetes/ingress-nginx is archived and will not publish another 1.11.x. The rebuild lives in the fork: cozystack/ingress-nginx-with-protobuf-exporter#13. It compiles nginx from upstream's own sources, patches and configure line, applies the two commits last, and checks the result against the shipped binary. Checked on the published image (`sha256:1d3f0e01…`, amd64 and arm64): - `nginx -v` reports 1.25.5 with upstream's configure arguments, and `nginx -t` passes on the controller's config; - the nginx binary differs from the one in `registry.k8s.io/ingress-nginx/controller:v1.11.6`; - run as `www-data`, nginx binds port 80 and answers 200 over HTTP/2, so `cap_net_bind_service` survived the rebuild. `helm unittest` passes for the chart. Not run on a live cluster. `nginx -v` still says 1.25.5, so scanners that match on the version will keep flagging it. ### Screenshots N/A, no UI changes. ### Downstream repositories Walked the trigger map against the diff: an image tag and digest in `packages/system/ingress-nginx/values.yaml`. No package, values key, schema or app README changes. - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note fix(ingress-nginx): the ingress-nginx controller now runs nginx 1.25.5 rebuilt with the HTTP/2 fixes for CVE-2026-123633 and CVE-2026-123007. nginx still reports version 1.25.5. ``` |
||
|
|
91fd8791c1 |
Merge branch 'main' into fix/cluster-flags-bool-false
Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la> |
||
|
|
6afe23e32b |
chore(keycloak): bump Keycloak server to 26.8.2 (#5374)
## What this PR does
Moves Keycloak from 26.6.3 to 26.8.2, the only upstream image rebuilt on
an OpenJDK that fixes CVE-2026-114938 ("Java4Shell").
The CVE is an out-of-bounds write in the AVX-512 VBMI Base64 decoder of
OpenJDK 17.0.6 and later. Keycloak decodes Base64 on requests that
arrive before authentication, so on an x86-64 node with AVX-512 VBMI an
affected instance can be attacked without credentials. Upstream [rebuilt
26.8.2](https://www.keycloak.org/2026/11/java4shell-vulnerability-cve-2026-114938)
and left 26.6 and 26.7 as they were.
| Image | Bundled OpenJDK |
|---|---|
| `quay.io/keycloak/keycloak:26.6.3` (today) | 21.0.11, affected |
| `quay.io/keycloak/keycloak:26.8.2-3` (this PR) | 21.0.13.1, fixed |
What changes:
- `packages/system/keycloak` pins `26.8.2-3`. The suffix matters:
`26.8.2` moves when upstream rebuilds it, and `26.8.2-1` and `26.8.2-2`
still carry the affected JDK.
- `packages/system/keycloak-configure` runs `kcadm.sh` from the same
image and was still on 26.5.2; it moves along so the admin client
matches the server.
### How it was tested
Upgraded a two-replica 26.6.3 instance in place on a dev stand whose
nodes have AVX-512 VBMI, through the same values the release carries:
- The rolling update finished with the HelmRelease ready. The first new
pod ran the Liquibase update and migrated the `master` realm and the
platform realm through 26.7.0, 26.8.0 and 26.8.2.
- While it ran, the old node (Infinispan 16.0.8) and the new one
(16.0.15) shared one cluster view with no compatibility errors; the
final view has both nodes on 16.0.15.
- `java -version` in the pod reports 21.0.13.1.
- 26.8.2 enforces an audience check on the Admin REST API, which was the
main risk for the two admin clients this platform runs. Both pass: the
keycloak-operator, restarted to force a fresh login, reconciled every
resource and created a new realm group with no error and no 401 in its
log; and the `keycloak-configure` hook Job ran `kcadm.sh` from the new
image, with the same read and write calls repeated by hand afterwards.
- OIDC discovery and JWKS answer 200, and the login page of the platform
realm renders for the dashboard client. Submitting the login form was
not exercised.
`helm unittest` passes for both charts.
Notes for the reviewer:
- The database migration is one-way: after the upgrade, rolling the
image back to 26.6.3 is not supported.
- The upgrading guide says one 26.8.2 change (client registration
policies) does not support a rolling upgrade and asks to stop all nodes
first. This chart rolls the two replicas as before; the mixed phase
lasted under a minute in the test and showed no errors, but a deployment
that relies on dynamic client registration during the upgrade window may
see the difference.
- 26.8 also turns on client secret rotation and the SCIM API by default
and stops granting admin roles through identity-provider mappers unless
`allowAdminRoleMapping` is set. None of it is used by the platform's own
realm configuration.
- Custom login themes that override `social-providers.ftl` may need an
update for the redesigned identity-provider buttons.
- For the release lines, where a two-minor jump is not patch-release
material, #5370 adds the JVM flag instead.
### Screenshots
N/A — no UI changes in this repository. The Keycloak login page itself
changes with the upstream release.
### Downstream repositories
Walked the trigger map against the diff: an image tag in
`packages/system/keycloak/values.yaml` and in
`packages/system/keycloak-configure` (values and the template default).
No package added or renamed, no app `values.schema.json` or README, no
platform values key, no variant.
- [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
chore(keycloak): update Keycloak to 26.8.2, whose image carries an OpenJDK with the fix for CVE-2026-114938 (Java4Shell). The upgrade migrates the Keycloak database and cannot be rolled back to 26.6. Custom login themes that override social-providers.ftl should be checked against the redesigned identity-provider buttons.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Updates**
* Updated the default Keycloak version to 26.8.2-3 across the main
service and its administrative job. The email-update configuration also
uses this version by default. Existing image overrides remain available,
so deployments that specify a custom image can continue using that
setting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
64cc6d2ff1 |
fix(ingress-nginx): pick up the nginx rebuild with the HTTP/2 CVE fixes
The controller image v1.11.6 ships nginx 1.25.5, and the upstream project is archived, so no 1.11.x with a fixed nginx will come. The cozystack fork now rebuilds that same nginx with the two HTTP/2 commits from the 1.30 stable branch (CVE-2026-123633, CVE-2026-123007), and this moves the controller to that build. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com> |
||
|
|
bd79f08819 |
build(kafka-operator): vendor Strimzi 1.3.1
The Strimzi 1.2.0 images bundle OpenJDK 21.0.12, which is affected by CVE-2026-114938, an out-of-bounds write in the AVX-512 VBMI Base64 decoder that a broker reaches in SASL/SCRAM before the client is authenticated. Strimzi rebuilt only its 1.3.1 images on OpenJDK 21.0.13.1 and does not plan to rebuild 1.2.0. Vendor the 1.3.1 chart as published. It keeps Kafka 4.2.1 and 4.3.1, the versions the kafka application offers, adds 4.2.2 and 4.3.2, drops Kaniko, and grants the operator serviceaccounts/token and cert-manager Certificates for two features that are off by default. Pin the images to the suffixed rebuild tags. Strimzi moved the 1.3.1 tags onto the rebuild, so a node that pulled the first build keeps running the affected JDK under an unchanged tag; 1.3.1-1 does not move. The example scripts fall back to the same Kafka image and follow it. Strimzi 1.3 requires Kubernetes 1.32 or newer. Assisted-by: LLM Signed-off-by: Andrey Kolkov <androndo@gmail.com> |
||
|
|
35634080f4 |
fix(backups): sign Kafka S3 requests without curl --aws-sigv4
The Kafka topic-metadata strategy and the topic-data demo strategy move
their artifacts to and from S3 with the curl of the Strimzi image they
run in, signed by curl --aws-sigv4. The Strimzi 1.3.1-1 images carry
curl 7.76.1-43.el9, whose RHEL backport of the S3 payload handling
(0044-curl-7.76.1-aws-sigv4-s3-unsigned-payload.patch) adds
x-amz-content-sha256 to the canonical headers and to SignedHeaders but
never sends the header. SeaweedFS rejects every signed request, so both
backup Jobs fail with
curl: (22) The requested URL returned error: 403
The 7.76.1-40.el9 curl of the Strimzi 1.2 images has a different
defect, a signed Host without the non-default port it sends, which the
--connect-to workaround covered.
Sign the request in the script with openssl and sha256sum, both in the
Strimzi image, and leave curl only the transport. Sending the missing
header from the script would not do: for an upload the -43 build signs
UNSIGNED-PAYLOAD and the -40 build the empty-body hash, so no single
value satisfies both, and a curl that is fixed to send the header would
then send it twice. With the Host signed as curl sends it, the
--connect-to workaround goes too.
The bats suites hold the signature to the one botocore 1.35.99
S3SigV4Auth computes for the same request at a fixed time. Against
SeaweedFS 4.45 on a non-default port, the metadata script's backup,
restore and cleanup and the demo strategy's upload and download pass
in both quay.io/strimzi/kafka:1.2.0-kafka-4.3.1 and
1.3.1-1-kafka-4.3.1, a key with a space and non-ASCII bytes included,
and a wrong secret still gets 403.
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
|
||
|
|
f4330867ea |
feat(dashboard): let a login link pick the Keycloak identity provider (#5286)
## What this PR does A login link into the dashboard can now name the Keycloak identity provider, so a user who comes from a portal brokered into Keycloak skips the realm login page: ``` https://dashboard.<host>/oauth2/start?kc_idp_hint=<idp-alias>&rd=/admin/tenants ``` The motivating case is a billing portal registered in the realm as an OIDC identity provider. Its "Open dashboard" button today lands every client on "Sign in to <realm>", where they must pick the portal's provider by hand on every new browser or session. Keycloak skips that page when the auth request carries `kc_idp_hint`. The gatekeeper, however, builds the request from a fixed `--login-url`, and oauth2-proxy's flags forward only `acr_values`, `prompt` and `approval_prompt` from `/oauth2/start`. Putting the hint into `--login-url` would force every dashboard login, administrators included, through that one provider. oauth2-proxy can forward an allowed parameter through `providers[].loginURLParameters`, but only in its alpha configuration. The OIDC gatekeeper therefore now runs from one: - `templates/gatekeeper-config.yaml` (new, OIDC only) holds the provider, upstream, listen address and injected headers. The values are exactly what `oauth2-proxy --convert-config-to-alpha` (v7.12.0) produces for the previous flags, both the in-cluster Keycloak branch and the external-discovery branch. On top of those, `kc_idp_hint` is allowed when it matches `^[A-Za-z0-9._-]+$`. That rule and `clientSecretFile` in place of the inline `clientSecret` are the only hand-written lines; everything else, `scope`, `approval_prompt`, `insecureSkipNonce`, `flushInterval` and `timeout` included, is the converter output unchanged. - `templates/gatekeeper.yaml` keeps the flags the alpha configuration does not own (redirect URL, whitelist domain, email domain, API routes, cookie options, `--skip-provider-button`, `--ssl-insecure-skip-verify`). It mounts the config and the `dashboard-client` secret as files (`clientSecretFile`). A checksum annotation restarts the pod when the config changes. - The token-proxy branch (OIDC disabled) is unchanged. A login without the parameter behaves as before. oauth2-proxy logs a warning on start that the alpha configuration format may change between releases. Tests: - **Chart suite.** The gatekeeper suite loads the config template as well, because the deployment checksums it. The "no branding volume" test now asserts the branding volume is absent, not that the pod has no volumes. The five tests that read Keycloak URLs from the container args are removed: those values now sit in the alpha configuration. `helm unittest .` passes, 23 tests. - **E2E.** After the gatekeeper rolls out with OIDC enabled, the in-tree install suite requests `/oauth2/start` through a port-forward and checks the redirect: `kc_idp_hint=e2e-idp` reaches the `cozy` realm's auth URL, and a value outside the allow pattern (`e2e%26prompt%3Dnone`) is dropped. This covers the realm path and the allow rule that the removed chart tests no longer pin. - **Gatekeeper login (`hack/dashboard-gatekeeper-login.bats`).** Renders the chart for a realm other than `cozy`, starts the auth-proxy image with the rendered args and alpha config, and checks the `/oauth2/start` redirect: on the in-cluster Keycloak branch the hint reaches that realm's auth URL, a value outside the allow pattern is dropped, and a login without it carries none; on the external-discovery branch the gatekeeper discovers that realm from a local Keycloak stub and passes the hint. The image is read from the render, so an oauth2-proxy bump re-checks the alpha configuration. Needs docker, like `hack/etcd-grpc-alerts.bats`. - **Real oauth2-proxy v7.12.0 on the rendered config.** Ran with the rendered args and checked: - `/ping` answers OK; - `/oauth2/start?kc_idp_hint=whmcs` puts `kc_idp_hint=whmcs` into the Keycloak auth URL; - `/oauth2/start` without the parameter, or with a value outside the pattern, does not; - a protected path redirects without it; - `/apis/*` stays 401; - `--ssl-insecure-skip-verify` starts fine alongside `--alpha-config`. - **Live cluster.** Swapped in the rendered gatekeeper with the HelmRelease suspended, then reverted: - a brokered user who was already signed in at the portal went from the hinted link straight to the dashboard; - a plain visit still showed the realm login page; - a hinted visit without a portal session went straight to the portal's own login; - API calls from the console worked, so the `Authorization` header injection is intact. ### Screenshots N/A — no console UI changes. The change removes the Keycloak login page from the hinted flow. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: The diff touches only the dashboard gatekeeper templates and their tests. It adds no value, schema, package or platform component. I walked the trigger map against it, and no entry matches. ### Release note ```release-note feat(dashboard): a dashboard login link can name the Keycloak identity provider with `/oauth2/start?kc_idp_hint=<alias>`, so users coming from a brokered portal skip the realm login page. The OIDC gatekeeper now runs oauth2-proxy from an alpha configuration kept in a ConfigMap; logins without the parameter are unchanged. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * OIDC-enabled clusters now use updated dashboard sign-in settings, forwarding identity and token information to the dashboard. * Authentication requests use Keycloak’s internal URL when configured; otherwise, logout uses the public Keycloak URL. * Sign-in requests include the OpenID, email, and profile scopes. * Supported identity-provider hints are preserved in sign-in redirects, while invalid hints are excluded. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
e11ca91d81 |
fix(backups): stop leaking MariaDB dumps of stuck runs and torn-down namespaces (#5344)
## What this PR does Closes #5291. Two paths left a MariaDB dump and its `k8s.mariadb.com/Backup` behind after the dump cleanup from #5233. **A run that never completes.** When the operator Backup stays short of `Complete` past `mariadbDefaultBackupDeadline`, the BackupJob now deletes it (background propagation, so its Job goes too) before it marks itself `Failed`, and says so in the failure message. No Cozystack `Backup` is ever made of such a run, so nothing else deleted it, and while it stood its window had no end: `contestedMariaDBDump` counted it as a possible writer of every later dump of the application, and every later `Backup` was released with `ArtifactNotDeleted`. Deleting the Job also stops a run that is still going from uploading a dump nobody tracks. An operator Backup that is `Complete=True` on a reason the driver does not know has a bounded window and is kept, as before. The decision is made on the operator Backup read from the API server, not the cache. A run the operator has just marked complete or failed goes down the normal path and is not deleted. The delete carries the UID and resourceVersion that were read, so a run that completes between the read and the delete is not deleted either. Past the deadline no new run is created, so a pass that deleted the run and then failed to persist `Failed` does not start another one on retry. A delete the API server keeps refusing shows as `Ready=False/OperatorBackupDeleteFailed` on the BackupJob. The delete also removes the run's pod, so before it the controller copies what held the pod up into the failure message: an unschedulable pod, or a container that is waiting or has failed. The MariaDB driver's other failure exits take the same path: the MariaDB application was deleted, the MariaDB CR never came back, the strategy disappeared past its deadline, the strategy no longer renders, the applicationRef is rejected, or the run could not be created. Past the deadline, the run is taken from the API server listing and `ensureMariaDBBackup` is not called, so a cache that has not seen the run cannot cause a second one to be created. mariadb-operator leaves the run of a MariaDB that went away at `Complete=False` for good, so if the application was later recreated under the same name, that run used to contest every later dump. The deadline is still 30 minutes from `StartedAt`, but a dump that is still running at that point is now stopped instead of being left to finish outside Cozystack. **Namespace teardown.** mariadb-operator puts no finalizer on its `Backup`, so during teardown it is usually gone before the Cozystack `Backup` finalizer runs. When the operator Backup is not found, the cleanup now: - takes bucket, prefix and Secret references from the snapshot in `status.underlyingResources`; - goes on only for a recorded dump (`k8s.mariadb.com/dump-file`) on the platform bucket written with the projected platform Secret, reached with the platform credentials, which do not depend on the namespace; - keeps the dump, with a `Warning ArtifactNotDeleted`, when another operator Backup, finished or not, could have written it (the same `contestedMariaDBDump` check as before); - retries a failed delete through `retryMariaDBCleanup`, which releases the `Backup` once the namespace is terminating. The snapshot and the storage URI now record the storage the run was created with, whatever its kind, rather than the strategy as rendered when the run completed. A strategy edited during a run therefore cannot send the cleanup to the wrong place. The BackupJob looks for its run on the API server rather than in the cache, so a retry after a failed status write never starts a second run. A `Running` BackupJob never starts a run at all, and if its run is gone the job is failed. A `Backup` with no recorded dump, no snapshot, a dump on another bucket or written with the tenant's own Secret, or unreadable platform credentials is released with a `Warning`, as before. A missing operator CRD keeps the old release path. The platform-bucket check that `mariadbCleanupConnection` used is now `mariadbPlatformConnection`, shared by both paths. Its behaviour is unchanged. Not covered: - Operator Backups left behind by BackupJobs that failed before this change are still there, because terminal BackupJobs are not reconciled again. Deleting them by hand releases the dumps they hold. - Deleting a BackupJob that is still running leaves its operator Backup, which has no ownerRef and no finalizer. This was already the case and is not addressed here. - The driver-independent terminal exits in `backupjob_controller.go` (BackupClass resolution, credentials projection) still fail a BackupJob without looking at a MariaDB run. - A run that is stopped at the deadline after it has uploaded its dump leaves that dump untracked. No `Backup` is ever made of such a run. The other fail-safe cases listed in the issue (a `Restore` that never completes, the single `Backup` worker, non-204 DELETE responses, endpoint moves) are not addressed here. Tests: `go test ./internal/backupcontroller/...`. The deadline outcome table now also checks whether the operator Backup was deleted. New cleanup tests cover a missing operator Backup: the dump deleted with the platform credentials, already absent, contested by an unfinished run, a failed delete held for retry, and each case it cannot reach (volume storage, a recorded name that is not a dump, a snapshot of another kind). Deadline tests cover a retry after a failed status write, a cache that trails a completed run or misses a new one, a delete conditional on the run that was read, a refused delete, and the application or MariaDB going away mid-run. ### Screenshots N/A, no UI changes. ### Downstream repositories I checked the trigger map in `docs/agents/contributing.md` against the diff. The diff touches `internal/backupcontroller/mariadbstrategy_*.go` and their tests. It also adds a message helper in `internal/backupcontroller/backupjob_controller.go` and changes comments in `internal/backupcontroller/backup_controller.go` and `packages/system/backupstrategy-controller/templates/rbac.yaml`. No values, schemas, CRDs, RBAC rules, annotations or telemetry change. - [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(backups): MariaDB dumps are no longer left in the bucket when a backup run never completes or when a tenant namespace is deleted. A BackupJob that times out now deletes the operator Backup it gave up on, so that run no longer blocks the deletion of later dumps. A Backup whose operator Backup is already gone now deletes its recorded dump from the platform bucket using the platform credentials. A MariaDB backup run that has not completed 30 minutes after its BackupJob started is now stopped. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * MariaDB backup cleanup now removes a recorded dump from the platform bucket when its operator Backup is already gone, while leaving contested or insufficiently verified dumps untouched. * Failed dump deletions are retried, and cleanup reports when a dump is already absent. * Backup jobs are less likely to start duplicate runs during retries, and completed backups retain the storage configuration used by their run. * Failure handling preserves completed runs and includes operator-run completion details when available. * Backup jobs now recheck the operator Backup before failing on a deadline, helping account for runs that completed or failed in the meantime. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
0ec0add620 |
chore(keycloak): bump Keycloak server to 26.8.2
quay.io/keycloak/keycloak:26.6.3 bundles OpenJDK 21.0.11, which is affected by CVE-2026-114938, an out-of-bounds write in the AVX-512 VBMI Base64 decoder that Keycloak reaches before authentication. Upstream fixed it by rebuilding the 26.8.2 image on OpenJDK 21.0.13.1 and did not rebuild 26.6 or 26.7. Pin the 26.8.2-3 tag: 26.8.2 moves when upstream rebuilds it, and 26.8.2-1 and 26.8.2-2 still carry the affected JDK. keycloak-configure runs kcadm.sh from the same image and was still on 26.5.2; move it along so the admin client matches the server. Tested by upgrading a two-replica 26.6.3 instance in place: the rolling update migrated the database and both realms to 26.8.2, the old and the new node shared one cluster while it ran, the keycloak-operator reconciled every resource against the new Admin API, and the kcadm.sh hook passed. Assisted-by: LLM Signed-off-by: Andrey Kolkov <androndo@gmail.com> |
||
|
|
6fdd37ad81 |
build(cozyplane): keep the chart on a failed update
Stage the download next to its destination so the final step is a rename on the same filesystem, and drop the staging directory when the download fails. The Cilium CRD recipe also fails on an HTTP error now instead of saving the error body as a CRD. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
7f31011b99 |
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`. ``` |
||
|
|
c98a345aa1 |
docs(api): clarify health check parsing and evaluation (#4495)
## What this PR does Clarifies the lifecycle of HelmRelease CEL health checks. helm-controller parses and validates these expressions and creates a status reader factory before choosing how to wait. The factory constructs the concrete status reader when the selected wait path creates its resource manager. Invalid configuration can therefore stall the HelmRelease with reason InvalidCELExpression even when the release.cozystack.io/helm-install-disable-wait annotation is set or the legacy wait strategy is selected. Once setup succeeds, only helm-controller's poller evaluates expressions: while a Helm action waits under the poller strategy, and for Helm hooks, which are still waited on when the annotation disables wait. Without the annotation, the legacy strategy never evaluates them. With it, hooks are evaluated whatever the strategy, because disabling wait takes precedence. The monitoring template comment now also distinguishes an existing status object without `updateStatus` from a completely absent top-level `status` key. The former evaluates the predicates to false, while the latter can produce an evaluation error and an Unknown result. The poller continues waiting in both cases. The CEL expressions and runtime behavior are unchanged. The generated ApplicationDefinition CRD description was regenerated from the Go field documentation. Fixes #4388 ### Screenshots N/A — no UI changes. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note NONE ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified when health-check expressions are validated and evaluated across wait strategies and Helm hooks, including how invalid expressions can affect Helm releases. * Explained how missing status fields affect health-check results and that polling continues until the resource is operational or times out. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
887453c008 |
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> |
||
|
|
2de43d406c |
fix(seaweedfs): point the Lance catalog consumers at the renamed s3 Service
s3-service-name.patch renames the S3 Service to <name>-s3, but the Lance catalog that arrived with chart 4.45 still builds the name from seaweedfs.componentName, which gives <fullname>-s3. With the catalog on and a fullname that differs from the chart name, the Lance ingress points at a Service that does not exist and the worker gets a Lance URL that does not resolve. The shipped values hide this because lancePort is 0 and fullnameOverride makes both names equal. Carry both consumers in s3-service-name-consumers.patch, the same way the S3, Iceberg and COSI consumers are, and cover them in the consumer tests with the catalog turned on. Closes: #4878 Assisted-by: LLM Signed-off-by: Adham Kiwan <adhamkiwan@outlook.com> |
||
|
|
a314dacb86 |
fix(platform): honour a bool false in ingress-enabled and monitoring-enabled
Helm's default treats a bool false as empty, so an unquoted false in either _cluster flag still rendered _namespace.ingress and the monitoring redirects. Check for a missing key first and require "true" or a bool true otherwise. Assisted-by: LLM Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com> |
||
|
|
c498375ce1 |
feat(cozyplane): bump to the v0.1.2 release
Re-vendor at upstream v0.1.2. The agent now exits with a pointer to the tracking issue on a node without IPv4 or without a default route, instead of coming up unable to serve one, and the controller writes the VIP a VPC knows an attached Service by onto the Service. The wrappers now pin the release images by tag and digest. The vendored chart pins a digest only, which the repo's image tooling does not read inside a vendored chart, so the cozyplane images were never mirrored or promoted; a depth-two values.yaml is where that tooling looks. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
2e701173c8 |
test(cozyplane): pin the args the platform's networking facts reach
The platform threads podCIDR, serviceCIDR and clusterDNS into the cozyplane chart, and they carry the masquerade and the VPCs' internal denies. A template that dropped one still rendered and every suite stayed green. The suite now asserts the agent's --cluster-cidr, --masquerade, --internal-cidrs and --mtu and the controller's --internal-cidrs and --cluster-dns, using non-default values so a chart default cannot stand in for a lost one. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
57bb0d703f |
feat(cozyplane): give tenants the cozyplane API through cozy:tenant
The cozyplane chart's tenant roles aggregate into the built-in admin/edit/view ClusterRoles, which no Cozystack tenant is bound to, so VPC self-service was Forbidden for every tenant. The wrapper carries them across: one role aggregates the chart's edit role into cozy:tenant (the tenant ServiceAccount Flux applies tenant releases as) and the admin tier, another the view role into the view tier. Aggregating the chart's roles instead of copying their rules keeps the list of tenant kinds the chart's to maintain, the NAT gateways and route tables the last re-vendor added included. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
02914f60ec |
refactor(cozyplane): vendor the charts inside wrapper charts
cozyplane is an upstream project and must not carry anything Cozystack-specific, so each of the three packages now follows the umbrella pattern the rest of packages/system uses: the upstream chart lives verbatim under charts/<name>, re-vendored by make update from a pinned ref, and every Cozystack setting lives in the wrapper. The wrapper owns the Talos overlays (KubePrism, the 00- conflist), the apiserver's etcd storage class, which the platform used to inject and the chart's own default contradicted, and the apiserver's replica count, now two since it backs every tenant's SDN API. The platform nests the egress values it threads under the cozyplane subchart key. Rendered output is unchanged apart from the replica count. The update target extracts into a temporary directory and replaces the chart only once the download has succeeded. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
952e05836d |
fix(cozystack-api): stop serving sdn.cozystack.io when serveSDN is off
serveSDN=false removed only the sdn APIService. The binary still installed the group, so its /openapi/v3 index kept listing apis/sdn.cozystack.io/v1alpha1 beside the server that owns the group (cozyplane-apiserver in the cozyplane variant). kube-aggregator merges every APIService backend's index and serves a group-version from whichever backend it meets first in map order, so the index hash and the spec request often land on different backends. The backend answers the stale hash with a 301, the aggregator refuses to forward it, and `kubectl explain` fails for every kind in the group with "the backend attempted to redirect this request, which is not permitted"; when the two do match, kubectl gets cozystack-api's SecurityGroup-only spec and reports the other kinds as missing. The chart now passes --serve-sdn=false with serveSDN off, and the server then leaves the group uninstalled. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
2065b7a523 |
feat(cozyplane): bump to VPC egress and the netlink retry
Re-vendor at upstream a0f32e2. VPC egress becomes NAT gateways, route tables and routes in sdn.cozystack.io (lllamnyp/cozyplane#65), served by the aggregated apiserver like the other tenant kinds; the gateways' leased port blocks are a new NATPortBlock kind in the local group, the only new CRD. VPCGateway's nat.enabled keeps working as a transition: the controller creates and owns a NATGateway, a default RouteTable and a default route per family, adopting the existing NAT Services so the egress address does not change. The agent also retries netlink dumps the kernel interrupted, instead of failing them (lllamnyp/cozyplane#67). Chart-side the change is the matching agent, controller and tenant RBAC and the image pin; the kpr image is unchanged. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
2c3f9f125d |
chore(cozyplane): bump to the stand-fix builds
Re-vendor from upstream main: kpr's svc_vips reconciler is supervised and dials the configured apiserver endpoint rather than dying silently with the default one (lllamnyp/cozyplane#57), and the agent re-creates the FabricIP claim of a pod that already holds the address instead of wedging it (lllamnyp/cozyplane#58). Both are binary fixes, so both image pins move; the charts themselves are unchanged. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
81bac71eee |
chore(cozyplane): re-vendor at the hardened-chart build
Brings in the upstream review fixes (lllamnyp/cozyplane#52-#54): kpr's cilium.io RBAC wildcard is dropped outright — the wired cells watch only Services/EndpointSlices and node-local Pods/Namespaces, proven on a cluster serving no cilium.io group at all; controller leader election is on with its leases Role, so raising replicas can no longer run uncoordinated writers; the agent's per-VPC metrics are authenticated (TokenReview/SubjectAccessReview, secure by default, fail-closed) and bound to the node's primary address — the values file documents that an existing anonymous scrape gets 401 until the shipped cozyplane-metrics-reader ClusterRole is bound to the monitoring ServiceAccount; and the chart comments that shipped inside rendered manifests are trimmed to mechanism statements with doc pointers. The cozyplane image pin moves to the build carrying the agent changes; the kpr binary is unchanged, so its pin stays. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
2149b53070 |
build(cozyplane): vendoring recipe for the Cilium CRDs
The two policy CRDs were copied by hand with nothing recording where from, so they would drift from the cilium package's upstream bumps with no signal. The Makefile pins the Cilium release (the in-tree files are byte-identical to its upstream CRDs) and make update re-fetches them. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
12260c43b0 |
feat(cozystack-api): gate the sdn APIService
cozyplane serves sdn.cozystack.io through its own aggregated apiserver; a second APIService for the group from cozystack-api would hijack it and 404 every kind but SecurityGroup. cozystackAPI.serveSDN (default true, so nothing changes off the cozyplane variant) lets the platform turn exactly that APIService off; the suite pins that the toggle removes it and nothing else. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
f28354eb7f |
feat(cozyplane): ship Cilium policy CRDs inert
Many stock components (linstor, tenant, monitoring-agents, ...) embed CiliumNetworkPolicy objects and fail to install without the CRDs. On the Cilium variants the cilium chart provides them; the cozyplane variant runs no Cilium, so this package ships the two policy CRDs (vendored verbatim from Cilium 1.19.5) purely so those manifests apply. Nothing enforces them — the platform docs and threat model say so, and rebuilding tenant isolation on what cozyplane does enforce (native NetworkPolicy, HostFirewall) is a follow-up. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
4e35e52421 |
feat(cozyplane): vendor the sdn apiserver chart
The aggregated apiserver serves sdn.cozystack.io (VPC tenancy, policy) and is a separate package precisely so the CNI slot stays cert-manager-free: this component needs cert-manager Certificates, the etcd-operator and, for its PVC-backed etcd, storage — with no cycle, since linstor depends on the CNI rather than on this. The tenant kinds deliberately have no CRDs: one group served by both a CRD and an APIService collides in the kube-apiserver's OpenAPI merge and the group's schema never serves. The etcd is an etcd-operator v1alpha2 EtcdCluster in certManager TLS mode, PVC-backed on the replicated class by default (its objects are cluster state; a memory-backed member loses them on a full-cluster restart), addressed through the operator's Service because the operator names member pods randomly. The helm-unittest suite pins the EtcdCluster shape and the Service endpoint. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
aafed8e571 |
feat(cozyplane): vendor the kube-proxy replacement
cozyplane-kpr imports Cilium's LB control plane and socket-LB as the cluster's only service proxy — a separate component and image from the CNI agent on purpose, since it carries Cilium's cell framework. It dials KubePrism on Talos for the same bootstrap reason the agent does, needs its node name (downward API) to tell node-local endpoints apart — without it no external address is served — and keeps DSR strictly opt-in, because the fleet-wide LB-IP spoof permission DSR needs is an underlay property. The helm-unittest suite pins those three. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
28d54a2591 |
feat(cozyplane): vendor the eBPF CNI chart
packages/system/cozyplane vendors chart/cozyplane from lllamnyp/cozyplane (ref-pinned; make update re-vendors and re-applies the Cozystack-side Chart.yaml version stanza). The CNI slot installs before everything else, so its dependency floor is the kube API alone: the chart ships only the LOCAL group's CRDs (local.sdn.cozystack.io, underlay IPAM) — the tenant kinds are served by the aggregated apiserver, packaged separately. On Talos the agent and resolver bootstrap against KubePrism (localhost:7445), because with no kube-proxy the kubernetes.default ClusterIP is unserved until cozyplane-kpr runs, and kpr needs the agent. The helm-unittest suite pins exactly that platform contract: the KubePrism endpoint, the 00- conflist precedence over a co-installed CNI, and the LOCAL-group-only CRDs. Assisted-by: LLM Signed-off-by: Timofei Larkin <lllamnyp@gmail.com> |
||
|
|
0887b43793 |
Merge branch 'main' into feat/capi-v1.13
Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la> |
||
|
|
191e2f45fa |
fix(capi-providers-core): stage unfinished kubeadm installations
A kubeadm installation can finish at its old requested version while
core moves to the intermediate release. Ignoring its initial empty
installedVersion leaves the final bootstrap chart outside its supported
upgrade window.
Fixes:
|
||
|
|
d88322197f |
chore(deps): roll up Renovate updates and raise dependencies to latest stable (#4869)
## What this PR does One PR instead of separate Renovate PRs. Go modules, Dockerfile base images and GitHub Actions move to newer versions that build and pass the tests. Where a newer version is known to break something, it stays behind, and `.github/renovate.json` holds it with the reason in the rule description. The tests come first, in their own commits: - `make go-unit-tests` runs the Go tests under `pkg/` and `cmd/`, except the backport-batch suite, which keeps its own target. The apiserver serializer and fuzz tests, the generated OpenAPI and applyconfiguration suites, the apis packages and the controller, operator and observability-proxy commands did not run in CI before. - The apps API surface that apiserver libraries shape is pinned: server-side apply, content negotiation, Table output on watch, the served OpenAPI v2 and v3 documents, and building the server without etcd. Two answers look wrong and are pinned as they are today: applies from different field managers never conflict (#4857), and protobuf is refused with 406 even when the client offers JSON as a fallback (#5297). - New tests cover the kubeovn webhook patch, the token proxy session cookie and the mount-utils behaviour the kubevirt CSI node service relies on. - `hack/image-smoke.bats` checks the tools the CSI, LINSTOR, multus, Harbor and redis-backup images take from their base images or build stages, and that the kubevirt CSI node plugin and its sidecars need no more than x86-64-v2. Each PR build job runs it against the images it pushed; forks and the unit lane run no container. The tests found two bugs: - The kubeovn webhook dereferenced a nil pointer on an admission review without a request, so the caller got a dropped connection instead of a 400. - The token proxy cookie refresh never fired: securecookie decodes the session times as int64 and the refresh looked for float64, so the `--cookie-refresh=1h` the chart sets did nothing. A refreshed cookie keeps the token's expiry. A session too large to encode now shows an error at sign-in and leaves the current cookie alone on refresh. What moved: - GitHub Actions to their Node 24 majors. The flux action stays on the tag of the Flux CLI it installs. The release job's checkout no longer persists credentials, so its staging branch push uses the App token. - Go 1.27.2 for the toolchain and builders. Builds that reproduce an upstream release keep the Go upstream uses: Harbor, cilium-operator, SeaweedFS and the chainsaw stage of the e2e sandbox. - controller-runtime v0.25.2, gateway-api v1.6.3 on the minor of the installed v1.6.1 CRDs, cel-go v0.30.0, grpc v1.84.0, etcd v3.7.2, cert-manager v1.21.2, kubevirt csi-driver f10ae94 on Kubernetes v0.37.1. - Node 24 for the dashboard console. Held back, each with its reason in the Renovate rule: - cel-go stays below v0.31: the old repository has no tags past v0.30.0, and v0.32 moves to cel.dev/cel-go, which k8s.io/apiserver does not import. - kube-openapi stays on the commit its dependencies require, and structured-merge-diff stays on v6, because k8s.io/apimachinery v0.37 does not compile against v7. - The Flux API modules stay on the Flux v2.8 line the platform installs. - gomodules.xyz/jsonpatch stays on v2, which controller-runtime's admission.Patched takes. - jwx stays on v3: v4 removes jwk.Cache, which the token proxy's JWKS refresh is built on. - kubevirt.io/api and the CDI API stay where upstream csi-driver builds. - The kubevirt CSI driver image stays on AlmaLinux 9, because AlmaLinux 10 builds its amd64 userland for x86-64-v3. - shadowbox stays on node 18, which outline-server declares in its engines. - The e2e sandbox stays on Ubuntu 24.04. 26.04 ships uutils coreutils, whose `date` costs about 4x per call, and the test harness forks it per traced line, which adds about ten minutes to the install phase. - clastix/kubectl stays on v1.32 for the cleanup hooks, within kubectl's one-minor skew. The cert-manager Go module (v1.21.2) is one minor ahead of the installed chart (v1.20.2). The Certificate objects the gateway controller writes serialize the same either way. `api/apps/v1alpha1` now requires Go 1.27.2, which applies to every module that imports the published types. The Linux run with Go 1.27.2 was done before the rebase onto current main, and the rebased head has not been through it yet. There the five modules built, vetted, tested and tidied cleanly, and the repository unit, controller and envtest lane passed. `go test -race` passed in four modules. In the root module it failed only on a pre-existing data race in the workload monitor tests (#5296), which main has too. The image smoke checks run in this PR's CI. ### Screenshots No UI change. ### Downstream repositories `api/apps/v1alpha1` moves to `go 1.27.2`, and cozystack/terraform-provider-cozystack imports it, so that repository is affected but needs no action. Its box stays empty for that reason, and so does the "not affected" one. - [ ] 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: none needed, because its Renovate raises the go directive together with the pin bump and its CI takes Go from `go.mod`; the only effect is that the provider's minimum Go becomes 1.27.2. - [ ] [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 chore(deps): move the toolchain and builder images to Go 1.27.2 and raise Go modules, base images and GitHub Actions to newer working releases; the dashboard token proxy now refreshes its session cookie, and the kube-ovn webhook rejects an admission review without a request instead of dropping the connection. ``` |
||
|
|
693ff070e5 |
chore(goldpinger): bump vendored chart to 1.2.0 (#4877)
## What this PR does Update the vendored Goldpinger chart to include upstream Gateway API support for the work tracked in #4788. HTTPRoute and UDP probing remain disabled by default. With the package's current values, the rendered resources differ only in the image tag and version labels. The DaemonSet selector is unchanged. The umbrella chart also declares the vendored dependency so Helm can lint it. ### Screenshots Not applicable. This PR updates the chart and package metadata; it does not change the UI source. ### 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 chore(goldpinger): bump vendored chart to 1.2.0 (goldpinger 3.11.5); new HTTPRoute and UDP probe options are disabled by default ``` |
||
|
|
9813d13dcd |
fix(kamaji): drop kubelet config fields older tenants do not know (#4896)
## What this PR does
Older tenant Kubernetes versions receive kubelet config fields they do
not know. The pinned Kamaji 26.9.4-edge build uses the Kubernetes 1.37
libraries to render `kube-system/kubelet-config`:
| Field | Known since | Rendered for tenants |
| --- | --- | --- |
| `memoryReservationPolicy` | 1.36 | v1.31 to v1.35 |
| `mergeDefaultEvictionSettings` | 1.33 | v1.31 to v1.32 |
| `crashLoopBackOff` | 1.32 | v1.31, as `crashLoopBackOff: {}` |
On a v1.35 tenant, `kubeadm join` logs:
```text
configset.go:176 error unmarshaling configuration schema.GroupVersionKind{Group:"kubelet.config.k8s.io", Version:"v1beta1", Kind:"KubeletConfiguration"}: strict decoding error: unknown field "memoryReservationPolicy"
```
Nodes still join, because kubeadm only logs this and decodes leniently,
dropping the field. Anything that decodes this ConfigMap strictly fails.
The compatibility patch drops these fields when the tenant version
predates them, including fields added by a user JSON patch. Supported
fields are kept. The version checks conservatively treat a pre-release
as older than its minor; early alpha releases can lack that minor's
fields. A running tenant gets the cleaned ConfigMap the next time Kamaji
uploads it.
JSON removals cannot fully replace this on the current build: Kamaji
decodes patched JSON back into a Go struct, restoring a removed
`crashLoopBackOff` as `{}`. The kubernetes chart also does not render
`kubelet.configurationJSONPatches`.
Upstream fixed JSON patch removal in 26.10.4-edge (clastix/kamaji#1347).
With that bump, the chart can render version-dependent removals and
replace this compatibility patch. This PR keeps the fix for 26.9.4-edge.
The regression tests cover field presence for tenants v1.31 to v1.37,
selected pre-releases, user patches, invalid versions, defaults and
`UploadKubeletConfig` with a fake client. The image build runs the tests
of packages touched by its patches.
Tested on Linux:
- Against upstream Kamaji commit
`1c3d84ae94473e94945ad01b2540ec319478bce4`, the new tests fail with the
current main patch in the three compatibility tests. With this patch,
the Go tests in every package touched by the patches pass, and the
Kamaji build succeeds.
- The repository unit lane passes.
I did not run a strict-decoding matrix against each Kubernetes minor for
this version.
### Screenshots
Not a UI change.
### Downstream repositories
- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:
- [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up:
- [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up:
- [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) -
follow-up:
- [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) -
follow-up:
- [ ]
[cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server)
- follow-up:
- [ ]
[cozystack/external-apps-example](https://github.com/cozystack/external-apps-example)
- follow-up:
- [ ] [cozystack/examples](https://github.com/cozystack/examples) -
follow-up:
- [ ] [cozystack/community](https://github.com/cozystack/community) -
follow-up:
### Release note
```release-note
fix(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.
```
|