-
-
Notifications
You must be signed in to change notification settings - Fork 550
Add Linux code signing in Docker #2984
Copy link
Copy link
Open
Labels
enhancementNew features, or improvements to existing features.New features, or improvements to existing features.linuxThe issue relates Linux support.The issue relates Linux support.
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew features, or improvements to existing features.New features, or improvements to existing features.linuxThe issue relates Linux support.The issue relates Linux support.
Projects
- StatusShow more project fieldsIn progress
What is the problem or limitation you are having?
PR #2973 added support for code signing Linux system packages - but only when running natively. If you use
--targetto build a package in a Docker container, code signing fails.Describe the solution you'd like
It should be possible to build and sign a Linux package inside a Docker container.
There's no changes needed to the general workflow - identity selection etc can continue as currently defined. The signing identity and gnupg must exist on the "host" machine (which may be a macOS machine). However, as part of container preparation, the Docker container must have the required tools installed, and the chosen signing identity must be injected into the Docker container (presumably by exporting the key from the local machine, and adding it to the keychain inside the Docker container). The signing step must also occur inside the Docker container.
Describe alternatives you've considered
Status quo - only allow "native" signed package builds. This isn't ideal, as Docker builds are a major usability affordance.
Additional context
No response