feat: add native offline signing and media handoff #30

Merged
ams-tech merged 2 commits from codex/native-offline-handoff into codex/native-offline-candidate 2026-09-16 14:51:48 -04:00
ams-tech commented 2026-09-16 14:24:24 -04:00 (Migrated from github.com)

The native offline candidate needs its own signing scope and exact NVMe media package before a physical attempt. Existing provisioner/verifier grants do not cover it. This PR adds one-image native authorization using the existing gate, signature verifier and authenticated receipt machinery, plus public constructors for the verified outer FAT, GPT/payload spans and corruption/readback plan.

Stacked on #29; review this diff against codex/native-offline-candidate. The device-secret investigation is independent in #28.

The signing input binds exact candidate/review bytes, source, customer-key encoding, root hash and PARTUUIDs. Native approvals reject provisioner/verifier scopes and EEPROM/recovery roles. Media preparation creates regular files only and preserves the existing Pi-local NVMe selector. The runbook describes fresh inventory, preimages, restoration, network isolation, cold boots, positive controls and two independent integrity cases.

Validation:

  • Focused Go tests pass, including scope separation, malformed/rebound inputs, approvals, authenticated receipts and finalization failures.
  • The native Nix handoff fixture passes: disposable key/receipts, real FAT/ext4/verity/GPT files, disk reconstruction and independent span/FAT/GPT/corruption readback.
  • Changed documentation links and whitespace checks pass.
  • Required local software checks pass: formatting, all Go tests, UI and inert deployment checks. VCS stamping was disabled for the temporary worktree's Go run after two existing import-boundary tests encountered Git metadata errors; their assertions then pass.
  • All required CI passes: full x86 Nix checks, native ARM checks/operator packages, formatting/deployment checks, and hardware/VM derivation identities. Native ARM built and validated the actual candidate signing plan; both architectures built the configured native signing runtime.

No physical signing, device writes, EEPROM/OTP/secret operations, enrollment or hardware evidence are performed. Execution authority and physical boot/mechanism observations remain pending. This does not complete hardware qualification or Slice B. Do not merge as part of this task.

The native offline candidate needs its own signing scope and exact NVMe media package before a physical attempt. Existing provisioner/verifier grants do not cover it. This PR adds one-image native authorization using the existing gate, signature verifier and authenticated receipt machinery, plus public constructors for the verified outer FAT, GPT/payload spans and corruption/readback plan. Stacked on #29; review this diff against `codex/native-offline-candidate`. The device-secret investigation is independent in #28. The signing input binds exact candidate/review bytes, source, customer-key encoding, root hash and PARTUUIDs. Native approvals reject provisioner/verifier scopes and EEPROM/recovery roles. Media preparation creates regular files only and preserves the existing Pi-local NVMe selector. The runbook describes fresh inventory, preimages, restoration, network isolation, cold boots, positive controls and two independent integrity cases. Validation: - Focused Go tests pass, including scope separation, malformed/rebound inputs, approvals, authenticated receipts and finalization failures. - The native Nix handoff fixture passes: disposable key/receipts, real FAT/ext4/verity/GPT files, disk reconstruction and independent span/FAT/GPT/corruption readback. - Changed documentation links and whitespace checks pass. - Required local software checks pass: formatting, all Go tests, UI and inert deployment checks. VCS stamping was disabled for the temporary worktree's Go run after two existing import-boundary tests encountered Git metadata errors; their assertions then pass. - All required CI passes: full x86 Nix checks, native ARM checks/operator packages, formatting/deployment checks, and hardware/VM derivation identities. Native ARM built and validated the actual candidate signing plan; both architectures built the configured native signing runtime. No physical signing, device writes, EEPROM/OTP/secret operations, enrollment or hardware evidence are performed. Execution authority and physical boot/mechanism observations remain pending. This does not complete hardware qualification or Slice B. Do not merge as part of this task.
Sign in to join this conversation.
No description provided.