Skip to content

add rootfs/initramfs/kernel metadata and signed amf#136

Open
bsandu-peridio wants to merge 4 commits intomainfrom
beni/kos
Open

add rootfs/initramfs/kernel metadata and signed amf#136
bsandu-peridio wants to merge 4 commits intomainfrom
beni/kos

Conversation

@bsandu-peridio
Copy link
Copy Markdown
Contributor

No description provided.

Manifest will now have rootfs/initramfs metadata in the following format:

{
  "manifest_version": 2,
  "id": "<uuid>",
  "built_at": "...",
  "runtime": { "name": "kos-bootloader", "version": "..." },
  "rootfs":    { "version": "<VERSION_ID>", "image_id": "<uuidv5>", "sha256": "..." },
  "initramfs": { "version": "<VERSION_ID>", "image_id": "<uuidv5>", "sha256": "..." },
  "extensions": [ ... ],
  "os_bundle":  { ... }
}

Signed-off-by: Beniamin Sandu <b.sandu@peridio.com>
This is similar to the rootfs/initramfs metadata from previous commit,
manifest will now be:

{
  "manifest_version": 2,
  "id": "<uuid>",
  "built_at": "...",
  "runtime": { "name": "kos-bootloader", "version": "..." },
  "rootfs":    { "version": "<VERSION_ID>", "image_id": "<uuidv5>", "sha256": "..." },
  "initramfs": { "version": "<VERSION_ID>", "image_id": "<uuidv5>", "sha256": "..." },
  "kernel":    { "version": "<VERSION_ID>", "image_id": "<uuidv5>", "sha256": "..." },
  "extensions": [ ... ],
  "os_bundle":  { ... }
}

Signed-off-by: Beniamin Sandu <b.sandu@peridio.com>
The options get propagated similar to extensions, which allows
us to wrap them into kabs and sign with the same keyset.

Signed-off-by: Beniamin Sandu <b.sandu@peridio.com>
The signed AMF now carries a meta.auth block with the SHA256-RSA signature
over the meta-stripped canonical JSON, and the full leaf-first certificate
chain as base64-encoded DER. These are the same primitives and same keyset
used to sign KABs.

Signed-off-by: Beniamin Sandu <b.sandu@peridio.com>
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.

1 participant