Skip to content

Add a new Signer API for creating simple signing signatures with Sequoia-PGP #2896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jul 10, 2025

This API is proven end-to-end in #2876 and containers/skopeo#2645 , but it is not yet convenient to use becahse the Rust dependency has to be compiled manually.

So, for now, add the API as a stub only; that allows building the CLIs and tests on top, and they will light up once the backend is added.

Cc: @Luap99 (@ueno ). I think the linked PRs show that the API is viable, and something we can commit to right now; adding a do-nothing stub might help with the CI inclusion / packaging ordering, as discussed, earlier.g. in containers/skopeo#2645 (comment) .

…oia-PGP

This API is proven end-to-end in containers#2876 and
containers/skopeo#2645 , but it is not yet convenient to
use becahse the Rust dependency has to be compiled manually.

So, for now, add the API as a stub only; that allows building the CLIs
and tests on top, and they will light up once the backend is added.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac changed the title Add a new Signer API for creating simple signing signatures with Sequoia-pGP Add a new Signer API for creating simple signing signatures with Sequoia-PGP Jul 10, 2025
func WithPassphrase(passphrase string) Option {
return func(s *simpleSequoiaSigner) error {
// The gpgme implementation can’t use passphrase with \n; reject it here for consistent behavior.
// FIXME: We don’t need it in this API at all, but the "\n" check exists in the current call stack. That should go away.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

POC of this is my branch sequoia-refactor-SignDockerManifest, but that can wait.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM, seems reasonable to have the stub API merged.

@mtrmac mtrmac merged commit e412678 into containers:main Jul 11, 2025
10 checks passed
@mtrmac mtrmac deleted the simplesequoia-stub branch July 11, 2025 12:24
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