Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Nov 10, 2025

It has been reported in #706 that the .deb files of Microsoft Git's releases cannot be validated with debsig-verify. A deeper investigation brought to light that the reason is a weak digest algorithm: debsigs calls gpg --opengpg which uses SHA-1, but debsig-verify rejects such weak signatures.

This was actually already fixed in debsigs, but current Ubuntu versions will not get those fixes, being stuck with older debsigs versions.

It's easy enough to work around, though, by manually retracing the debsigs patch, so let's do that.

It has been reported in #706 that
the `.deb` files of Microsoft Git's releases cannot be validated with
`debsig-verify`. A deeper investigation brought to light that the reason
is a weak digest algorithm: `debsigs` calls `gpg --opengpg` which
uses SHA-1, but `debsig-verify` rejects such weak signatures.

This was actually already fixed in `debsigs`, but current Ubuntu
versions will not get those fixes, being stuck with older `debsigs`
versions.

It's easy enough to work around, though, so let's do that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested a review from mjcheetham November 10, 2025 18:50
@dscho dscho self-assigned this Nov 10, 2025
@dscho
Copy link
Member Author

dscho commented Nov 10, 2025

The linux-artifacts from this run were built from this PR branch, and can serve to demonstrate that this indeed fixes the reported issue.

We will most likely want to port this patch to Git Credential Manager to address git-ecosystem/git-credential-manager#2028, too.

@dscho dscho merged commit f731afd into vfs-2.52.0-rc1 Nov 12, 2025
313 of 363 checks passed
@dscho dscho deleted the fix-debsig-verify branch November 12, 2025 10:46
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.

debsig: Failed verification for msft-git.deb.

4 participants