The public APT archive is intentionally fail-closed. Website/apt/key-info.json must remain not-yet-published until a signed release and a successful Pages deployment have produced a verified package index, signed InRelease metadata and public key pins. Do not edit the metadata to active manually.
Use a key reserved for the APT archive. Do not reuse the release-signing key, a personal identity key or an SSH key.
gpg --quick-generate-key "FORGE APT Archive <apt@netcore-technologies.github.io>" rsa4096 sign 2y
gpg --list-secret-keys --keyid-format LONGCopy the full fingerprint for the new primary key. Keep the key protected by a strong non-empty passphrase and keep a separate encrypted offline backup. The archive key can be rotated independently of the release-signing identity.
Install and authenticate GitHub CLI with an account allowed to manage repository Actions secrets and variables:
gh auth login
gh auth statusFrom the FORGE checkout, run:
bash scripts/configure-apt-signing.sh NetCore-Technologies/FORGEEnter the full fingerprint and the key's passphrase at the prompts. The helper verifies that the private key exists in the local GPG keyring, exports its passphrase-protected armored form directly into GitHub Secrets, and pins the same full fingerprint in repository variables. The private key is streamed to gh secret set; it is not printed, written into the checkout or saved as a plaintext file by the helper.
The helper configures only:
| Kind | Name |
|---|---|
| Secret | FORGE_APT_SIGNING_PRIVATE_KEY |
| Secret | FORGE_APT_SIGNING_PASSPHRASE |
| Variable | FORGE_APT_SIGNING_KEY_ID |
| Variable | FORGE_APT_KEY_FINGERPRINT |
It deliberately does not enable FORGE_APT_REPOSITORY_ENABLED or FORGE_RELEASE_ENABLED and does not publish a release.
The APT deploy job consumes only a release that has already passed the signed release workflow. Configure its independent credentials using a separate signing key:
| Kind | Name |
|---|---|
| Secret | FORGE_RELEASE_SIGNING_PRIVATE_KEY |
| Secret | FORGE_RELEASE_SIGNING_PASSPHRASE |
| Variable | FORGE_RELEASE_SIGNING_PUBLIC_KEY |
| Variable | FORGE_RELEASE_SIGNING_FINGERPRINT |
The public key and fingerprint must identify the same key as the private signing key. Keep the private key and passphrase in GitHub Secrets only. Review .github/workflows/release-assets.yml for the complete release verification and approval path.
In GitHub repository Settings:
- Open Environments and protect github-pages with the required reviewer/approval policy.
- Confirm the release workflow, signer fingerprints and required status checks are correct.
- Set repository variable FORGE_RELEASE_ENABLED=true only when the signed release path is ready to be used.
- Set repository variable FORGE_APT_REPOSITORY_ENABLED=true only when the APT archive signing key and Pages protection are ready.
The deployment workflow checks both variables, a signed and approved version tag, release assets, checksums, release signatures, the APT signing fingerprint, generated package indexes and both signed Release metadata files. It publishes the public key and creates the active metadata only inside that successful deployment.
After the Deploy website and signed APT repository workflow completes successfully, inspect:
curl -fsSL https://netcore-technologies.github.io/FORGE/apt/key-info.jsonProceed only when the returned metadata has status active, a release tag, a 64-character key SHA-256 and the expected full key fingerprint. The installer independently verifies the downloaded binary keyring against both pins before it writes the APT source.
sudo apt update
sudo apt install forgeIf any credential, fingerprint, release approval, signed package, repository index or Pages deployment check is missing or invalid, the public archive must remain inactive. Keep installers/apt.sh and scripts/install-apt.sh fail-closed; do not bypass their metadata and signature checks.