Email [email protected]. Please do not open a public issue for security
reports.
Releases are cut and signed by a maintainer, on their own machine, with their
own GPG key. No signing key exists in CI. Every key trusted to sign a release
is committed to this repository as KEYS:
Ant Somers <[email protected]>
Fingerprint: DA75 1570 6F18 73D2 74D8 A369 9E11 A9FF D62D AADB
minisign key: crates/cli/minisign-thiras.pub, key id 111497640DE76A05
Alper Gundogdu <[email protected]>
Fingerprint: E27B 9A2D 2519 1E8E C90B F8AE 57E2 823C 16CC D376
minisign key: crates/cli/minisign-alper.pub (key id listed here once committed)
A good signature from any key listed above is authentic. Adding or removing
a maintainer is a change to KEYS and to the crates/cli/minisign-*.pub files,
visible in this repository's history.
Pin the fingerprint, not the file. The signature is what protects you, and
it protects you because you check it against a fingerprint you already trust —
not because of anything the release pipeline enforces. CI does verify that a
release tag is signed by a key published on main, but that check is defence in
depth: it lives in the repository it is checking. Record the fingerprint above
out of band the first time you verify a release, and compare against your copy
afterwards.
Each release carries eight GPG signatures: the tag, the version-bump commit, the
SHA256SUMS manifest covering every archive, source-commit.txt naming the
commit the release was built from, and for each of the two container images its
digest file and its SBOM. Individual archives carry no .asc of their
own — verify them through the signed manifest.
SHA256SUMS carries one more signature, SHA256SUMS.minisig, made with
minisign. It exists for
decdn self-update: the decdn binary embeds each maintainer's minisign public
key, committed as crates/cli/minisign-<maintainer>.pub, and
refuses a release whose manifest signature verifies under no embedded key,
before it reads a byte of the archive. A key id is encoded in the key itself
and repeated in the file's comment line as minisign -G writes it; record the
ids out of band the first time you verify a release, as you do the GPG
fingerprints. A new or rotated key reaches installed binaries inside a release
signed by a key they already trust (RELEASING.md § The minisign keys).
Each archive also carries <archive>.minisig, made with the same maintainer
minisign key, for cargo binstall (below).
# Import the maintainer keys (one time)
gpg --import KEYS
# Fetch tags and verify the one you're installing
git fetch --tags
git verify-tag v0.1.0
git verify-commit v0.1.0^{commit}git verify-tag must report a Good signature from one of the keys above. A
missing or bad signature means the tag was not produced by the project — do not
trust it. (GPG will also warn that the key is not certified with a trusted
signature; that is expected, and is why the fingerprints are published here.)
Verify the signed checksum manifest, then check your archive against it:
gpg --verify SHA256SUMS.asc SHA256SUMS
sha256sum --ignore-missing --check SHA256SUMSThe signed source-commit.txt names the commit every archive, image and SBOM of
the release was built from. It must equal the commit the tag names:
gpg --verify source-commit.txt.asc source-commit.txt
[ "$(cat source-commit.txt)" = "$(git rev-parse 'v0.1.0^{commit}')" ] && echo matchThe minisign signature verifies the same manifest with any maintainer's key
from crates/cli/minisign-<maintainer>.pub; decdn self-update runs this check
itself and applies no release that fails it:
minisign -Vm SHA256SUMS -p crates/cli/minisign-<maintainer>.pubEach release publishes two images:
| Image | Default command | Contents | Digest file |
|---|---|---|---|
decdn/decdn-node |
decdn-node run |
the daemon, plus the decdn CLI for docker exec admin |
decdn-node-image-digest.txt |
decdn/decdn |
decdn --help |
the CLI only, decdn sponsor included |
decdn-image-digest.txt |
GPG has no native OCI-image signature, so the release publishes each pinned image digest and a detached signature over it. Confirm the signature, then pull by that exact digest:
gpg --verify decdn-node-image-digest.txt.asc decdn-node-image-digest.txt
docker pull "$(cat decdn-node-image-digest.txt)"The other images are the same with their own digest files.
Each image is published to two registries, ghcr.io/decdn/<image> and
decdn/<image> on Docker Hub. The digest file records the GHCR reference, but
the mirror is a verbatim manifest copy rather than a rebuild, so both serve the
same digest and that one signature covers both:
DIGEST="$(cut -d@ -f2 decdn-node-image-digest.txt)"
docker pull "ghcr.io/decdn/decdn-node@${DIGEST}"
docker pull "decdn/decdn-node@${DIGEST}" # identical bytesEvery tag you can pull — latest, <version> and <major>.<minor>, on either
registry — is created only after that digest has been signed, so an unpinned
docker pull decdn/decdn-node or docker pull decdn/decdn also resolves to a
signed image. Pulling by
digest is still stronger: it pins the exact bytes you verified.
CI pushes each image manifest untagged, so before signing no tag resolves to it — the tags above are created from the signed digest. The manifest is still fetchable by digest in that window; what the tags guarantee is that a pull by name never reaches unsigned bytes.
A prerelease (v1.2.0-rc1) is published only as its exact version tag —
latest and <major>.<minor> are never moved to a release candidate — and is
marked pre-release on GitHub, so decdn self-update never offers it.
Each image's SBOM (decdn-node-<version>-sbom.spdx.json and
decdn-<version>-sbom.spdx.json) ships with a matching .asc.
Container-image signing here is a GPG-over-digest attestation. A future release will add in-registry signatures (cosign); this section will change when that lands.
CI builds the release archives on GitHub runners; the maintainer verifies the published checksums, then signs them. The signature means a named maintainer vouches that these are the release artifacts. It is not a reproducible-build attestation, and it does not prove the binaries were compiled from the tagged source. To verify that yourself, build from the signed tag.
The container images are assembled from those same archives rather than
compiled separately, so each binary inside an image is byte-identical to the one
in its <binary>-<version>-<target>.tar.gz. Checking the archives against the
signed SHA256SUMS therefore also tells you what is in the images:
docker run --rm --entrypoint sha256sum ghcr.io/decdn/decdn-node:<version> \
/usr/local/bin/decdn-node /usr/local/bin/decdn
tar xzOf decdn-node-<version>-x86_64-unknown-linux-gnu.tar.gz | sha256sum
tar xzOf decdn-<version>-x86_64-unknown-linux-gnu.tar.gz | sha256sumThe decdn binary in ghcr.io/decdn/decdn:<version> is the same file.
The library crates and both binaries are also published to crates.io
(decdn-node, decdn-cli and the crates they depend on). Those artifacts
carry no maintainer signature — crates.io has no detached-signature mechanism,
and the .crate files are built and uploaded from a maintainer's machine after
the GitHub Release is signed, not from the signed archives.
If you need the guarantees described above, use the GitHub Release: its
SHA256SUMS and container digest are what a maintainer signs. cargo install
is a convenience path, and what it gives you is crates.io's own transport and
immutability guarantees — a published version can never be altered, only yanked.
To tie a .crate back to the signed tag yourself, read the commit out of the
.cargo_vcs_info.json that cargo embeds, and check it is the one the tag points
at. A plain file-by-file diff will not be clean: cargo rewrites Cargo.toml in
the package (inlining inherited fields, dropping [workspace]) and keeps the
original alongside it as Cargo.toml.orig.
tar xzOf decdn-cli-<version>.crate decdn-cli-<version>/.cargo_vcs_info.json
git rev-parse v<version>^{commit}cargo binstall decdn-cli (also decdn-node)
installs the GitHub Release archive for your target, at the URL the crate's
[package.metadata.binstall] names on crates.io. By default it does not fall
back to a third-party build; --strategies overrides that. When no release
archive downloads for your target, it runs cargo install instead. Pass
--locked so that build uses the published Cargo.lock.
Before it installs the archive, binstall verifies <archive>.minisig under the
minisign key in the crate's [package.metadata.binstall.signing] pubkey. It
refuses an archive whose signature is missing or does not verify, and builds
from source instead; --skip-signatures turns the check off. That key is the
key line (the second line) of the releasing maintainer's
crates/cli/minisign-<maintainer>.pub. binstall reads it from the
Cargo.toml on crates.io, so this check trusts crates.io for the key, not the
GPG-signed tag. To check the key, compare the pubkey in the published crate
with the second line of that file in the tag you verified:
tar xzOf decdn-cli-<version>.crate decdn-cli-<version>/Cargo.toml | grep '^pubkey'
git show v<version>:crates/cli/minisign-<maintainer>.pub | sed -n 2pA binstall signature proves that a maintainer signed the archive. It does not
prove that the archive is the version you asked for. Each <archive>.minisig
carries a signed trusted comment that names its archive, for example
file:decdn-0.3.0-x86_64-unknown-linux-gnu.tar.gz, and so its binary, version
and target. binstall prints that comment but compares it with nothing. So
whoever can replace release assets can serve an older signed archive under a
newer name, and binstall installs it. To check the name, verify the archive
yourself; minisign prints the trusted comment:
minisign -Vm decdn-<version>-<target>.tar.gz -P <pubkey>The rollback-proof paths are the GPG-signed SHA256SUMS, which names each
archive with its version, and decdn self-update, which checks that manifest
and refuses a downgrade.
Or verify the binary against the GPG-signed SHA256SUMS. binstall keeps only
the binary, not the archive, so download the same archive from the release,
verify it (§ Verify a binary archive), and compare hashes:
sha256sum ~/.cargo/bin/decdn
tar xzOf decdn-<version>-<target>.tar.gz | sha256sum