Skip to content

feat: add signing with own key for melange-build#745

Merged
cpanato merged 1 commit intochainguard-dev:mainfrom
eminaktas:feat/sign-own-key
Feb 23, 2026
Merged

feat: add signing with own key for melange-build#745
cpanato merged 1 commit intochainguard-dev:mainfrom
eminaktas:feat/sign-own-key

Conversation

@eminaktas
Copy link
Contributor

@eminaktas eminaktas commented Feb 15, 2026

This change enables users to sign packages using their own key, which is not supported in the current implementation.

At the moment, it always generates a temporary key, even when that behavior is explicitly disabled. This PR introduces proper support for providing and using a custom key, and clarifies the signing logic.

Updated behavior

The signing flow now works as follows:

  • If sign-with-own-key is set to true, the package will be signed using the key at the provided path.

    • The key must already exist.
  • If sign-with-temporary-key is set to true, a temporary key pair will be generated and used to sign the package.

  • If both sign-with-own-key and sign-with-temporary-key are set to true, the temporary key takes precedence and will be used for signing.

This ensures users can explicitly choose between using their own key or a generated temporary key, with a clear and predictable priority when both options are enabled.

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cpanato
Copy link
Member

cpanato commented Feb 16, 2026

can you please rebase?

@eminaktas eminaktas force-pushed the feat/sign-own-key branch 5 times, most recently from d86a2aa to e9250d1 Compare February 23, 2026 10:13
@eminaktas
Copy link
Contributor Author

can you please rebase?

@cpanato done. Thanks for the reveiw.

@cpanato cpanato added this pull request to the merge queue Feb 23, 2026
Merged via the queue into chainguard-dev:main with commit a303eb6 Feb 23, 2026
9 checks passed
@eminaktas eminaktas deleted the feat/sign-own-key branch February 23, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants