Skip to content

sysupdate: Support alternative signature methods #32819

Closed

Description

@DemiMarie

Component

No response

Is your feature request related to a problem? Please describe

systemd-sysupdate currently uses GnuPG for signature verification of downloaded files. This is annoying because GnuPG has extra attack surface that isn’t needed here. Metadata can and should be provided included in the signed hashes file.

Describe the solution you'd like

Support for ed25519 signatures.

Describe alternatives you've considered

None

The systemd version you checked that didn't have the feature you are asking for

No response

Activity

  1. added
    RFE 🎁
    on May 14, 2024
  2. poettering commented on May 15, 2024

    @poettering
    Member

    yeah, sounds great. has been on the todo list for a while. either something with pkcs7 or maybe something compatible with openbsd signify would be great.

    Patches welcome!

  3. DemiMarie commented on May 15, 2024

    @DemiMarie
    Author

    I don’t think I will be able to get around to this anytime soon, unfortunately.

    PKCS#7 is roughly as bad as OpenPGP in terms of parsing requirements. It happens that systemd-sysupdate needs to parse untrusted ASN.1 for HTTPS downloads to work, but ideally the download would happen in a sandbox, whereas the signature check must be outside of that sandbox. Also, I would like to see systemd-sysupdate eventually use rustls’s OpenSSL compatibility layer.

    OpenSSH signatures (as generated by ssh-keygen -Y) would be another option. They do require nontrivial parsing, but the format is much simpler than ASN.1 or OpenPGP, and OpenSSH is known for its high code quality.

    Another consideration is that images should be verified before being decompressed. Since images can be very large, this requires being able to verify them incrementally. signify(1) supports this by having a list of hashes (hex encoded, newline separated, and signed with ed25519) as a comment in the gzip header. If one can assume that a 1MiB chunk can fit in memory and that binary SHA512/SHA-3/Blake2b hashes are used, this means that a 64GiB compressed image takes 216 chunks, or 2MiB of hashes. More complex schemes are possible, but a system needing 64GiB OS images to be downloaded yet not having 2MiB of free RAM does not seem realistic to me 1, and less code means less attack surface.

    Footnotes

    1. There may be other applications where tebibyte-sized images are worth supporting. I just don’t think this is one of those applications. ↩

  4. added 15 commits that reference this issue on Oct 28, 2026
    28a642c
    1b3480a
    b390074
    7f1d0fd
    328e856
    afe36ed
    3ff56e3
    fd3748c
    e84c196
    52ee9d5
    c056c77
    4c4d605
    0fb3a04
    c547c83
    b3edc70
  5. added a commit that references this issue on Nov 5, 2026
    27281f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions