Repository navigation
Conversation
|
🌿 Preview your docs: https://nvidia-preview-pr-5451.docs.buildwithfern.com/openshell |
|
This pull request has had no activity for 14 days and is now marked stale. |
759dec1 to
d2b0aaf
Compare
8bb357c to
0da141c
Compare
Release Dev and Pre-release both write the commit SHA tag in the CI registry, so promotion by that tag could publish the build of another run. Promote the digest recorded in the run's own image archive instead. Signed-off-by: Adrien Langou <alangou@nvidia.com>
Release Dev, Pre-release, and Release sign what they publish to Quay with keyless cosign, under the GitHub OIDC identity of the publishing workflow. A sign-oci-artifacts job signs the image digests it reads from the build archives of its run and the chart digests that helm push printed. It then requires a valid signature for the channel on every published tag. It never resolves a tag to find a digest to sign, so an artifact the run did not build cannot obtain a signature. The job is separate from the publishing jobs so that "Re-run failed jobs" repeats only the signing. GitHub Release assets wait for it. Pin Helm because the chart digests are read from the stdout of helm push, and Helm before 4.3 prints them on stderr. Signed-off-by: Adrien Langou <alangou@nvidia.com>
Give the cosign verify command for each release channel, and say how to repair a failed sign-oci-artifacts job. Signed-off-by: Adrien Langou <alangou@nvidia.com>
0da141c to
be17cff
Compare
|
Summary This looks sound. It signs digests the run built itself, never a registry tag, and the verify step checks each published tag against a per-channel policy that pins the repository. Promoting by archive digest also closes the race on the shared SHA tag. I have two functional comments and two non-blocking nits. I only read the diff and did not run the script or the workflows. 1. The The 2. A transient The comment says the skip is for a digest the registry no longer has. But any non-zero exit from 3. Nit: the two Both jobs use the same environment, permissions and steps. They differ only in 4. Nit: the verify flags are written in three places ( If the policy changes in the script but not in the docs, consumers will verify against a looser or stricter policy than CI enforces. A comment in the script header pointing at the docs section would help. Rollout The sign job now gates stable GitHub Release assets ( Smaller notes
|
Summary
Published OpenShell images and Helm charts carry no signature, so a consumer cannot tell a release build from anything else written to the registry. Release Dev, Pre-release, and Release now sign each image and chart digest with keyless cosign, using the GitHub OIDC identity of the publishing workflow.
A run signs only the digests of its own build and never resolves a registry tag to find a digest to sign. A run completes only when every image and chart tag it publishes has a valid signature for its channel.
Related Issue
None.
Changes
tasks/scripts/sign-oci-artifacts.showns every cosign call. It signs the image digests it reads from the build archives of the run and the chart digests thathelm pushprinted. Then it verifies every published tag against the policy of the channel. It never signs a tag, and it skips a digest that the registry no longer has.mainbranch. The identity alone is not enough: it names the workflow file, and any repository can call the reusablerelease-publish.yml.sign-oci-artifactsjob inrelease-dev.ymlandrelease-publish.ymlruns after the image and chart jobs. GitHub Release assets wait for it. The job is separate so that "Re-run failed jobs" repeats only the signing.release-helm-ocireports the digest Helm prints for each pushed chart, and pins Helm to v4.3.2 because earlier versions print it on stderr.docs/security/verify-image-contents.mdxgives thecosign verifycommand for each channel.CI.mdand the release captain skill say what to do when the sign job fails.Release Notes
Published images and OCI Helm charts are signed with cosign. Verify them with the commands in the "Verify Signatures" section of
docs/security/verify-image-contents.mdx. Artifacts published before this change carry no signature.Testing
cosignanddockerand real buildx archives in 34 scenarios: what it signs and verifies per channel, kept images and charts, a dev re-run after a later run moved the floating chart tags, unsigned tags, refused references, missing or corrupt archives, and transient failures.helm push(Helm v4.3.2) to a loopback registry, including a registry that returns crafted error text.0.1.10artifacts.releaseenvironment admits onlymainandv*tags, so the first Release Dev run after merge is the first real signature. Until then it is unverified that the Quay robot can push signature referrers, and that the organization's Actions policy allowssigstore/cosign-installer, which is new to this repository.Limits and follow-ups:
release-helm-oci.latestimage tag still moves before the signature exists.v*tags have no ruleset, and release tags are not checked formainancestry.Checklist