Repository navigation
Move mirror publishing into this repo (dedicated write-only deploy key) - #16
Merged
Merged
Conversation
…repo The publisher previously lived in the private acosmi/crabcode-source repo (sync-plugins-to-mirror.yml) only because the deploy credential was there. Per the 2026-08-17 decision that plugin releases belong in the plugin repo, this ports the publisher verbatim — zip layout contract (ARC_PREFIX on every entry), mirror-distribution.json slimming with the three-way same-source manifest, content-first/pointer-last atomic ordering, explicit printf sha256 sidecar form, and real digest verification against served bytes — with only the repo-local changes: self-checkout, push:main + workflow_dispatch triggers (deliberately no schedule), and a dedicated write-only deploy key (restrict + rrsync -wo, independently revocable, held in this repo's secrets). notify-mirror.yml comment refresh: the credential-location and "publisher polls on a schedule" notes described the pre-migration world. The audit workflow itself remains read-only and secret-free. The retired enterprise workflow is removed in a follow-up PR over there. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
What
Ports the CN-mirror publisher from the private
acosmi/crabcode-sourcerepo (sync-plugins-to-mirror.yml) into this repo aspublish-to-cn-mirror.yml, per the 2026-08-17 decision that plugin releases live in the plugin repo.Publishing semantics: verbatim
Every load-bearing behavior is carried over unchanged, with its original in-file rationale:
marketplaces/crabcode-plugins-official/, exec bits preserved via realzip, and the full-quantifier self-check (every entry must carry the prefix — "at least one" can't see violations)..crabcode-plugin/mirror-distribution.jsonfrom the same checkout the auditor reads (three-way same-source; prefixes must contain/tests/)..sha256sidecars land first;latestpointer switches last.printf '%s %s\n'(never platform-defaultsha256sumoutput), matching the auditor regex byte-for-byte.push: main+workflow_dispatchonly.What changed (repo-local only)
actions/checkoutof this repo itself (no cross-repo token, guard step deleted — nothing to guard).restrict,command="rrsync -wo /var/www/updates/crabcode"write-only key held in this repo's secrets (MIRROR_*, all four set), independently revocable from the enterprise CI key. Blast radius of the secret equals "malicious content merged to main gets faithfully published" — no new trust surface; fork PRs cannot read secrets. Key installed on the mirror server and live-verified: arbitrary commands are refused by rrsync (is not rsync), only rsync-write within the mirror content dir is possible.notify-mirror.ymlcomment refresh only (no logic change): credential-location and "publisher polls on a schedule" notes described the pre-migration world. The auditor stays read-only, secret-free, and keeps resolving this repo's ownci.ymlmain-push runs — unaffected by the migration.Follow-up
The enterprise
sync-plugins-to-mirror.ymlis retired in a separate PR on that repo once this lane's first publish is verified end-to-end. Until then both lanes coexist safely (content-addressed, idempotent).🤖 Generated with Claude Code