diff --git a/docs/changelogs/v1.6.6.md b/docs/changelogs/v1.6.6.md index efaa19797..865b107df 100644 --- a/docs/changelogs/v1.6.6.md +++ b/docs/changelogs/v1.6.6.md @@ -4,19 +4,19 @@ https://github.com/cozystack/cozystack/releases/tag/v1.6.6 # v1.6.6 (2026-11-27) -A patch release with five security fixes (Harbor, Alerta, Velero restore-copy, COSI bucket classes and the tenant Info ServiceAccount token), mitigations for CVE-2026-114938 (OpenSearch), CVE-2026-97629 (ingress-nginx) and CVE-2026-116331 (system PostgreSQL), and a large backport of fixes for install and upgrade retries, backups and restores, monitoring and alerting, SeaweedFS, LINSTOR, tenant quotas and the dashboard. Several changes roll running workloads or change behavior on upgrade; read [Migration and Upgrades](#migration-and-upgrades) before upgrading. +A patch release with five security fixes in the monitoring, Harbor, bucket, backups and Info packages (details will be in GitHub security advisories), mitigations for CVE-2026-114938 (OpenSearch), CVE-2026-97629 (ingress-nginx) and CVE-2026-116331 (system PostgreSQL), and a large backport of fixes for install and upgrade retries, backups and restores, monitoring and alerting, SeaweedFS, LINSTOR, tenant quotas and the dashboard. Several changes roll running workloads or change behavior on upgrade; read [Migration and Upgrades](#migration-and-upgrades) before upgrading. ## Security -* **security(info): do not render the tenant ServiceAccount token under OIDC**: With OIDC enabled the Info application no longer renders the tenant ServiceAccount token Secret, which every `use` member of the tenant could read through `tenantsecrets`, together with the rights bound to that ServiceAccount. Tokens already read are invalidated. Without OIDC the RoleBinding now names the tenant's own ServiceAccount instead of a name another tenant could claim ([**@myasnikovdaniil**](https://github.com/myasnikovdaniil) in [ffdd851](https://github.com/cozystack/cozystack/commit/ffdd851ba)). +* **Security fix in the monitoring package**: fixes a critical security issue in the monitoring package. Details will be in a GitHub security advisory, please upgrade as soon as possible ([**@kvaps**](https://github.com/kvaps) in cozystack/cozystack@45f3f74). -* **fix(backups): confine Velero restore-copy to the tenant's namespace subtree**: A Velero `RestoreJob` now accepts `options.targetNamespace` only if the namespace carries the tenant subtree label of the RestoreJob's own namespace, so a tenant administrator can no longer restore a backup into another tenant's namespace or overwrite an application there. Restore-copy within the tenant's own subtree keeps working (GHSA-vq9c-8j6p-r6mp, GHSA-p7mc-34g4-53vv, GHSA-4295-xcmq-8h9h; [**@IvanHunters**](https://github.com/IvanHunters) in [37e10d8](https://github.com/cozystack/cozystack/commit/37e10d82d)). +* **Security fix in the Harbor package**: fixes a high severity security issue in the Harbor package. Details will be in a GitHub security advisory, please upgrade as soon as possible ([**@kvaps**](https://github.com/kvaps) in cozystack/cozystack@cd77b12). -* **fix(bucket): refuse COSI classes of another SeaweedFS instance**: The bucket chart now refuses to render when a referenced `BucketClass` or `BucketAccessClass` belongs to another SeaweedFS instance, or when `storagePool` names a class that does not exist, so a crafted `storagePool` can no longer provision a bucket in a different tenant's SeaweedFS ([**@lexfrei**](https://github.com/lexfrei) in [87d62af](https://github.com/cozystack/cozystack/commit/87d62af92)). +* **Security fix in the bucket package**: fixes a medium severity security issue in the bucket package. Details will be in a GitHub security advisory, please upgrade as soon as possible ([**@lexfrei**](https://github.com/lexfrei) in cozystack/cozystack@87d62af). -* **security(harbor): give the inner registry its own credential and port policy**: Harbor's inner registry no longer accepts the chart's published default credential from any pod the tenant network policies let through. Each release gets a random registry password, and a CiliumNetworkPolicy limits the registry and registryctl ports to core, jobservice and trivy of the same release ([**@kvaps**](https://github.com/kvaps) in [cd77b12](https://github.com/cozystack/cozystack/commit/cd77b124e)). +* **Security fix in backups**: fixes a critical security issue in the backup controller. Details will be in a GitHub security advisory, please upgrade as soon as possible ([**@IvanHunters**](https://github.com/IvanHunters) in cozystack/cozystack@37e10d8). -* **security(monitoring): give Alerta a real signing key and its own admin password**: Alerta now signs its session tokens with a generated `SECRET_KEY` instead of the built-in `changeme`, which allowed anyone to mint an admin token. Its admin account has a dedicated password instead of reusing Grafana's, the image is pinned by digest, credentials stay out of the container log, and tenants see Alerta's login apart from its keys ([**@kvaps**](https://github.com/kvaps) in [45f3f74](https://github.com/cozystack/cozystack/commit/45f3f7424)). +* **Security fix in the Info package**: fixes a high severity security issue in the Info package. Details will be in a GitHub security advisory, please upgrade as soon as possible ([**@myasnikovdaniil**](https://github.com/myasnikovdaniil) in cozystack/cozystack@ffdd851). * **fix(opensearch): disable the Base64 intrinsics hit by CVE-2026-114938**: OpenSearch nodes start with `-XX:-UseBASE64Intrinsics`, which turns off the vulnerable OpenJDK Base64 decoder ([**@androndo**](https://github.com/androndo) in #5373, backport #5312). @@ -40,7 +40,7 @@ A patch release with five security fixes (Harbor, Alerta, Velero restore-copy, C * **fix(vm-instance): keep an external PortList VM valid with no ports**: An external `PortList` VM with an empty port list deploys, keeps its external IP and blocks all inbound TCP and UDP traffic ([**@mattia-eleuteri**](https://github.com/mattia-eleuteri) in #5270, backport #5312). -* **fix(controller): carry healthCheckExprs and waitStrategy to existing releases**: Existing HelmReleases now receive `healthCheckExprs` and `waitStrategy` from their ApplicationDefinition, so vm-disk and postgres releases created earlier stop waiting on DataVolume and KEDA ScaledObject during upgrades ([**@myasnikovdaniil**](https://github.com/myasnikovdaniil) in #5087, backport #5312). +* **fix(controller): carry healthCheckExprs and waitStrategy to existing releases**: Existing HelmReleases now receive `healthCheckExprs` and `waitStrategy` from their ApplicationDefinition. No ApplicationDefinition on the v1.6 line sets them yet, so running releases do not change ([**@myasnikovdaniil**](https://github.com/myasnikovdaniil) in #5087, backport #5312). * **fix(dashboard): link a tenant row to its detail page**: The tenant name in the tenant list links to its detail page, where Delete lives, and top-level tenants get their Edit button back ([**@myasnikovdaniil**](https://github.com/myasnikovdaniil) in #4004, backport #5312). @@ -188,7 +188,7 @@ A patch release with five security fixes (Harbor, Alerta, Velero restore-copy, C * **fix(etcd): size the defrag job for the client it runs**: The tenant etcd defrag job requests 10m and 32Mi, so it runs in nearly exhausted tenant quotas ([**@yankawai**](https://github.com/yankawai) in #5100, backport #5312). -* **fix(seaweedfs): keep Object Lock working for COSI credentials on SeaweedFS 4.48**: Existing bucket credentials get the Object Lock actions SeaweedFS 4.48 requires, keeping their bucket restrictions ([**@lexfrei**](https://github.com/lexfrei) in #4893, backport #5312). +* **fix(seaweedfs): grant Object Lock actions to existing S3 identities**: Existing bucket credentials get the Object Lock actions on install and upgrade, keeping their bucket restrictions ([**@lexfrei**](https://github.com/lexfrei) in #4893, backport #5312). * **fix(seaweedfs): bump the COSI driver to v0.4.0 for the lost-grant fix**: Bucket users granted together no longer get S3 keys that fail with `403 InvalidAccessKeyId` ([**@myasnikovdaniil**](https://github.com/myasnikovdaniil) in #5284, backport #5312). @@ -245,11 +245,16 @@ A patch release with five security fixes (Harbor, Alerta, Velero restore-copy, C This release adds no platform migrations. Upgrading rolls or changes the following on running clusters: * **OpenSearch**: every OpenSearch cluster restarts once to apply `-XX:-UseBASE64Intrinsics` (#5373). On installations that use `cozy.local`, an existing `-securityconfig-update` Job already stuck on the old hostname is not recreated by the operator: delete it once by hand (#4185). -* **System PostgreSQL**: the Keycloak, Harbor, Grafana, Alerta and SeaweedFS databases move to 17.12; replicas roll first, then the primary restarts in place, with an interruption of a few minutes per database (#5403). -* **Harbor**: the inner registry password is rotated on upgrade, so core, jobservice and registry roll together; registry storage is untouched ([**@kvaps**](https://github.com/kvaps), [cd77b12](https://github.com/cozystack/cozystack/commit/cd77b124e)). -* **Alerta**: Alerta gets a generated signing key and a dedicated admin password, kept in its Secret across upgrades; tokens signed with the old `changeme` key stop being valid ([45f3f74](https://github.com/cozystack/cozystack/commit/45f3f7424)). -* **Info application**: with OIDC, the tenant ServiceAccount token Secret is removed, which invalidates tokens already read; consumers of that token must switch to their own credentials (ffdd851). -* **bucket**: an existing bucket release that references a class of another SeaweedFS instance, or a `storagePool` whose class does not exist, fails on its next upgrade ([87d62af](https://github.com/cozystack/cozystack/commit/87d62af92)). +* **System PostgreSQL**: the Keycloak, Harbor, Grafana, Alerta and SeaweedFS databases move to 17.12; replicas roll first, then the primary restarts in place or fails over to a replica, with an interruption of a few minutes per database (#5403). See the SeaweedFS metadata database restart note below. +* **Monitoring web UI login**: a monitoring web UI gets login credentials of its own after the upgrade, shown to tenants as a separate Secret. +* **Sign in again**: the upgrade resets sessions of that monitoring web UI, so its users have to sign in again. +* **Rotate credentials**: rotate the Grafana admin password and the API keys of that web UI issued before the upgrade, and revoke the old keys in that web UI, the upgrade does not change or revoke them. +* **Harbor**: core, jobservice and registry roll once during the upgrade, registry storage is untouched. +* **bucket**: a bucket release whose `storagePool` does not resolve to a valid class fails on its next upgrade, fix the value before upgrading. +* **Info application**: with OIDC enabled the tenant ServiceAccount token Secret is no longer created, clients that used that token need credentials of their own. +* **First Postgres backup after the upgrade restarts instances**: barman-cloud sidecar gets new resource limits, so the first platform backup of each Postgres application after the upgrade rolls its instances. That backup fails, the next one passes. To have the restart in a maintenance window, run a backup there and then one more. Postgres applications with their own backup destination (ObjectStore rendered by the chart) restart during the upgrade itself. +* **SeaweedFS metadata database restart**: the upgrade restarts PostgreSQL that holds SeaweedFS metadata. If this ends in failover to an asynchronous replica that is behind, S3 writes confirmed shortly before the failover can be lost. For Postgres applications that archive WAL to this S3 the lost write can be a WAL segment, so point-in-time recovery stops before it. Take a fresh base backup of Postgres applications after the upgrade. +* **MariaDB restores (known issue)**: a MariaDB RestoreJob restores the newest dump in the application's backup storage, not always the dump of the Backup it names, so restore before a newer backup of the same application is taken. The fix (#5227) is not in this release. * **tcp-balancer**: the pods roll once; `maxconn` now follows the memory limit (about 16 connections per MiB) (#5005). * **PostgreSQL backups**: a `backup.schedule` that already has five fields takes the standard meaning on upgrade, so `0 2 * * *` moves from hourly to daily (#5119). Each instance pod of a tenant with a CPU quota counts 750m more against `limits.cpu` because of the barman-cloud sidecar limit; check the headroom before instance pods are recreated (#5280). * **Tenant quotas**: after upgrading, updates to existing tenants may be rejected if their quota for extended resources or hugepages exceeds the parent's remaining budget, including updates that leave the quota unchanged (#5184).