Repository navigation
Conversation
Add a short "Verifying the source archive" section to INSTALL.md, between "Installing Binary Packages" and "Building from source". It points at the existing docs/VERIFY.md for key fingerprint and full procedure (including reproducible-release checks). Ref: #23438
There was a problem hiding this comment.
🟡 Changes recommended
Correct or publish the referenced SHA256 checksum artifact before approval.
1 open finding
What changed in this PR
Adds source-archive verification guidance to docs/INSTALL.md, including SHA256, GPG, and reproducibility checks.
Changes:
- Adds verification commands before unpacking.
- Links to
docs/VERIFY.md. - Explains signing-key compromise limitations.
| File | Summary |
|---|---|
docs/INSTALL.md |
Adds archive verification instructions; the documented SHA256 artifact is not currently published. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| Before unpacking a downloaded release tarball, verify it against the | ||
| published SHA256 checksum and GPG signature. Both are available next to | ||
| the tarball on https://curl.se/download.html. | ||
|
|
||
| sha256sum -c curl-X.Y.Z.tar.gz.sha256 |
There was a problem hiding this comment.
The download page currently publishes only .asc (GPG), not .sha256. I removed the sha256sum example; the section now documents only GPG verification. Happy to re-add SHA256 if the project publishes those files.
Also noted in the commit message: verification does not protect against a compromised signing key (XZ Utils 2024 style), but does protect against tampered mirrors, MITM, and compromised CDNs.
| [docs/VERIFY.md](https://github.com/curl/curl/blob/master/docs/VERIFY.md). | ||
|
|
||
| This does not protect against an attacker who controls the signing key | ||
| (for example a compromised release manager account), but it does protect |
There was a problem hiding this comment.
What is a "release manager account" in context of curl?
There was a problem hiding this comment.
Good point. There is no "release manager" role in curl -- I borrowed
the phrasing from the XZ Utils 2024 case without adapting it to curl.
What I meant was: a compromised maintainer signing key. Should I reword
it that way, or would you phrase it differently?
There was a problem hiding this comment.
"compromised maintainer signing key", or "compromised signing key" for short,
works for me, but whatever you think fits best.
There was a problem hiding this comment.
Done -- updated INSTALL.md to "compromised maintainer signing key" (more precise for curl). Thanks for the quick review.
The download page at https://curl.se/download.html publishes .asc (GPG) signatures but not .sha256 checksums. Remove the sha256sum example and the claim that both are available. Addresses Copilot review on #23441.
68e6d27 to
952a671
Compare
|
|
||
| This does not protect against an attacker who controls the signing key | ||
| (for example a compromised maintainer signing key), but it does protect | ||
| against tampered mirrors, MITM proxies, and compromised CDNs. |
There was a problem hiding this comment.
I'm on the fence here ...is it useful for readers to explain the merits/gotchas
of signatures while suggesting to use it? I'd pbly favor being brief here, but
not a strong opinion.
In the paragraphy prior, would it sound better in active voice?: "We document
the signing key ... in ...", or "You can find the ...".
There was a problem hiding this comment.
Good point. I've updated it to be more brief and switched to active voice as suggested.
This protects against tampered mirrors, MITM proxies, and compromised CDNs, but not against a compromised maintainer signing key.
Let me know if you'd prefer dropping the caveat entirely.
Clarified the explanation regarding the signing key security.
|
Thanks! |

INSTALL.md tells users to download a release tarball and unpack it,
without mentioning SHA256 / GPG verification. For a TLS client
with a very large install base, encouraging verification against
compromised mirrors / MITM / CDN is a low-cost improvement.
Added a short "Verifying the source archive" section between
"Installing Binary Packages" and "Building from source". It points
at the existing docs/VERIFY.md for the key fingerprint and the full
procedure (including reproducible-release checks). Note: this does
not protect against an attacker who controls the signing key
(e.g. a compromised release manager account), as seen in the XZ
Utils 2024 incident.
Ref: #23438