Skip to content

ci: fetch kubo from GitHub Releases instead of dist.ipfs.tech - #42

Merged
AI-M4K3R merged 3 commits into
mainfrom
ci/kubo-from-github-releases
Nov 20, 2026
Merged

AI-M4K3R merged 3 commits into
mainfrom
ci/kubo-from-github-releases

Conversation

@AI-M4K3R

@AI-M4K3R AI-M4K3R commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

dist.ipfs.tech has been unreachable worldwide for ~a day, and every deploy fails because the deploy step's kubo download goes through it.

The chain is: ipshipyard/ipfs-deploy-action@v1 → ipfs/download-ipfs-distribution-action@v1 → https://dist.ipfs.tech/kubo/... (verified in the pinned action source). The IPFS pin steps are fine — only the binary download is blocked.

Fix

Bump the deploy action @v1 → @v3. v3 fetches kubo through ipfs/download-ipfs-distribution-action@v2, which:

  • downloads from the official ipfs/kubo GitHub Releases (same official binaries dist.ipfs.tech served)
  • verifies the archive sha256 against the GitHub release API digest on every run, including cache hits (official checksums, not invented ones); releases older than v0.35.0 carry no digest and are unsupported
  • caches the archive in the Actions cache, keyed on repo + version + digest

Also pin kubo-version: v0.43.1 explicitly (current stable; the previous @v1 default was v0.33.0).

CID semantics preserved

@V3 defaults to the unixfs-v1-2025 CID profile (raw leaves, IPIP-0499), which would change the CID computed for identical content. To avoid a hidden behavior change, the step passes cid-profile: '' + ipfs-add-options: '--cid-version 1 --chunker size-1048576' — exactly the defaults @v1 used, so identical builds still map to the same CID. IPNS name, pin steps, and secrets are untouched.

Verification

  • dist.ipfs.tech: connection timeout from this machine (confirmed down)
  • https://github.com/ipfs/kubo/releases/download/v0.43.1/kubo_v0.43.1_linux-amd64.tar.gz: HTTP 200
  • Binary downloaded from the GitHub release asset and run locally: kubo version 0.43.1
  • v3.0.0 action source confirmed to use download-ipfs-distribution-action@v2 (GitHub Releases + digest verification)

Pre-review panel

Agent Verdict Findings Resolved
Standards checker clean none —
Stranger's eyes clean none —
Behavior verifier clean none — CI green on PR; release asset sha256 matched official digest; binary ran locally (v0.43.1) —
Security reviewer clean none — official ipfs/kubo releases only, digest-verified —

dist.ipfs.tech has been unreachable worldwide for ~a day, blocking all
deploys. ipshipyard/ipfs-deploy-action@v1 pulls kubo via
ipfs/download-ipfs-distribution-action@v1, which downloads from
dist.ipfs.tech exclusively.

Bump to @V3, which fetches kubo through
ipfs/download-ipfs-distribution-action@v2: binaries come from the
official ipfs/kubo GitHub Releases and the archive sha256 is verified
against the release API digest on every run (including cache hits).

Pin kubo-version to v0.43.1 (current stable) and keep the CID
semantics @v1 applied by default (CIDv1, 1 MiB chunks, no raw leaves)
so identical builds still map to the same CID.
@AI-M4K3R
AI-M4K3R marked this pull request as ready for review November 20, 2026 12:22
@AI-M4K3R
AI-M4K3R requested a review from nipsysdev November 20, 2026 12:22
@AI-M4K3R
AI-M4K3R merged commit a276a29 into main Nov 20, 2026
5 checks passed
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.

2 participants