WIP: Add Debian (.deb) package signing
What
Add Debian package signing, via methodology describe in debsigs
documentation
https://gitlab.com/debsigs/debsigs
How
Addition of a sign_deb_file
function to Packager::DEB
, after create_deb_file
. The essential concepts of what is required to sign a .deb
with with a type: origin
signature is delineated per the link to debsigs
above. There is no current functionailty built into dpkg scripting akin to rpm --addsign
. Since the .deb
file format is simple, we extract the contents of the archvice (ar x
), sign the concatenated (specifically ordered) contents, and then append the created signature to the archive (ar rc debfile _gpgorigin
).
These steps could have been accomplished in pure Ruby with the addition of several modules (GPGME, libarchive) except for two concerns: age & maintenance, fakeroot
requirements.
Tests have been added to attempt to cover the behavior correctly.
External Program Requirements
-
gpg
: This is already an existing requirement ofPackager::RPM
due to the use ofrpmsign
-
ar
: Most systems that attempt to build Debian packages will have thear
command, and it has been confirmed that MacOS also has this utility.
Adding ar
to the required tools compiled by Omnibus may be required.
Merge request reports
Activity
Closing in favor of !7 (merged) as it is based on the newer branch we're using in omnibus-gitlab:master