Skip to content

docs: encourage verifying tarball before unpacking - #23441

Closed
dvddv9 wants to merge 3 commits into
curl:masterfrom
dvddv9:docs/verify-tarball
Closed

dvddv9 wants to merge 3 commits into
curl:masterfrom
dvddv9:docs/verify-tarball

Conversation

@dvddv9

@dvddv9 dvddv9 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

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

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Comment thread docs/INSTALL.md Outdated
Comment on lines +18 to +22
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/INSTALL.md Outdated
[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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is a "release manager account" in context of curl?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"compromised maintainer signing key", or "compromised signing key" for short,
works for me, but whatever you think fits best.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@dvddv9
dvddv9 force-pushed the docs/verify-tarball branch from 68e6d27 to 952a671 Compare October 17, 2026 10:19
Comment thread docs/INSTALL.md Outdated

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ...".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@bagder bagder closed this in 59d2537 Oct 17, 2026
@bagder

bagder commented Oct 17, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants