Files
Abdurrahman Kaan DikeçandClaude Opus 5.5 9242037a4d OpenWrt rootfs: sha256sums counts only with its usign signature by the pinned 25.12 key
openwrt/build-rootfs.sh took the base tarball's hash from the release's sha256sums without checking that
file's signature, so whoever could change the download could change both. It now fetches sha256sums.sig as
well and checks it with tools/usign-verify.py (RFC 8032 Ed25519 in plain Python: no usign on the build host,
and macOS's LibreSSL cannot verify Ed25519 over a file) against the key pinned in openwrt/keys/usign:
b5043e70f9a75cde for OpenWrt 25.12 (git.openwrt.org/keyring.git), 467a35c14d7fbc5c for ImmortalWrt 25.12.
A release series without a pinned key, a missing or foreign signature, or a tarball not in the signed list
stops the build before docker imports anything.

tests/test_usign_verify.py: RFC 8032 vectors, the real 25.12.6 armsr/armv8 sha256sums and its signature
(and changed copies), and build-rootfs.sh in a scratch tree with curl and docker stubbed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-26 01:29:48 +03:00
..