Repository navigation
release: omit builder SSH keys from signed initramfs - #75
Conversation
A development initramfs includes the build host public keys so the maintainer can recover over USB. Those keys would give the builder root access in every distributed image. Add an explicit release build mode that leaves them out, and reject any signed bundle whose packed initramfs still contains SSH credentials. A real tegu release-mode initramfs differed from the development archive only by the removed root SSH directory. The signed bundle guard rejected the development archive and a corrupt archive, and the Linux integration and full repository tests passed.
|
Thanks, @h4rkl. This is the right shape: the development build keeps the builder's keys, One thing before I merge, and two notes:
I'll give the squash an area prefix ( |
Keep both guards in tools/make-bundle: main's root image checks (derekross#192), then the initramfs key check. tests/make-bundle-keys gives its fixture root image the MANIFEST that main now requires, and tests/all keeps main's list with tests/make-bundle-keys added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Section 11 builds the initramfs with --release before the images, 5.2 says the flag and the make-bundle refusal exist now, and the section 2 row for the builder's keys moves to done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. Merged main in (242dc91): |
|
Thanks, h4rkl. The merge of main keeps both guards in the right order, the fixture has the |
…signed initramfs (derekross#75) A development initramfs packs the builder's ~/.ssh/*.pub as root's authorized_keys for USB recovery. In a distributed, signed image that is a remotely usable credential for the builder (the Arch root never had them, and the USB console is root for anyone with the cable either way). bin/omamobile initramfs --release leaves root's .ssh (and any staged dropbear host keys) out; the development build is unchanged. tools/make-bundle refuses to sign a bundle whose initramfs still holds SSH credentials or doesn't unpack; --unsigned bundles are unchanged. RELEASES §11 builds the initramfs with --release before the images, and §2 and §5.2 say so. tests/make-bundle-keys covers keyed, keyless and corrupt archives.
Why
bin/omamobile initramfscurrently packs the builder's SSH public keys into every boot image. That is useful during device development but would grant the builder root access to every distributed installation. This is a release blocker for tegu and any later device.Change
bin/omamobile initramfs --releaseomits root SSH keys and any staged Dropbear host keys. The existing development invocation keeps USB recovery access.tools/make-bundlerefuses to sign a bundle if the packed initramfs contains SSH credentials or is corrupt. An explicitly unsigned development bundle retains its current behavior.Verification
tests/allandtools/pr-checkpass on Linux.This is kept separate from the tegu device PR #74 because the release guard applies to every device.