Sign updates

The os workflow signs SHA256SUMS with the SIGNING_KEY secret and publishes
SHA256SUMS.gpg next to it. systemd-sysupdate now verifies it (Verify=yes)
against import-pubring.pgp, so hosts only install updates we built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-14 22:43:54 +01:00
1 parent 607987ebbd
commit 92a21ae607
7 files changed
+21 -9

No files matched your search

@@ -1,8 +1,9 @@
# Updates the root filesystem: writes the next version to the unused root partition.
# Verify=no: updates are unsigned (no secrets in the repo); SHA256SUMS still checks each download.
# Verify=yes: SHA256SUMS.gpg must be signed by a key in /usr/lib/systemd/import-pubring.pgp, and
# SHA256SUMS checks each download.
[Transfer]
ProtectVersion=%A
Verify=no
Verify=yes
[Source]
Type=url-file
@@ -1,7 +1,7 @@
# Updates the root filesystem's dm-verity hashes, next to 10-root.transfer (see it for Verify=no).
# Updates the root filesystem's dm-verity hashes, next to 10-root.transfer (see it for Verify=yes).
[Transfer]
ProtectVersion=%A
Verify=no
Verify=yes
[Source]
Type=url-file
@@ -1,7 +1,7 @@
# Installs the next UKI, which systemd-boot boots by default. Verify=no: see 10-root.transfer.
# Installs the next UKI, which systemd-boot boots by default. Verify=yes: see 10-root.transfer.
[Transfer]
ProtectVersion=%A
Verify=no
Verify=yes
[Source]
Type=url-file