Skip to content

Add Linux code signing in Docker #2984

Description

@freakboy3742

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 --target to 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

Activity

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

    enhancementNew features, or improvements to existing features.linuxThe issue relates Linux support.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions