Skip to content

Strip a tag's signature before parsing its trailers - #2

Merged
bezilla merged 1 commit into
mainfrom
tag-signature-strip
Sep 6, 2026
Merged

Strip a tag's signature before parsing its trailers#2
bezilla merged 1 commit into
mainfrom
tag-signature-strip

Conversation

@bezilla

@bezilla bezilla commented Sep 6, 2026

Copy link
Copy Markdown
Owner

A signed annotated tag appends its signature block straight after the message with no blank line, so the last paragraph parsed as message-plus-signature rather than as trailers. The tag-annotation check therefore passed on every signed tag, whatever it carried.

capsize already had this; the hook shared by this repository, otel-service-reference and bezilla did not.

Proved in a throwaway clone with real signed tags, not by reading the code:

case exit
existing history + tags only 0
plus a clean signed tag 0
plus a signed tag carrying a disallowed trailer 1

selftest.sh remains 13 as expected, 0 unexpected.

A signed annotated tag appends its signature block straight after the
message with no blank line between, so the last paragraph became
message-plus-signature and did not parse as trailers at all. The
tag-annotation check then passed on every signed tag, whatever it
carried. capsize already had this; the hook shared by
otel-service-reference, kubernetes-platform-reference and bezilla did
not.

Proved in a throwaway clone with real signed tags rather than by
reading: existing tags still pass, a clean signed tag passes, and a
signed tag carrying a disallowed trailer is rejected.
@bezilla
bezilla merged commit 44747b6 into main Sep 6, 2026
4 of 8 checks passed
@bezilla
bezilla deleted the tag-signature-strip branch September 6, 2026 16:48
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.

1 participant