Skip to main content
Rugix Bakery 0.9.6 is here: Build rules for custom image pipelines and verified boot for EFI and Raspberry Pi. Read the release post.
Documentation

core/prepare-bundle-signature

Extract the metadata that a Rugix bundle signature covers.

Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.

Extract the metadata that a Rugix bundle signature covers.

Inputs

bundle

Kind: file

Rugix update bundle to sign.

Outputs

metadata

Kind: file

Signed metadata containing the bundle header hash.

Execution

Environment

Rugix Bakery

Source epoch

Ignored

Output cache

Allowed

Behavior

Extract the signed metadata of a Rugix update bundle. The metadata contains the bundle header hash, which covers all payload hashes. A CMS signature over this metadata with encapsulated content authenticates the bundle. This rule matches rugix-bundler signatures prepare.

core/sign-bundle-rugix combines this rule with a signer and core/attach-bundle-signature.

Example

uses = "core/prepare-bundle-signature"
inputs.bundle = { path = "release/update.rugixb" }

Save the invocation as build-rule.toml and run ./run-bakery bake rule build-rule.toml build/result.