ci: seal the official Kyverno CLI 1.17.1 over the current runner image (codewire#3821) #34
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/kyverno-leaf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seals the official Kyverno CLI 1.17.1 over the current runner image (v9,
sha256:6aec996c…) in one layer, for Codewire's Policy drift job (codewire#3821). SeeREADME.system-hz-kyverno.md.Why. Policy drift runs on the untrusted small pool. That pool's egress has no GitHub, so the job's download of the release fails on every pull request (codewire runs 45208 and 45211). Widening that egress, or moving the OIDC-capable job to the large pool, was ruled out. Harbor can't serve the file to a credential-free job either. So the CLI goes into the image, as supplychain did.
What.
/usr/local/libexec/kyverno-1.17.1: root-owned,0755, on noPATH. No other job sees a change, and a later version goes beside it./usr/local/share/licenses/kyverno-1.17.1/.PATHand every other parent byte are unchanged.Input.
kyverno-inputs.jsonlists the one archive. Its SHA-256d0c0f52e…b1d7a3matches the release'schecksums.txt(e3e2c5fc…) and GitHub's asset digest.cosign verify-blobof its keyless signature passes, with the certificate SAN set tohttps://github.com/kyverno/kyverno/.github/workflows/release.yaml@refs/tags/v1.17.1.Dry run with infra#2496's
forgejo-runner-image(it adds thekyverno_inputsorigin), at this branch's head:credentials_read: false,registry_written: false;sha256:81a17d48…(this head's build only; the merged commit gets its own build);The installed checks are:
kyvernois offPATH, andkyverno version;kyverno applythat admits a compliant Pod (exit 0) and refuses a non-compliant one (exit 1), in a container with no network;node --version;After merge:
promoteunder the standing image approval (noel/infra#2452).Reviewed. One change before merge, otherwise approve.
Change: the diff commits
__pycache__/verify-installed-system-hz-kyverno.cpython-314.pyc, a bytecode artifact of running the verifier locally. Please drop it. Add__pycache__/to a.gitignore(the repository has none), or run the verifier withpython3 -B.The rest looks right:
--network=noneand a tmpfs/tmpover the v9 digest.LICENSE kyverno), then the extracted binary's and license's own SHA-256s.0755, offPATH, at a versioned path, and asserts nothing namedkyvernois onPATHbefore or after.After merge and promotion I'll recycle onto v10 with the 05:00Z nightly recycle, unless the orchestrator wants it sooner, and time one pool's preload and boot against v9 for the adoption record.