containerz: add signed bundle transfer to Deploy RPC - #351
Open
sumitk31 wants to merge 4 commits into
Open
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Extend DeployRequest to stream Sigstore cosign bundles alongside container images for offline signature verification during image onboarding. - Add cosign_bundle_size to ImageTransfer - Add cosign_bundle_content and CosignBundleTransferEnd to DeployRequest - Add CosignBundleTransferReady/Progress to DeployResponse - Bump gnoi_version to 0.3.0
Address review feedback: keep the signing mechanism opaque in the Deploy RPC by using signed_bundle_* field and message names instead of cosign-specific naming.
Run regenerate-files.sh (bazel 8.4.2) to update containerz.pb.go and containerz_grpc.pb.go after signed_bundle_* proto rename.
sumitk31
force-pushed
the
docker_cosign
branch
2 times, most recently
from
August 4, 2026 11:53
45b2757 to
472a38f
Compare
Match the protoc version stamp on upstream main for containerz stubs only, without bumping the repo-wide protobuf dependency.
nburnwalcisco
approved these changes
Aug 14, 2026
nburnwalcisco
left a comment
There was a problem hiding this comment.
Testing if have permission to approve.
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.
Summary
Extend the Containerz Deploy RPC to transfer an opaque signed bundle alongside the container image tarball. This enables offline/air-gapped image onboarding where the target verifies a signature before loading the image.
The proto intentionally does not name a specific signing tool (cosign, notary, etc.). It defines only what is transferred; how the target verifies the bundle remains implementation-specific.
Changes
signed_bundle_sizeonImageTransfersigned_bundle_contentandSignedBundleTransferEndonDeployRequestSignedBundleTransferReady/SignedBundleTransferProgressonDeployResponsegnoi_versionbumped to0.3.0Deploy flow (when
signed_bundle_size > 0)There is one terminal success for the entire Deploy operation:
ImageTransferSuccess. The signed bundle phase uses Ready / Progress / End messages only (no separate bundle success message). Failures at any stage are reported viaimage_transfer_error.Phases
ImageTransferImageTransferReadycontent(chunks)ImageTransferProgressImageTransferEndSignedBundleTransferReadysigned_bundle_content(chunks)SignedBundleTransferProgressSignedBundleTransferEndImageTransferSuccessorimage_transfer_errorWhen
signed_bundle_size = 0, behavior is unchanged (backward compatible): image transfer proceeds directly fromImageTransferEndto verify/load andImageTransferSuccess.Call flow diagram
sequenceDiagram participant Client participant Server Note over Client,Server: Phase 1 — Image transfer Client->>Server: ImageTransfer (image_size, signed_bundle_size) Server->>Client: ImageTransferReady (chunk_size) loop Image chunks Client->>Server: content Server->>Client: ImageTransferProgress (bytes_received) end Client->>Server: ImageTransferEnd Note over Client,Server: Phase 2 — Signed bundle transfer Server->>Client: SignedBundleTransferReady (chunk_size) loop Signed bundle chunks Client->>Server: signed_bundle_content Server->>Client: SignedBundleTransferProgress (bytes_received) end Client->>Server: SignedBundleTransferEnd Note over Client,Server: Phase 3 — Verify + load (server-side) Server->>Server: Verify signed bundle against image Server->>Server: Load image into registry / plugin store alt Success Server->>Client: ImageTransferSuccess (name, tag, image_size) else Failure (verify or load) Server->>Client: image_transfer_error endMotivation
signed_bundle_*naming keeps the RPC opaque to the verifier implementationImplementation notes
containerz(containerz.pb.go,containerz_grpc.pb.go)Test plan
signed_bundle_size = 0)regenerate-files.sh