fix(helm): move the chart's own version with the release, not just appVersion (#1061)

`v13.0.0` bumped `appVersion` to `v13.0.0` and left `version` at 5.9.2. Every
release before it moved both — `appVersion` to the application tag, `version`
up the chart's own ladder, 5.9.0 → 5.9.1 → 5.9.2 — so `helm push` republished
an existing chart version pointing at a different application, and
`ghcr.io/beenuar/charts/aisoc:5.9.2` now resolves to `v12.3.2` or `v13.0.0`
depending on when it was pulled. A chart version is immutable by convention
and that convention is the only thing protecting it.

Nothing in CI noticed, and the reason is worth recording: the one gate that
reads `Chart.yaml` is `scripts/check_published_images.py`, and it reads
`appVersion` because that is the field which becomes an image tag when a
`tag:` in values.yaml is left empty. `version` becomes the chart's own
coordinate, which that gate has no reason to resolve — so the file was
covered in the direction that affects image pulls and uncovered in the
direction that affects chart pulls. A gate asserting the chart version moves
whenever anything under `infra/helm/` does belongs here and is deliberately
not bundled into this commit: it needs to read release history to know what
"moves" means, which is more than a one-line addition to an authorization
change's release.

6.0.0 rather than 5.10.0 because the application this chart installs has a
breaking change — 75 API routes now require a permission they did not, and
`soc_analyst`, `soc_lead` and `threat_hunter` lose access to several
surfaces. A chart consumer running `helm upgrade` gets that whatever the
templates did or did not do, and the chart version is the only number they
see.

The already-overwritten 5.9.2 cannot be un-published. This makes the
coordinate honest from here on.

Signed-off-by: Beenu Arora <beenu.a.arora@gmail.com>
This commit is contained in:
Beenu Arora
2026-09-29 17:25:25 -07:00
committed by GitHub
parent 2db6ce731c
commit 9d3225c617
2 changed files with 13 additions and 1 deletions
+4
View File
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- **The Helm chart's own `version` did not move with v13.0.0, so `helm push` republished an existing chart version pointing at a different application.** Every release before it bumped both coordinates — `appVersion` to the application tag and `version` up the chart's own ladder (5.9.0 → 5.9.1 → 5.9.2) — and v13.0.0 bumped only `appVersion`, so `ghcr.io/beenuar/charts/aisoc:5.9.2` now means `v12.3.2` or `v13.0.0` depending on when it was pulled. A chart version is immutable by convention and nothing in CI enforces that it moves, which is why this was invisible: `scripts/check_published_images.py` reads `appVersion` because that is what becomes an image tag, and never looks at `version`. The chart is now **6.0.0** — a major rather than a minor, because the application it installs has a breaking change and a chart consumer running `helm upgrade` gets it whatever the templates did. The already-overwritten 5.9.2 cannot be un-published; this makes the coordinate honest from here on.
## [13.0.0] - 2026-09-29
### BREAKING
+9 -1
View File
@@ -2,7 +2,15 @@ apiVersion: v2
name: aisoc
description: AiSOC - the open-source, AI-native Security Operations Center
type: application
version: 5.9.2
# The *chart's* own version, independent of `appVersion` below, and it has to
# move whenever anything in this directory does. v13.0.0 bumped `appVersion`
# and left this at 5.9.2, so `helm push` republished an existing chart version
# pointing at a different application — one immutable-by-convention coordinate
# meaning two things depending on when it was pulled. A major here rather than
# a minor because the application this chart installs has a breaking change
# (see the v13.0.0 BREAKING section): a chart consumer running `helm upgrade`
# gets it, whatever the templates did or did not do.
version: 6.0.0
# Used as the image tag wherever a `tag:` in values.yaml is left empty, so
# it has to be a tag the registry actually holds — it read "5.2.0", which
# exists for no image, so every pod of a default install would have gone to