Repository navigation
Description
P0: zero-touch install on a clean VPS — release signing is not a VPS task
Operator requirement (confirmed 2026-11-15): fresh Ubuntu VPS, copy ONE generated command from Nexus Subscription Studio and paste into terminal. No manual key generation, signing manifests, Git checkout, compilation, hash lookup or artifact review on VPS. Docker, TLS, Sub pairing and manager service must install and start automatically. Updates must also be one click from Nexus.
Current release breakage
Nexus main merged PR #475, which demands Ed25519-only Sub-agent requests, but Subscription Studio still pins legacy installer commit 51d90ff15ef2a68415e23b325b3a37393b8b97b5 (SHA-256 19d3049b...). This installer enrolls a bearer manager identity, so the generated command is incompatible with Nexus.
Sub PR #11 contains compatible v0.4.0 source and the edge limiter, but release verification rejects the updated bytes because the old manifest is signed for v0.3.0. Never disable this check or instruct VPS operators to manually sign anything.
Architecture — secure and automatic supply chain
- Replace manual per-release offline signing with a centrally automated release workflow based on GitHub Actions OIDC + Sigstore keyless attestations (or non-exportable KMS with OIDC federation), tied to an allowlisted release workflow, tag, exact commit SHA and immutable artifact digest. No reusable signing private key on the VPS or in arbitrary workflow secrets.
- Release only from protected reviewed source after all tests, including integrated Nexus/Sub E2E, have passed; separate untrusted PR jobs from trusted signing permissions. Use immutable release tag/artifacts and anti-rollback version checks.
- Bootstrap must verify the signed provenance of installer bytes before root execution. Do not use unverified curl|bash or accept checksum+download from the same mutable location as the sole trust signal. The verifier itself must come from a trusted packaged/pinned source.
- The manager must verify the same publisher/workflow identity, source ref/commit and exact file hash on each update before execution, fail closed on network/attestation failure, and recover previous known-good service state.
- Make Nexus Studio's installer selection follow only an approved published release (automated update of immutable commit+SHA in Nexus after release) and block generation of incompatible old installer commands. No manual end-user work.
- End-to-end test: clean Ubuntu 22.04/24.04 VPS; command copied from Nexus; initial pairing uses one-time code via stdin; HTTPS, Docker, limiter, root-only Ed25519 identity and connection status work; update from panel works. Negative tests: unsigned tamper, malicious alternate signer, replay, expired code, old protocol, revoked release, rollback, CDN/IPv6 peer spoofing, direct Nexus origin bypass.
- Documentation must distinguish publisher internal release infrastructure from operator installation. Operator instructions contain only the single copy/paste command plus domain DNS prerequisite.
Mandatory blocker
Until an automated attested release is published and Studio points to it, do not claim Sub installs out of the box. Do not merge unsigned PR #11 just to turn CI green. Current Nexus main and previous installer are incompatible and must be treated as a release blocker.
Related: Sub #11, Nexus #475, Nexus security #476.
Activity
TriplexCorp commentedon Nov 15, 2026
Implemented (2026-11-15). Sub PR #13 merged (
190019d5) and PR #14 merged (e9d05f6). The trusted push-to-mainattested-release.ymlpublishes Sigstore OIDC provenance automatically for install.sh, manager.py, release_verify.py and VERSION; the main workflow passed and also verified all artifacts anonymously using the public REST bundle API with GH_TOKEN unset and isolated gh config. The old manual/offline release.json signer and private key requirement were removed, while the Sub machine Ed25519 identity remains local and unchanged. Nexus Subscription Studio PR #478 merged (bb431db4): one-command bootstrap installs pinned-keyring GitHub CLI >=2.102, verifies public offline bundle and exact workflow/source commit before root execution, passes pairing secret via stdin, and supports signed management updates. Sub CI all green; Nexus merge/main CI in progress. Still to verify in deployment: a genuine fresh Ubuntu 22.04/24.04 VPS with DNS/TLS/Docker + update from panel and blocking direct Nexus-origin subscription bypass (separate P0 security #476). Do not claim a live canary has been tested yet.TriplexCorp commentedon Nov 17, 2026
Security rollout update 2026-11-17: PR #20 adds exact old Docker image-ID snapshots, fail-closed verified HTTPS health check and forced recreation on rollback. Sub manager unit CI PASS; AMD64/ARM64 real Docker rollback + Trivy + spoofed-IP gate PASS. Both architectures proved old IDs and running containers are actually recovered after deliberate tag swap, 0 HIGH/0 CRITICAL on candidate runtime images. Still blocked for release: initial upgrade from the old manager cannot rely on new manager's snapshot code; requires its own migration/immutable-tag protection before first use, followed by disposable clean Ubuntu VPS actual DNS/ACME/Ed25519 enrollment and full signed update/rollback E2E. PR remains draft, no live servers touched, no waivers.
TriplexCorp commentedon Nov 17, 2026
17 Nov 2026 — first-upgrade blocker resolved in verified PR #20 candidate 6afb814. Both required suites are SUCCESS: Sub gateway CI 44010363870 and AMD64+ARM64 real-Docker image/CVE/rollback gate 44010363883.
The signed installer now uses SHA-specific immutable image tags so the very first upgrade from an old Sub manager cannot overwrite previous Docker images. Before mutating running files it also snapshots the existing Compose, manager version/settings/Ed25519 key, unit file and validates old images; on failure it restores previous files and forcibly recreates both original Docker containers. The gate executed the actual installer backup/EXIT rollback functions on disposable Compose services, injected a failure after changing image refs/manager config, and independently confirmed the exact previous image IDs, private data permissions, manager config and both running containers returned on both architectures. The modern manager rollback test also passes. 0 HIGH / 0 CRITICAL in both exact deployable runtime images; residual per architecture Caddy 2 Medium + 1 Unknown, limiter 6 Medium + 1 Low, reports retained.
Remaining last acceptance only: external disposable Ubuntu VPS with real DNS/ACME, actual Studio signed enrollment, old-manager upgrade and forced failed update, IPv4/IPv6 client IP verification. The release remains draft and not published to production because no such VPS evidence exists; no production VPS touched. Do not reopen broad audit work; ProjectHimera excluded.