-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement dpkg-sig Package signing (#515)
* implement dpkg-sig Package signing * Fix dpkgsig template syntax * Fix dpkgsig template syntax * Correctly handle template errors when reading dpkg-sig templates * Fix dkpgsig signature templateing * refactor: io.Copy Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * refactor: deb signature Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * feat: acceptance test Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * docs: document new option Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * test: acceptance Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * test: acceptance Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * chore: typo Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> Co-authored-by: Sas Swart <sas.swart@xneelo.com>
- Loading branch information
Showing
8 changed files
with
123 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "foo" | ||
arch: "${BUILD_ARCH}" | ||
platform: "linux" | ||
version: "v1.0.0" | ||
maintainer: "John Doe <john@example.com>" | ||
description: This package is signed | ||
vendor: "FooBarCorp" | ||
homepage: "http://example.com" | ||
contents: | ||
- src: ./testdata/fake | ||
dst: /usr/local/bin/fake | ||
deb: | ||
signature: | ||
method: debsign | ||
key_file: ./internal/sign/testdata/privkey_unprotected.asc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "foo" | ||
arch: "${BUILD_ARCH}" | ||
platform: "linux" | ||
version: "v1.0.0" | ||
maintainer: "John Doe <john@example.com>" | ||
description: This package is signed | ||
vendor: "FooBarCorp" | ||
homepage: "http://example.com" | ||
contents: | ||
- src: ./testdata/fake | ||
dst: /usr/local/bin/fake | ||
deb: | ||
signature: | ||
method: dpkg-sig | ||
key_file: ./internal/sign/testdata/privkey_unprotected.asc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters