Repository navigation
Publish a multi-arch, signed, and attested GHCR image - #436
Merged
Merged
Conversation
The publish job builds linux/amd64 and linux/arm64, signs the digest with keyless cosign, and attaches a vulnerability attestation whose predicate matches the sandbox admission policy.
Object spread already ignores a missing scanner result, and the linter rejects the empty fallback.
GHCR rejects the mixed-case repository path, so the publish job now
sets IMAGE from ${GITHUB_REPOSITORY,,}. Fulcio keeps Sagax in the
certificate SAN, and Kyverno now accepts only docker.yml on main or
on a tag.
Kyverno now matches the certificate with subjectRegExp, anchored to docker.yml on main or a v* tag and keeping Sagax. Publish stays on those same refs.
A branch workflow_dispatch builds, signs, and attests the same way as publish, but only to ghcr.io/<owner>/sagax-signing-test:pr436, then verifies that certificate and the vulnerability attestation.
workflow_dispatch stays the way to run the proof. This token cannot create that event, so a push of this branch starts the same job.
The first proof run built both platforms and stopped at critical=6 high=253, which is what publish does. The proof job keeps those counts in the attestation and still signs, so the certificate can be checked.
3 of 5 tasks
A branch workflow_dispatch runs the same build, sign, and attest steps against the test package. Publish stays on main and v* tags. The workflow comment names the sandbox chart without its directory.
Bring in the term-guard runner fix and the shard 2 test fix.
The proof trigger is a branch dispatch. The test checks that shape without pinning one ref.
The digest is pushed to a staging package first. The scan, the signature, and the vulnerability attestation run there. The production package receives the image only when that copy succeeds.
Keep the staging promotion and take the engine-set image check.
The push credential cannot create workflow_dispatch. A pull request job asks the Actions token to dispatch this workflow on the head ref.
The branch dispatch is already queued. The pull request job would request another proof on every later change.
jencryzthers
marked this pull request as ready for review
October 14, 2026 09:07
This was referenced Oct 14, 2026
jencryzthers
added a commit
that referenced
this pull request
Oct 14, 2026
## Quoi Bump de version, comme #421 pour 0.5.1 : - `package.json` : `forkVersion` 0.5.2 - `ios/project.yml` : `MARKETING_VERSION` 0.5.2 (même version que le desktop), `CURRENT_PROJECT_VERSION` 30, sur les quatre cibles - `docs/releases/0.5.2.md` : notes complètes FR et EN (affichées dans l'app avant et après la mise à jour), qui complètent celles de #458 avec tout ce qui est entré depuis 0.5.1 : voix (#427, #435, #422/#424, #450, #451, #458), démarrage serveur (#433, #460), approbations (#455), modèles (#462, #466), sandboxes Kubernetes (#463, #465), image Docker (#436, #444, #456), sécurité (#445), interface (#423, #425, #448, #454, #461) - `src/lib/bundled-release-notes.test.ts` : vérifie les nouvelles entrées NE PAS fusionner sans le GO de JC : la fusion sur main (changement de `package.json`) lance `release.yml`. ## Prérequis avant la release - Créer le secret de dépôt `TRIVYIGNORE_PRIVATE` (#456) : absent ou vide, `docker.yml` échoue fermé sur le tag. ## Tests locaux (candidat, Node 26.11, macOS) - `pnpm test:unit` : 8 shards, 1474 fichiers, exit 0 - `pnpm exec vitest run src/lib/bundled-release-notes.test.ts` : exit 0 - `pnpm test:shards` (tous les groupes) lancé avant #466 : exit 1. Les échecs déterministes sont corrigés par #466 ; restent des e2e qui passent seuls (charge des 8 shards) et `server/codex-review.e2e.test.ts`, qui échoue sur ce Mac aussi au tag `pulsa-v0.5.1` (Node 24 et 26). - Tests Swift non lancés. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Jean-Christophe Proulx <jencryzthers@Jean-Christophes-Macbook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The
publish to GHCRjob buildslinux/amd64andlinux/arm64. The digest is pushed to a staging package first. The production package is not written until the scan, the signature, and the vulnerability attestation have succeeded..github/workflows/docker.ymllines 241-242:IMAGEis the lowercase production name (ghcr.io/<owner>/sagax). The job does not setIMAGEfrom${{ github.repository }}. Line 276 pushes by digest toSTAGINGonly:Trivy scans
${STAGING}@${DIGEST}. The zero critical/high gate runs next. Only then:Promotion is
cosign copyof that digest onto the first production tag (line 326), which copies the manifest, the signature, and the attestation. Further tags point at the same digest. A failed scan does not sign and does not promote.Admission uses an anchored
subjectRegExp(sandbox chartvalues.yamlline 114) fordocker.ymlonrefs/heads/mainorrefs/tags/v*, keepingSagax. Publish still runs only on those refs. Nov*tag was created.signing proofrepeats the build, sign, and attest steps and pushes onlyghcr.io/<owner>/sagax-signing-test:pr436. It runs when this workflow is dispatched on a branch. It then runscosign verifyandcosign verify-attestation --type vulnagainst the certificate for that ref, anddocker buildx imagetools inspectfor both platforms. A branch dispatch does not publish.Policy match
Sandbox chart
values.yamllines 110-114:Sandbox chart
templates/admission.yamllines 137-139:Predicate type
https://cosign.sigstore.dev/attestation/vuln/v1(same file, lines 140-149). Conditions:scanner.result.Summary.CriticalandSummary.HighLessThanOrEquals0.Preuve
Image name
.github/workflows/docker.ymlline 241:Subject
Sandbox chart
values.yamlline 114 is the anchoredsubjectRegExpquoted above.Signing proof
Event:
workflow_dispatchon a branch.signing proofsucceeded.publish to GHCRwas skipped. Nov*tag was created. The push credential cannot createworkflow_dispatch(HTTP 403,actions=write); a one-shot pull-request job asked the Actions token to dispatch this workflow, and that job was removed in the head commit. The signing-proof steps in the dispatched commit and in the head are the same.Signed digest:
Tag:
<registry>/<owner>/sagax-signing-test:pr436Certificate identity (the step asserted it equals
https://github.com/${GITHUB_WORKFLOW_REF}):cosign verify(issuerhttps://token.actions.githubusercontent.com, identity above) printed:[{"critical":{"identity":{"docker-reference":"<registry>/<owner>/sagax-signing-test@sha256:e67286424ff41cd2bb24ac7c0778ccaa1cd54d43227064edfd89db13a5d0435d"},"image":{"docker-manifest-digest":"sha256:e67286424ff41cd2bb24ac7c0778ccaa1cd54d43227064edfd89db13a5d0435d"},"type":"https://sigstore.dev/cosign/sign/v1"},"optional":{}},{"critical":{"identity":{"docker-reference":"<registry>/<owner>/sagax-signing-test@sha256:e67286424ff41cd2bb24ac7c0778ccaa1cd54d43227064edfd89db13a5d0435d"},"image":{"docker-manifest-digest":"sha256:e67286424ff41cd2bb24ac7c0778ccaa1cd54d43227064edfd89db13a5d0435d"},"type":"https://cosign.sigstore.dev/attestation/vuln/v1"},"optional":{}}]cosign verify-attestation --type vuln(same identity and issuer) printed the in-toto statement, then the same three checks.docker buildx imagetools inspecton:pr436and on the digest:linux/amd64sha256:907e09a8718eaeeca6b4699ea13ac228bf783fa5d6d2bbc0f092657453c0761dlinux/arm64sha256:56fcc47dc32e497ac6cfcb2429bc7b307a24502b61c721eb0f9929206fdc07eeunknown/unknownentries, bothattestation-manifest(provenance), one per platformThe scan gate printed
vulnerability attestation summary: critical=6 high=253and exited 1. On the proof job only, that step iscontinue-on-error, so the certificate and the vuln predicate (with those counts) were still produced. Publish does not continue: the same counts stop the production job beforecosign sign, and therefore before promotion. The image CVE reduction is #444.Unit tests
pnpm exec vitest run scripts/production-image.test.mjs: 4 tests passed. The pre-push hook passed lint, typecheck, and i18n:check.Checklist
pnpm lintandpnpm typecheckpassed in the pre-push hook. The fullpnpm testsuite was not run.scripts/production-image.test.mjs.dist-server/edits.shell: true/ cmd.exe string-building.