-
-
Notifications
You must be signed in to change notification settings - Fork 195
Description
A common paint point in Heads is that when any changes are made, it is difficult to tell if the changes are intentional or due to tampering.
In my opinion, the best solution to this is to eliminate the question. When intentional changes are made, sign them then as part of the update process.
It might be possible for Heads to include or offer integrations for common OSes. E.g. we could build packages for Debian-based, Fedora-based, etc. distributions that would know how to re-sign /boot after an update occurs. Potentially, this could be extended to root also for the root-hashing feature.
For Debian, it is possible to install apt/dpkg hooks that occur before or after dpkg invocations, package installation, etc. (one example: https://unix.stackexchange.com/questions/76294/hook-a-script-to-apt-get). Assuming other package managers offer similar functionality, we could probably export a Heads script and hook it at the appropriate place to integrate signing into the update process.
Alternative to #1599