Docs / Trust and safety
Verify the app you loaded
Forge's web app is a static site with no backend. Anyone can host it, and every release publishes a copy for IPFS that you pin yourself. This page shows how to check that the copy in your browser was built from the released source, and nothing else.
The check has three independent parts. Each one is enough to catch a swapped build, and they fail in different ways:
- Rebuild it yourself. The build is reproducible: the same tag always gives the same bytes, and so the same IPFS CID. You rebuild from the tag and get a CID.
- The GitHub release names a CID. GitHub Actions built it on two machines, and they had to agree.
- The Forge release of the same tag, on Dash Platform, names the same files by SHA-256, signed by the maintainer's identity.
If your CID, the GitHub release's and the Forge release's all match the CID in the app's footer, the app you loaded is the released one.
- What a release publishes
- Step 1: the CID of the app you loaded
- Step 2: rebuild the CID from the tag
- Step 3: compare with the GitHub release
- Step 4: compare with the Forge release on chain
- Check a deployed copy:
dg verify-app - What this proves, and what it does not
- For maintainers: publishing the Forge release
What a release publishes
Each v<version> release on GitHub carries, next to the CLI archives:
| File | What it is |
|---|---|
forge-web-<version>.cid | The site's root CID (CIDv1), one line. It is also in the release notes. |
forge-web-<version>.car | The whole site as a CAR file. Import it into your IPFS node to pin the app. |
forge-web-<version>.manifest.json | Every file of the site with its SHA-256: what dg verify-app checks a copy against. The site also serves it as forge-manifest.json. |
SHA256SUMS | The SHA-256 of these files and of every CLI archive, with a GitHub build provenance attestation. |
Nobody pins this copy for you: Forge hosts nothing. To run it from your own node:
ipfs dag import forge-web-<version>.car # pins the site; prints its root CID
# then open http://<cid>.ipfs.localhost:8080/The build works from any gateway: by subdomain (https://<cid>.ipfs.<gateway>/), by path (https://<gateway>/ipfs/<cid>/), or from an ordinary static host. It finds its own base path when it loads.
The release build reads the network set in forge-web/scripts/ipfs-release.sh (RELEASE_NETWORK, RELEASE_DEVNET_NAME): testnet today, mainnet once Forge is registered there. The network is part of the build, so it is fixed per commit.
Step 1: the CID of the app you loaded
The footer of every page says About this build: the commit the app was built from and, when it was loaded from IPFS, the CID in the address bar. Write down both.
The CID in the footer comes from the URL, so it is only as good as whatever served the page. A public gateway could serve any bytes under any CID. Only an IPFS node checks the blocks it serves against the CID it was asked for. So load the app through a node you run yourself (ipfs dag import above, or ipfs pin add <cid>, then http://<cid>.ipfs.localhost:8080/). Your node then refuses any byte that does not hash to that CID, and the footer's CID is the app you are running.
A build served from an ordinary host (such as forge.dashhq.org on GitHub Pages) shows its commit, but no CID. That build is not the IPFS variant. dg verify-app checks it file by file against the manifest its deploy published. To check it, rebuild that commit with FORGE_BUILD_COMMIT=<commit> pnpm build, the network it reads (off a devnet, leave NEXT_PUBLIC_DEVNET_NAME unset: an empty value is inlined as an empty string and changes the bytes) and the optional services it shows (NEXT_PUBLIC_GATEWAY_URL and NEXT_PUBLIC_GATEWAY_LABEL when the clone box has an HTTPS row, NEXT_PUBLIC_NOTIFY_URL when Settings has email and push, NEXT_PUBLIC_MAINNET_SITE_URL and NEXT_PUBLIC_TESTNET_SITE_URL when the deploy set them (the hosted sites set both, even where no link shows), NEXT_PUBLIC_DEVNET_NOTICE and NEXT_PUBLIC_DEVNET_MOVE_TO when a devnet notice shows, NEXT_PUBLIC_PAGES_NOTICE, NEXT_PUBLIC_PAGES_NOTICE_TEXT and NEXT_PUBLIC_PAGES_NOTICE_URL when the operator's banner shows, NEXT_PUBLIC_CF_BEACON_TOKEN when the page ends with a Cloudflare Web Analytics beacon: the token in its data-cf-beacon): every file you build should be served byte for byte (the Pages deploy also keeps the previous two builds' chunks, so it serves more files than you built). The commit's page on GitHub is linked from the footer.
Step 2: rebuild the CID from the tag
You need git and Docker (x86_64 or arm64).
git clone https://github.com/PastaPastaPasta/dash-forge && cd dash-forge
forge-web/scripts/ipfs-release.sh reproduce v<version> ipfs-buildIt prints the CID, and writes ipfs-build/forge-web.cid, ipfs-build/forge-web.car and ipfs-build/site.tar (the files themselves). It takes a few minutes. The script:
- runs the tag's own copy of itself, so the tag is built with the pins and network its release used, whichever checkout you start from;
- takes
git archiveof the tag's commit, so nothing from your checkout (local changes,node_modules,.next) gets in; - builds it in the Node image pinned by digest (
NODE_IMAGE), with pnpm pinned by integrity (PNPM_INTEGRITY) and every dependency byforge-web/pnpm-lock.yaml; - clears the environment, so the build sees only what the script sets: the commit, the network,
SOURCE_DATE_EPOCH(the commit's time, which dates the files insite.tar; the CID records no times) and fixed values forCI, the locale and the time zone; - computes the CID with the kubo image pinned by digest (
KUBO_IMAGE), in a throwaway offline repository set up with IPIP-499'sunixfs-v1-2025import profile, with the flags inIPFS_ADD_FLAGS(CIDv1, raw leaves, SHA-256, 1 MiB chunks).
Read the script before you run it: it is short, and it is what you are trusting.
What makes the build reproducible, in forge-web/next.config.js: the Next.js build id is the commit (Next's default is random), module ids are hashed into a range wide enough that none collide (webpack's default settles collisions in an order that varies between runs), entry chunks are named by the hash of their final bytes (Next's default name hashes webpack's internal state, which varies under load), the minifier is given placeholders for webpack's provisional chunk hashes, not the hashes (it picks short variable names by how often each letter occurs, and those hashes, which differ between builds before webpack replaces them with the final ones, sometimes tipped a tie in webpack's runtime chunk, which changed that chunk's name and the CID), the JavaScript is minified by Terser, and nothing reads the clock. Local rebuilds on x86_64 and on arm64, at several CPU limits, gave the same CID. The release workflow builds every tag on an x86_64 and an arm64 runner and refuses to publish unless both give the same CID (.github/workflows/web-ipfs.yml), and every pull request that touches the web app runs the same check.
Without Docker. In a checkout of the tag, cd forge-web && pnpm install --frozen-lockfile && FORGE_BUILD_COMMIT=$(git rev-parse HEAD) NEXT_PUBLIC_NETWORK=testnet pnpm build:ipfs builds the same site with your own Node. The result matches only if your Node and pnpm are the pinned versions and your environment adds nothing, so a mismatch there is not evidence of anything. Use the script for the real check. To get a CID for a directory you built, forge-web/scripts/ipfs-release.sh cid forge-web/out (still needs Docker, for the pinned kubo), or, on a kubo of the pinned version, a repository initialised with ipfs init --profile=unixfs-v1-2025 and ipfs add with the flags in IPFS_ADD_FLAGS.
Step 3: compare with the GitHub release
gh release download v<version> --repo PastaPastaPasta/dash-forge \
--pattern 'forge-web-*' --pattern SHA256SUMS
cat forge-web-<version>.cid # the release's CID
sha256sum --check --ignore-missing SHA256SUMS # the files are the ones listed
gh attestation verify forge-web-<version>.car --repo PastaPastaPasta/dash-forge
cmp forge-web-<version>.car ipfs-build/forge-web.car # your rebuild: byte-identical- The
.cidfile, the release notes and youripfs-build/forge-web.cidmust be the same CID. - The CAR from the release and the one you built must be identical, byte for byte.
gh attestation verifychecks the Sigstore provenance: the CAR was produced by this repository'srelease.ymlat that tag. It does not rely on any key of ours.
Step 4: compare with the Forge release on chain
Forge's own repository is mirrored on Forge, and each release is recorded there too, as a Forge release document for the same tag. It lists forge-web-<version>.car and forge-web-<version>.cid among its assets, each with its SHA-256, and its notes name the CID. The document is written with the maintainer's Platform identity and read back with a Platform proof, so it does not depend on GitHub at all.
dg --json release list <owner>/dash-forge # each asset's sha256
dg release download <owner>/dash-forge v<version> \
--asset forge-web-<version>.cid --output forge-release.cid
cat forge-release.cid
sha256sum ipfs-build/forge-web.car # must equal the CAR's listed sha256<owner> is the maintainer identity that mirrors this repository on Forge (the README names it once the mirror is published). Add --network mainnet once Forge is on mainnet.
dg release downloadaccepts only bytes that hash to the SHA-256 in the proof-checked release document (E504otherwise), soforge-release.cidis the CID the maintainer recorded.- The web app shows the same on the repository's Releases page: each asset with the start of its SHA-256 (the whole digest on hover), downloaded and checked in the browser.
Check a deployed copy: dg verify-app
Every build of the web app lists its files with their SHA-256 in forge-manifest.json, at the site's root. dg verify-app fetches every listed file from a site and checks each one:
dg verify-app https://forge.dashhq.orgSite: https://forge.dashhq.org/
Build: commit 0f605099596192a525f99c6cbafab4e54b29cee4 (testnet, host build)
Manifest: attested by PastaPastaPasta/dash-forge/.github/workflows/pages.yml@refs/heads/master (certificate fields; signature not checked here: run gh attestation verify)
Files: 174 of 174 matchThe site could rewrite its own manifest, so dg trusts it only when it is published elsewhere:
- By default, it asks GitHub for a build provenance attestation of the served manifest's SHA-256 from this repository's CI, and checks who signed it: the attestation's signing certificate must name this repository's Pages deploy workflow (
.github/workflows/pages.yml) onrefs/heads/master, run in this repository by GitHub Actions. The Pages deploy attests each build's manifest. An attestation made by another workflow (a release's, say), on another branch, in a fork or by anything else does not count, and the check fails and says what signed it. (A release's manifest is covered bySHA256SUMS: check it with--manifest, below.) To check the attestation's Sigstore signature yourself, download the manifest and rungh attestation verify forge-manifest.json --repo PastaPastaPasta/dash-forge --signer-workflow PastaPastaPasta/dash-forge/.github/workflows/pages.yml.dgreads the signer out of the certificate GitHub holds and does not verify the certificate chain or the signature, which is why its output says "certificate fields; signature not checked here".gh attestation verifydoes, against Sigstore's roots: run it on the manifest when that matters. - With
--manifest <file>, it checks against a manifest you got yourself. The strongest is a release's manifest from the Forge release on chain:dg release download <owner>/dash-forge v<version> --asset forge-web-<version>.manifest.json --output manifest.json, thendg verify-app <url> --manifest manifest.json.
Any build this repository's Pages deploy ever published passes, an older one included. To require the build you expect, add --commit <sha> (7 characters or more). --signer-workflow <owner>/<repo>/.github/workflows/<file> names another deploy workflow, on refs/heads/master of its repository, for a fork that publishes its own copy; the default is the official one. The testnet site, https://testnet-forge.dashhq.org, is deployed by its own workflow: check it with dg verify-app https://testnet-forge.dashhq.org --signer-workflow PastaPastaPasta/dash-forge/.github/workflows/pages-testnet.yml.
It fails (exit 5, E504) when the site has no manifest, when GitHub has no attestation for it, when none of its attestations was signed by the expected workflow on master, when it is not the --commit you named, or when any listed file can't be fetched, is missing or differs, and it names each one. It asks for each file as a browser does, so a host that changes pages only for browsers (an injected script) fails the check. One injection is let through: the Cloudflare Web Analytics beacon that Cloudflare's automatic setup adds before </body> (as on forge.dashhq.org), in exactly Cloudflare's form and only on a page whose build carries its own beacon for the same site token, is removed before the page is hashed, and the output counts those pages (Hosting §6). --json gives the counts and the lists. Set GITHUB_TOKEN to lift GitHub's anonymous rate limit. The nightly workflow runs it against forge.dashhq.org.
In the app. When you unlock a private repository (or manage your encryption key in Settings), the app makes the same lookup for its own manifest. If GitHub has no attestation for it, a note says the copy isn't a published build. Unpublished code could read what you unlock. The note is a check for mistakes and unofficial copies, not a defence: a malicious build can leave it out. dg verify-app checks a site from outside.
What it checks. The files this run was served, not what someone else gets: a host can serve different bytes to different visitors. Files the site serves beyond the manifest are not checked (the Pages deploy keeps the previous two builds' chunks for open tabs), but the pages and scripts the manifest lists load only each other.
What this proves, and what it does not
It proves that the files in your browser are, byte for byte, what the tagged source builds into, if you loaded them through your own node and the CIDs match. Two parties vouch for the CID independently of your rebuild: GitHub Actions (Sigstore attestation) and the maintainer's identity on Platform (a signed release document).
It does not prove that the source is safe. It tells you which source you are running, so a review of that tag applies to the app you loaded. Read the diff between tags, or trust someone who did.
Also:
- Public gateways are not checked. A gateway you do not run could serve different bytes under the right CID. Pin the CAR on your own node, or rebuild and serve
site.taryourself. - The build's network is fixed. A release built for testnet reads testnet. Proofs from Platform are still checked in the browser against the quorum keys, whatever the build (Check that Forge isn't lying to you).
- A new release changes the CID. Every release build embeds its commit (the footer), so no two commits share a CID.
- Short links are for ordinary hosts. A short URL such as
/<owner>/<name>/issues/12opens through the build's404.html, which IPFS gateways do not serve for a missing path. So the IPFS build's Copy link, permalinks and address bar give the canonical routes (/repo/?owner=…&name=…) instead, which open from any gateway.
For maintainers: publishing the Forge release
The GitHub release is automatic (release.yml). The Forge release is not: writing it needs the maintainer's Platform identity key, and no Forge key is ever stored in CI. After the GitHub release is published, the owner runs, from a checkout of the repository:
v=<version>
gh release download "v$v" --repo PastaPastaPasta/dash-forge --pattern 'forge-web-*' --pattern SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS
forge-web/scripts/ipfs-release.sh reproduce "v$v" ipfs-build
cmp "forge-web-$v.car" ipfs-build/forge-web.car # never record a build you did not reproduce
cid=$(cat "forge-web-$v.cid")
dg release create <owner>/dash-forge --tag "v$v" --name "Dash Forge v$v" \
--notes "Web app on IPFS: $cid (forge-web-$v.car; verify: docs/guides/verify-the-app.md)" \
--asset "forge-web-$v.car" --asset "forge-web-$v.cid" --asset "forge-web-$v.manifest.json" --storage <profile>
ipfs dag import "forge-web-$v.car" # optional: pin the app on your own nodedg release create uploads each file to your storage, checks the copies, and records {name, sha256, sizeBytes, uris} for each in the release's assets. Release assets are external-only, so name an S3 or IPFS storage profile with --storage (Bring your own storage); without it, dg uses the dash.storage of the repository you run it in, and a checkout of the GitHub repository has none, so it refuses before anything is written. The CAR is about 30 MB (mostly the Platform SDK's wasm). An IPFS profile stores it as one file, which is not the same as pinning the site: ipfs dag import does that.
This page is docs/guides/verify-the-app.md from the Dash Forge repository, as of this build. View or edit it on GitHub