Skip to content

chore(ci): CVE watch base pins, helm-values-schema-json 2.6.1, PowerDNS tarball signatures - #57

Open
BaptGosse wants to merge 3 commits into
mainfrom
chore/ci-2026-11-followups
Open

BaptGosse wants to merge 3 commits into
mainfrom
chore/ci-2026-11-followups

Conversation

@BaptGosse

@BaptGosse BaptGosse commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Three follow-ups of the end-of-November update (#55), in one branch: the CVE watch stops requesting rebuilds that cannot fix anything, helm-values-schema-json 2.6.1, and an OpenPGP signature check on the PowerDNS tarballs.

CVE watch: OS packages pinned by the base image

The watch marked every fixable OS package of our images as rebuild and started the image workflow for the critical and high ones. nginx in taiga-front is pinned by its nginx-unprivileged base in /etc/apk/world (nginx=1.30.6-r1, installed from the nginx.org repository, which the image does not keep). apk upgrade leaves it alone, so the watch kept requesting rebuilds that could not fix it (#16).

  • For our Alpine images with a fixable OS package, cve-watch.py now reads /etc/apk/world from the image with docker create and docker cp, without running it. Trivy's package metadata has no world constraints, and Docker is already on the runner.
  • If the world entry allows none of the fixed versions, the issue says bump the base (`<base image>` pins `<entry>`). The base image is the last FROM of the Dockerfile, with ARG defaults and stage names resolved. These findings never trigger a rebuild. If our own Dockerfile writes the pin, the label is pull request (images/). If the file cannot be read, the watch falls back to the previous behaviour.
  • The issue layout is the same. The legend explains bump the base, and the workflow header, SECURITY.md and images/README.md describe the rule.
  • cve-watch.py now runs from a main() function so the tests can import it (most of the diff is that indentation change). On a fixture with stub helm/trivy/docker, the old and new scripts give the same report, state, rebuild and site files. The only differences are the legend and the pinned nginx row (bump the base instead of rebuild, and gone from the rebuild request).
  • Checked against the real image: /etc/apk/world of ghcr.io/unxwares/taiga-front:6.10.3 (amd64, read from its layers) contains nginx=1.30.6-r1 and parses as one pin. The unit tests use that file as their fixture.
  • New .github/scripts/tests/test_cve_watch.py (31 tests) covers world parsing, apk constraints, the base image of a Dockerfile, the labels, rebuild selection, reading through Docker, and the whole watch on a small repository. The Compatibility workflow runs it with the other script tests.

helm-values-schema-json 2.6.0 to 2.6.1

  • 2.6.1 keeps helm-docs description lines that contain -- (fix: keep helm-docs description lines containing -- losisin/helm-values-schema-json#422). The pin is 939f49d56af083bf7b70cbfbcbebd18b115caedb480c9a5780bf00e1e8cf622e, the same in the release checksum file and in the GitHub asset digest.
  • I regenerated every chart. Only charts/powerdns/values.schema.json changes: the backend.gmysql.verifyServerCertificate description gets back its --ssl-mode=PREFERRED line, which 2.6.0 dropped.
  • powerdns 2026.11.6 to 2026.11.7: one fixed entry ("values schema description fixed, no value changed"), containsSecurityUpdates: "false". No template, value or default changes.

PowerDNS tarball signatures

  • images/pdns-auth and images/pdns-recursor now also check the .asc signature of the release tarball (downloads.powerdns.com) with gpgv, using a binary keyring built from the committed powerdns-keyblock.asc. No keyboxd and no gpg daemon, as in images/bind9. The SHA-256 pins stay.
  • powerdns-keyblock.asc is https://powerdns.com/powerdns-keyblock.asc, byte for byte the same as the doc.powerdns.com copy the documentation links. Its four keys match the fingerprints in "Compiling PowerDNS" of the Authoritative and Recursor documentation (docs/common/tarball-pgp-keys.rst, unchanged between auth-5.1.7 and master):
    • FBAE0323821C7706A5CA151BDCF513FA7EED19F3 (Peter van Dijk)
    • D6300CABCBF469BBE392E503A208ED4F8AF58446 (Remi Gacogne)
    • 16E12866B7738C73976A57436FFC33439B0D04DF (Erik Winkels)
    • 990C3D0EAC7C275DC6B18436EACAB90B1963EC2B (Otto Moerbeek)
  • pdns 5.1.7 and pdns-recursor 5.4.9 are signed by the Erik Winkels key. I ran the same commands as the Dockerfile locally on the real tarballs: both signatures are good, and a modified tarball fails.
  • Tags unchanged (5.1.7, 5.4.9): this hardens the build, and the next rebuild picks it up. The image descriptions now say "built from the signed release tarball, rebuilt twice a week".

Compatibility

Nothing changes for chart users. powerdns 2026.11.7 changes one schema description only. No values are removed or renamed, and nothing is deprecated.

CI

Every PR workflow here filters on main, so the checks start once #55 is merged and this PR is retargeted. Local checks: script unit tests (76, ok), deprecations.py --base origin/release/2026-11-30 (0 errors), helm lint --strict charts/powerdns with each ci values file, generate-schemas.sh with 2.6.1 (no other diff).

helm-values-schema-json 2.6.1 keeps the helm-docs description lines that
contain "--" (losisin/helm-values-schema-json#422); 2.6.0 dropped them.
The release tarball is pinned to the sha256 of the release checksum file,
which matches the GitHub asset digest.

Regenerating every chart's values.schema.json changes only the powerdns
one: the backend.gmysql.verifyServerCertificate description gets its
`--ssl-mode=PREFERRED` line back. powerdns 2026.11.7 publishes it; no
value changed.
pdns-auth and pdns-recursor checked the release tarballs against a pinned
SHA-256 only. They now also check the .asc signature of each release
(downloads.powerdns.com) with gpgv and a binary keyring built from the
committed powerdns-keyblock.asc, without keyboxd or a gpg daemon, like
images/bind9. The SHA-256 pins stay.

powerdns-keyblock.asc is https://powerdns.com/powerdns-keyblock.asc,
identical to the doc.powerdns.com copy the documentation links. Its four
keys match the fingerprints of "Compiling PowerDNS" in the Authoritative
and Recursor documentation (docs/common/tarball-pgp-keys.rst):
FBAE0323821C7706A5CA151BDCF513FA7EED19F3 (Peter van Dijk),
D6300CABCBF469BBE392E503A208ED4F8AF58446 (Remi Gacogne),
16E12866B7738C73976A57436FFC33439B0D04DF (Erik Winkels),
990C3D0EAC7C275DC6B18436EACAB90B1963EC2B (Otto Moerbeek).
pdns 5.1.7 and pdns-recursor 5.4.9 are signed by the Erik Winkels key.

The tags stay 5.1.7 and 5.4.9: a build hardening, picked up by the next
rebuild.
The watch labelled every fixable OS package of our images "rebuild" and
started the image workflow for the critical and high ones. nginx in
taiga-front is pinned by its nginx-unprivileged base in /etc/apk/world
(nginx=1.30.6-r1, from the nginx.org repository the image does not
keep): `apk upgrade` keeps it, so the watch kept requesting rebuilds that
could not fix it.

For our Alpine images with a fixable OS package, the watch now reads
/etc/apk/world from the image (docker create and docker cp, without
running it; Trivy's package metadata has no world constraint). When the
world entry of the package allows none of the fixed versions, the issue
says "bump the base (`<base image>` pins `<entry>`)", the base image
being the last FROM of the Dockerfile, and the vulnerability is never a
rebuild trigger. A pin written in our own Dockerfile is a "pull request
(`images/`)". If the file cannot be read, the watch keeps the previous
behaviour (rebuild). The issue layout is unchanged; the legend gains the
new label.

cve-watch.py runs from a main() function so that the tests can import
it; its outputs are unchanged otherwise (same report, state, rebuild and
site files on a fixture, compared with the previous script).
.github/scripts/tests/test_cve_watch.py covers the world parsing, the
apk constraints, the base image of a Dockerfile, the labels, the rebuild
selection, the Docker read and the whole watch on a small repository;
the Compatibility workflow runs it with the other script tests.
@BaptGosse
BaptGosse changed the base branch from release/2026-11-30 to main November 30, 2026 14:15
@BaptGosse BaptGosse closed this Nov 30, 2026
@BaptGosse BaptGosse reopened this Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant