Skip to content

verify-commits: temporarily allow sha1 signatures for merge commits - #34245

Closed
darosior wants to merge 1 commit into
bitcoin:masterfrom
darosior:2601_fix_ci_sha1
Closed

darosior wants to merge 1 commit into
bitcoin:masterfrom
darosior:2601_fix_ci_sha1

Conversation

@darosior

@darosior darosior commented Jan 9, 2026

Copy link
Copy Markdown
Member

This is to unbreak CI after a merge commit (aeaa67a) with a signature indirectly involving SHA1 was pushed to master.

This is to unbreak CI after a merge commit with a signature indirectly involving SHA1 was pushed to master.
@DrahtBot

DrahtBot commented Jan 9, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34245.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

@achow101

Copy link
Copy Markdown
Member

I don't think we should blanket allow sha1, even temporarily. Furthermore, this would still break anyone doing a full verify-commits to the trusted root.

I've opened #34246 as an alternative to give an exception to the problematic commit.

@darosior

darosior commented Jan 10, 2026 via email

Copy link
Copy Markdown
Member Author

@maflcko

maflcko commented Jan 10, 2026

Copy link
Copy Markdown
Member

Not sure about this. If this is only a temporary CI fix, to be reverted in a few days, then i'd say it isn't needed and the CI can simply be ignored for those days (it only affects the main branch)

My recommendation for a temporary workaround would be to just have another maintainer create a "re-merge" commit manually. That is, treat aeaa67a as if it was a pull request, then merge it again into 595504a and push the new "re-merge" commit.
Instead of a hard force push to re-write history, this will softly treat the failing merge commit no different than any other commit in any pull request, which may be signed, but is not checked by the verify script.

@fanquake

Copy link
Copy Markdown
Member

Closing for now, given there doesn't seem to be agreement on this approach.

@fanquake fanquake closed this Jan 10, 2026
@sedited

sedited commented Jan 16, 2026 •

Copy link
Copy Markdown
Contributor

I updated the key with refreshed base signatures. Seems to work for me locally again, but would be good if others checked too. I pushed the key to some common key servers.

@hebasto

hebasto commented Jan 16, 2026 •

Copy link
Copy Markdown
Member

I updated the key with refreshed base signatures. Seems to work for me locally again, but would be good if others checked too. I pushed the key to some common key servers.

I can confirm that for the signing subkey with keyid: 9B79B45691DB4173, the previous signature packet using digest algo 2 (SHA-1) has been updated with the new signature packet using digest algo 10 (SHA-512):

$ gpg --refresh-keys --keyserver hkps://keys.openpgp.org
$ gpg --export A8FC55F3B04BA3146F3492E79303B33A305224CB | gpg --list-packets
# off=0 ctb=99 tag=6 hlen=3 plen=525
:public key packet:
	version 4, algo 1, created 1507239087, expires 0
	pkey[0]: [4096 bits]
	pkey[1]: [17 bits]
	keyid: 9303B33A305224CB
# off=528 ctb=b4 tag=13 hlen=2 plen=50
:user ID packet: "Sebastian Kung (TheCharlatan) <[email protected]>"
# off=580 ctb=89 tag=2 hlen=3 plen=569
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1507239087, md5len 0, sigclass 0x13
	digest algo 2, begin of digest 75 22
	hashed subpkt 2 len 4 (sig created 2017-10-05)
	hashed subpkt 27 len 1 (key flags: 01)
	hashed subpkt 11 len 6 (pref-sym-algos: 9 8 7 3 2 1)
	hashed subpkt 21 len 5 (pref-hash-algos: 8 2 9 10 11)
	hashed subpkt 22 len 3 (pref-zip-algos: 2 3 1)
	hashed subpkt 30 len 1 (features: 01)
	hashed subpkt 23 len 1 (keyserver preferences: 80)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	data: [4096 bits]
# off=1152 ctb=89 tag=2 hlen=3 plen=574
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1513874756, md5len 0, sigclass 0x13
	digest algo 2, begin of digest 7a 44
	hashed subpkt 27 len 1 (key flags: 01)
	hashed subpkt 30 len 1 (features: 01)
	hashed subpkt 23 len 1 (keyserver preferences: 80)
	hashed subpkt 2 len 4 (sig created 2017-12-21)
	hashed subpkt 11 len 9 (pref-sym-algos: 9 13 8 12 7 11 10 3 2)
	hashed subpkt 21 len 6 (pref-hash-algos: 10 9 8 11 2 3)
	hashed subpkt 22 len 4 (pref-zip-algos: 2 3 1 0)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	data: [4093 bits]
# off=1729 ctb=b4 tag=13 hlen=2 plen=28
:user ID packet: "sedited <[email protected]>"
# off=1759 ctb=89 tag=2 hlen=3 plen=596
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1768501423, md5len 0, sigclass 0x13
	digest algo 10, begin of digest 4b 18
	hashed subpkt 27 len 1 (key flags: 01)
	hashed subpkt 11 len 4 (pref-sym-algos: 9 8 7 2)
	hashed subpkt 34 len 1 (pref-aead-algos: 2)
	hashed subpkt 21 len 5 (pref-hash-algos: 10 9 8 11 2)
	hashed subpkt 22 len 3 (pref-zip-algos: 2 3 1)
	hashed subpkt 30 len 1 (features: 07)
	hashed subpkt 23 len 1 (keyserver preferences: 80)
	hashed subpkt 33 len 21 (issuer fpr v4 A8FC55F3B04BA3146F3492E79303B33A305224CB)
	hashed subpkt 2 len 4 (sig created 2026-01-15)
	hashed subpkt 25 len 1 (primary user ID)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	data: [4092 bits]
# off=2358 ctb=b9 tag=14 hlen=3 plen=525
:public sub key packet:
	version 4, algo 1, created 1507239607, expires 0
	pkey[0]: [4096 bits]
	pkey[1]: [17 bits]
	keyid: 9B79B45691DB4173
# off=2886 ctb=89 tag=2 hlen=3 plen=1115
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1631953913, md5len 0, sigclass 0x18
	digest algo 8, begin of digest 8b c9
	hashed subpkt 27 len 1 (key flags: 02)
	hashed subpkt 33 len 21 (issuer fpr v4 A8FC55F3B04BA3146F3492E79303B33A305224CB)
	hashed subpkt 2 len 4 (sig created 2021-09-18)
	hashed subpkt 9 len 4 (key expires after 7y348d10h51m)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	subpkt 32 len 540 (signature: v4, class 0x19, algo 1, digest algo 2)
	data: [4096 bits]
# off=4004 ctb=89 tag=2 hlen=3 plen=1129
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1768556812, md5len 0, sigclass 0x18
	digest algo 10, begin of digest 69 ab
	hashed subpkt 27 len 2 (key flags: 02 04)
	hashed subpkt 33 len 21 (issuer fpr v4 A8FC55F3B04BA3146F3492E79303B33A305224CB)
	hashed subpkt 2 len 4 (sig created 2026-01-16)
	hashed subpkt 9 len 4 (key expires after 12y104d12h6m)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	subpkt 32 len 553 (signature: v4, class 0x19, algo 1, digest algo 10)
	data: [4095 bits]
# off=5136 ctb=b9 tag=14 hlen=3 plen=525
:public sub key packet:
	version 4, algo 1, created 1507241023, expires 0
	pkey[0]: [4096 bits]
	pkey[1]: [17 bits]
	keyid: DAB71C6FBCD75257
# off=5664 ctb=89 tag=2 hlen=3 plen=572
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1631953913, md5len 0, sigclass 0x18
	digest algo 8, begin of digest c8 28
	hashed subpkt 27 len 1 (key flags: 0C)
	hashed subpkt 33 len 21 (issuer fpr v4 A8FC55F3B04BA3146F3492E79303B33A305224CB)
	hashed subpkt 2 len 4 (sig created 2021-09-18)
	hashed subpkt 9 len 4 (key expires after 7y348d10h28m)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	data: [4095 bits]
# off=6239 ctb=89 tag=2 hlen=3 plen=572
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1768556781, md5len 0, sigclass 0x18
	digest algo 10, begin of digest 34 16
	hashed subpkt 27 len 1 (key flags: 0C)
	hashed subpkt 33 len 21 (issuer fpr v4 A8FC55F3B04BA3146F3492E79303B33A305224CB)
	hashed subpkt 2 len 4 (sig created 2026-01-16)
	hashed subpkt 9 len 4 (key expires after 12y104d11h42m)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	data: [4095 bits]
# off=6814 ctb=b9 tag=14 hlen=3 plen=525
:public sub key packet:
	version 4, algo 1, created 1507241176, expires 0
	pkey[0]: [4096 bits]
	pkey[1]: [17 bits]
	keyid: 7651CCCB55BC4D56
# off=7342 ctb=89 tag=2 hlen=3 plen=572
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1631953914, md5len 0, sigclass 0x18
	digest algo 8, begin of digest 90 8f
	hashed subpkt 27 len 1 (key flags: 20)
	hashed subpkt 33 len 21 (issuer fpr v4 A8FC55F3B04BA3146F3492E79303B33A305224CB)
	hashed subpkt 2 len 4 (sig created 2021-09-18)
	hashed subpkt 9 len 4 (key expires after 7y348d10h25m)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	data: [4096 bits]
# off=7917 ctb=89 tag=2 hlen=3 plen=572
:signature packet: algo 1, keyid 9303B33A305224CB
	version 4, created 1768556801, md5len 0, sigclass 0x18
	digest algo 10, begin of digest dd 89
	hashed subpkt 27 len 1 (key flags: 20)
	hashed subpkt 33 len 21 (issuer fpr v4 A8FC55F3B04BA3146F3492E79303B33A305224CB)
	hashed subpkt 2 len 4 (sig created 2026-01-16)
	hashed subpkt 9 len 4 (key expires after 12y104d11h40m)
	subpkt 16 len 8 (issuer key ID 9303B33A305224CB)
	data: [4095 bits]

Additionally, I'd suggest testing the updated key by running contrib/verify-commits/verify-commits.py locally.

hebasto added a commit that referenced this pull request Jan 16, 2026
fa38ffa contrib: [refactor] Use shorter read_text from pathlib (MarcoFalke)
fab8bc0 contrib: Revert "verify-commits sha1 exceptions" (MarcoFalke)

Pull request description:

  This reverts commit 8ac134b, because it is no longer needed.

  See #34245 (comment)

  Also, use the shorter pathlib `read_text`, which is available since Python 3.5

ACKs for top commit:
  dergoegge:
    utACK fa38ffa
  sedited:
    ACK fa38ffa
  hebasto:
    ACK fa38ffa.

Tree-SHA512: 83049349d4a5c74ad700c2912d727584b88944a75d572c10661a76b69b08093ef7ebf786b359455e36d7467a708de46a77da41a54512e057d7eed8206984c8fd
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Jun 28, 2026
…eptions"

59cb4e5 contrib: [refactor] Use shorter read_text from pathlib (MarcoFalke)
c458a18 contrib: Revert "verify-commits sha1 exceptions" (MarcoFalke)

Pull request description:

  This reverts commit 641b29c, because it is no longer needed.

  See bitcoin/bitcoin#34245 (comment)

  Also, use the shorter pathlib `read_text`, which is available since Python 3.5

ACKs for top commit:
  dergoegge:
    utACK 59cb4e5
  sedited:
    ACK 59cb4e5
  hebasto:
    ACK 59cb4e5.

Tree-SHA512: 83049349d4a5c74ad700c2912d727584b88944a75d572c10661a76b69b08093ef7ebf786b359455e36d7467a708de46a77da41a54512e057d7eed8206984c8fd
BigcoinBGC pushed a commit to BigcoinBGC/bigcoin that referenced this pull request Jun 30, 2026
…eptions"

f83a438 contrib: [refactor] Use shorter read_text from pathlib (MarcoFalke)
13d5dc6 contrib: Revert "verify-commits sha1 exceptions" (MarcoFalke)

Pull request description:

  This reverts commit cf76f3c, because it is no longer needed.

  See bitcoin/bitcoin#34245 (comment)

  Also, use the shorter pathlib `read_text`, which is available since Python 3.5

ACKs for top commit:
  dergoegge:
    utACK f83a438
  sedited:
    ACK f83a438
  hebasto:
    ACK f83a438.

Tree-SHA512: 83049349d4a5c74ad700c2912d727584b88944a75d572c10661a76b69b08093ef7ebf786b359455e36d7467a708de46a77da41a54512e057d7eed8206984c8fd
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Aug 19, 2026
…eptions"

fa38ffac6ff560bf76a2bfa48a300a79d31ba466 contrib: [refactor] Use shorter read_text from pathlib (MarcoFalke)
fab8bc03082d4e10b5c8008b96d2951991746064 contrib: Revert "verify-commits sha1 exceptions" (MarcoFalke)

Pull request description:

  This reverts commit 8ac134be5e57680eb1c6ef596e5de085825e83ee, because it is no longer needed.

  See bitcoin/bitcoin#34245 (comment)

  Also, use the shorter pathlib `read_text`, which is available since Python 3.5

ACKs for top commit:
  dergoegge:
    utACK fa38ffac6ff560bf76a2bfa48a300a79d31ba466
  sedited:
    ACK fa38ffac6ff560bf76a2bfa48a300a79d31ba466
  hebasto:
    ACK fa38ffac6ff560bf76a2bfa48a300a79d31ba466.

Tree-SHA512: 83049349d4a5c74ad700c2912d727584b88944a75d572c10661a76b69b08093ef7ebf786b359455e36d7467a708de46a77da41a54512e057d7eed8206984c8fd
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.

7 participants