Repository navigation
Manifest signing: new boxes install and update only from a signed release - #475
Draft
teaspoonai wants to merge 4 commits into
Draft
teaspoonai wants to merge 4 commits into
teaspoonai wants to merge 4 commits into
Conversation
teaspoonai
force-pushed
the
feat/manifest-signing
branch
from
November 29, 2026 06:19
ce80d6f to
e4ed6c6
Compare
teaspoonai
added a commit
that referenced
this pull request
Nov 30, 2026
…nto the installer license branch install.sh keeps both sides: I1's license-key paragraph, TEAPORT_LICENSE_FILE / TEAPORT_LICENSE_MODE and their checks beside #480's agent paragraph, TEAPORT_INSTALL_AGENT / --install-agent and its checks (--install-agent is refused with any --only, --only license included). ci.yml keeps #475's signed-manifest dry run and composite-action layout, with #480's --install-agent dry-run step reading the checkout's manifest the same way, and one more refusal checked: --only license --install-agent. Docs: the flags paragraph names both sides' usage errors; elsewhere I1's text with both sides' citations to be moved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
teaspoonai
force-pushed
the
feat/manifest-signing
branch
from
December 1, 2026 04:26
d72460c to
a64dd4a
Compare
…ease Release manifests (stable.json, beta.json) and the bootstrap are signed offline with ssh-keygen -Y (keys release-main and release-backup; namespaces teaport-manifest and teaport-bootstrap). install.sh, teaport update and the brain's daily check verify the .sig before reading anything from the manifest, against /usr/lib/teaport/allowed_signers from the brain package (the checkout's manifest/allowed_signers on a first install). - The manifest names its channel, pins brain.commit, and has a sha256 for every artifact. Release candidates (brain-vX.Y.Z-rcN, .deb X.Y.Z~rcN) are allowed on beta only. A commit under a tag that isn't a release tag is refused and not offered. - manifest/check.py: measured against the last uploaded commit (manifest/last_upload.py). A strict .deb reader cross-checked byte for byte against dpkg-deb, with entry, control, Depends and conffiles rules. The factory signing helper carries the same reader. - release-deb.yml builds the release .deb from a tag only. build-deb.sh pins setuptools by hash and uses only hash-checked uv and nfpm. - The license gate's access block is under the signature: ACCESS_PROTOCOL=1, and https on the download host. DL_CHECK_TOKEN moves to the gate-check environment. - packaging/RELEASING.md: signing, the release keys, what it does not cover, the turn-on runbook. The settings are in "GitHub settings". The keys are placeholders until the turn-on (a draft until then). Squashed from feat/manifest-signing (42 commits and two merges of main), rebased onto main 5d3ccea. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eys (#474) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GITHUB_TOKEN is now ghs_ plus a JWT, about 520 characters and variable (GitHub's stateless installation tokens, rolled out by October 2026), so the 255-character cap refused it and every publish run's base step failed with "GITHUB_TOKEN is not a token". Keep the character check, raise the cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
teaspoonai
force-pushed
the
feat/manifest-signing
branch
from
December 1, 2026 07:04
a64dd4a to
a6d3384
Compare
teaspoonai
added a commit
that referenced
this pull request
Dec 1, 2026
#475 was rebased onto main bd7a766. This branch already held its content (old head e4ed6c6 plus bd7a766), and the token fix be2c065 was cherry-picked just before. The rebase's ci.yml --install-agent resolution is equivalent to this branch's (it exports TEAPORT_MANIFEST_UNSIGNED before the first dry-run). The docs re-cite is redone by the lint after main is merged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
teaspoonai
added a commit
that referenced
this pull request
Dec 1, 2026
Same content as a64dd4a (merged before): range-diff shows the RELEASING and token-fix commits unchanged and the signing commit differing only in its docs citations. A trial merge's conflicts hold no #475 line missing here except the ones this branch replaced on purpose (the helper list, RELEASING's watch list, the --install-agent step's export form). The re-cite a6d3384 is for #475's tree; this branch's citations lint clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft. Do not merge yet. The release keys in this PR are placeholders. Turn-on waits for two things, so there is only one key ceremony:
Until then the steps in
packaging/RELEASING.md"Turning signing on (once)" are on hold: the GitHub settings, the keys on the signing laptop and the turn-on day.What this does
From this change, new boxes install and update only from a release manifest signed with an offline key. Existing boxes aren't covered: they are on unsigned code and pick this up with their next update.
install.sh,teaport updateand the brain's daily check verify<channel>.json.sigwithssh-keygen -Y verify, before reading anything from the manifest. The keys are in/usr/lib/teaport/allowed_signers, which the brain package installs. A first install uses the checkout'smanifest/allowed_signers.release-mainandrelease-backup. Namespaces:teaport-manifest,teaport-bootstrap.install-bootstrap.shcarries the keys and is signed too.brain.commit, and has a sha256 for every artifact.brain-vX.Y.Z-rcNmust shipteaport-brain_X.Y.Z~rcN_arm64.debwith that controlVersion. A manifest that names a commit under a tag that isn't a release tag is refused and not offered.manifest/check.py, the publish tripwire.publishrun uploaded and read back (manifest/last_upload.py, from the Actions API)..debstrictly, with byte-equal cross-checks againstdpkg-deb.Dependsagainstnfpm.yaml, and the conffiles.release-deb.ymlbuilds the release.debonly from a tag. It has no permissions by default, and three jobs: build, sha256 and check.build-deb.shpins setuptools by hash and uses only hash-checked uv and nfpm.access, and its installer must declareACCESS_PROTOCOL=1.access.apiandaccess.gatedmust be https on the download host.check.py, the signing helper and aninstall.shbackstop all check this.DL_CHECK_TOKENmoves from the repository to agate-checkenvironment, main only.packaging/RELEASING.mdcovers signing, the release keys, what signing doesn't cover, and the turn-on runbook. The settings this relies on are in its "GitHub settings" section (CODEOWNERS, and the download gate Worker deployed from main by CI #461).The laptop helper and its skill are in Teaspoon-AI/teaport-factory#26.
Before this can merge
manifest/allowed_signers;trusted_signersblock ininstall-bootstrap.sh;install-bootstrap.sh.sig, and the engine and model baseline written on paper (RELEASING.md step 1).r2-publishreviewer,gate-check, and fork PR approval.Tests
These were run locally on the branch rebased onto main 0cb5574 (a6d3384):
brain/tests/test_suite.py), and main's changed test files since the last rebase;--install-agentand--only brain;test_against_teaport.pyagainst this tree. The helper's driver last ran on e4ed6c6, before install.sh --install-agent: install OpenClaw on a box with no agent (#479 A) #480 and brain: listen on the box alone, and refuse to start without GATEWAY_TOKEN (#477) #490; the helper is unchanged since.CI's worker tests run on Node 24 and pass.
The
publishcheck fails until turn-on, by design. Itsartifactsjob stops on three things this draft can't have yet:manifest/stable.json.sigis missing;.debthe manifest names installs no/usr/lib/teaport/allowed_signers;The key ceremony and the first signed release (RELEASING.md) supply all three.
Follow-ups: #423 (CI-built packages), #424 (replay).
🤖 Generated with Claude Code