Skip to content

Conversation

@robertohueso
Copy link
Contributor

Clarify that OpenPGP container signatures are expected to contain a single signature packet.

This clarification is necessary because, according to RFC 4880, a "Signed Message" may contain a sequence of signature packets. This case might not be correctly handled by the existing verification software.

More info on this on this PR in #423

@github-actions github-actions bot added the image Related to "image" package label Oct 30, 2025
@robertohueso robertohueso force-pushed the single-signature-docs branch from 2f7e230 to c5c2dfa Compare October 30, 2025 12:29
Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM
@mtrmac PTAL

Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Sure, makes sense to clarify this.

(e.g. it MUST NOT be an unsigned “Literal Message”,
a “Cleartext Signature” as defined in RFC 4880 section 7,
or any other non-signature format).
- The blob MUST contain one single "Signature Packet" as defined in RFC 4880 section 5.2.
Copy link
Contributor

Choose a reason for hiding this comment

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

‘must not contain multiple ”Signature Packet”s’, to be unambiguous?

As a non-native speaker, I don’t read “must contain one” to prohibit “must not contain two”; the “single” sort of does imply uniqueness, but that kind of grammar is not taught in introductory English courses.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mtrmac I just reworded it

@mtrmac mtrmac linked an issue Oct 30, 2025 that may be closed by this pull request
Clarify that OpenPGP container signatures are expected to contain
exactly one signature packet.

This clarification is necessary because, according to RFC 4880, a
"Signed Message" may contain a sequence of signature packets. This case
might not be correctly handled by the existing verification software.

Signed-off-by: Roberto Hueso Gomez <roberto@robertohueso.org>
@robertohueso robertohueso force-pushed the single-signature-docs branch from c5c2dfa to 6a39ff0 Compare October 30, 2025 23:04
Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks!

@mtrmac mtrmac merged commit 70c2171 into containers:main Oct 31, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

image Related to "image" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple signatures in the same OpenPGP messsage

3 participants