node icon indicating copy to clipboard operation
node copied to clipboard

tools: verify with gpg if md5 is not present in update-icu

Open islandryu opened this issue 2 years ago • 9 comments

Fix: #50498

The problem may be that md5 is not present in the icu, but even in such a case, I used .asc to pass the validation.

If the absence of md5 is clearly an icu issue, this PR will be closed.

islandryu avatar Nov 01 '23 15:11 islandryu

Review requested:

  • [ ] @nodejs/security-wg

nodejs-github-bot avatar Nov 01 '23 15:11 nodejs-github-bot

We need to decide what to do with https://github.com/nodejs/node/blob/main/tools/icu/current_ver.dep if we can't use md5 anymore (I don't know what's the purpose of that file)

targos avatar Nov 01 '23 15:11 targos

We need to decide what to do with https://github.com/nodejs/node/blob/main/tools/icu/current_ver.dep if we can't use md5 anymore (I don't know what's the purpose of that file)

It's used to validate ICU downloads if configure is run with --with-icu-source with a URL. https://github.com/nodejs/node/blob/a037b885610bac091b4ef4bcbf93acca039bce0d/BUILDING.md?plain=1#L778-L782 https://github.com/nodejs/node/blob/a037b885610bac091b4ef4bcbf93acca039bce0d/configure.py#L1646-L1679

richardlau avatar Nov 01 '23 16:11 richardlau

It's used to validate ICU downloads if configure is run with --with-icu-source with a URL.

If we're going to verify it based on .asc, we're going to need a dedicated process at the point you indicated.

I think it would be good to save the public key and signature information in current_ver.dep or a separate file and verify it as well as md5.

islandryu avatar Nov 02 '23 04:11 islandryu

cc @srl295 in case you missed this pull request

bnoordhuis avatar Nov 05 '23 10:11 bnoordhuis

cc @srl295 in case you missed this pull request

I missed it, but it's fixed upstream

srl295 avatar Nov 06 '23 15:11 srl295

This needs a rebase.

aduh95 avatar May 11 '24 18:05 aduh95

The rebase is done.

islandryu avatar May 20 '24 11:05 islandryu

Absence of md5 is an ICU issue and was fixed, However verifying with gpg is not a bad idea.

srl295 avatar May 20 '24 16:05 srl295