Files
cozystack/packages
Andrey Kolkov 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 -->
2026-11-23 08:01:53 +07:00
..
2026-11-18 13:38:20 +03:00