feat: BT_GPGKEY_ALSO adds a second signature (decision 0055) #24
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/buildtasks!24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/images-key-dual-sign"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step 4 of Keel Linux handbook decision 0055 (images key). Every verifier must trust the images key before an image artifact is signed with it alone. Until then main and images both sign, in 1 file.
What changes
bt-aplinfoandaplinfo_sign: each key inBT_GPGKEY_ALSO(split by spaces) adds its signature toaplinfo.dat.asc.generate-signature, and sobt-layer: each key inBT_GPGKEY_ALSOadds its signature to the.hashfile. The signed text names each extra key by fingerprint and user id. After signing, each key must have a VALIDSIG (sig_validsig_primaries), or the hash file is removed.BT_GPGKEY_ALSO, the output does not change. The TurnKey reference text stays byte for byte (test 12).keel-release(Keel-Linux/apt) givesbt-aplinfono key and clearsBT_GPGKEY, and signs the published files itself (Keel-Linux/apt#30). This change covers a build that signs with buildtasks directly.Tests
tests/aplinfo: 2 keys give 1.ascwith 2 signature packets; gpgv and sqv with each public key alone accept it; a bad second key fails;bt-aplinfowithBT_GPGKEY_ALSO.tests/signature: the hash file names the second key; 2 VALIDSIG lines; each key alone verifies; an unknown or public-only extra key leaves no hash file.a171806ec4c8b2aa681f