Skip to content

Parallelize image push, verification, and tagging in sign_and_push - #2244

Merged
loosebazooka merged 1 commit into
mainfrom
parallel-sign-and-push
Nov 9, 2026
Merged

loosebazooka merged 1 commit into
mainfrom
parallel-sign-and-push

Conversation

@loosebazooka

Copy link
Copy Markdown
Member

Replace the generated sign_and_push bash script with a stdlib-only Go runner wrapping the toolchain crane and cosign binaries in three phases:

  • push images and run offline cosign verification concurrently (--jobs, default 16) against a single initialized trusted_root.json
  • attest SPDX SBOMs and sign unsigned images sequentially to avoid Fulcio/Rekor rate limits and concurrent TUF/signature mutations
  • apply tags concurrently only after all pushes and signatures succeed
  • attach image_aspect directly to sign_and_push targets and read digests from OCI index.json at runtime, dropping intermediate filegroup, oci_image_spdx, and stamp-sensitive .digest targets

Replace the generated sign_and_push bash script with a stdlib-only Go
runner wrapping the toolchain crane and cosign binaries in three phases:

- push images and run offline cosign verification concurrently (--jobs,
  default 16) against a single initialized trusted_root.json
- attest SPDX SBOMs and sign unsigned images sequentially to avoid
  Fulcio/Rekor rate limits and concurrent TUF/signature mutations
- apply tags concurrently only after all pushes and signatures succeed
- attach image_aspect directly to sign_and_push targets and read digests
  from OCI index.json at runtime, dropping intermediate filegroup,
  oci_image_spdx, and stamp-sensitive .digest targets

Signed-off-by: Appu <appu@google.com>
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🌳 🔧 Config Check

This pull request has not modified the root BUILD

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🌳 🔄 Image Check
This pull request doesn't make any changes to the images. 👍
You can check the details in the report here

@loosebazooka
loosebazooka merged commit f1470f9 into main Nov 9, 2026
19 checks passed
@loosebazooka
loosebazooka deleted the parallel-sign-and-push branch November 9, 2026 22:01
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.

2 participants