You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(catalog): bind plugins to their repositories and check release signatures - #21
Related issue: N/A (maintainer-directed; part of signed plugin releases, with Silo-Server/.github#3)
The catalog is what tells every Silo server which plugin binaries to download and run, and servers update plugins unattended. update-catalog built entries from whatever repository and tag a dispatch named, and every plugin repository holds a token that can send that dispatch. It did not check that the repository is the one that owns the plugin ID, validate the tag before using it in request URLs, or check that the release's asset URLs belong to that release. So one plugin repository, or a leaked dispatch token, could overwrite another plugin's catalog entry.
Plugin releases are also about to be signed (Silo-Server/.github#3), and the catalog had no way to record or check a signature.
Approach
update-catalog now refuses a release unless all of these hold, and writes manifest.json only after the last check:
The repository and tag match strict patterns before either goes into a URL, and the release's tag_name equals the requested tag.
The repository is the one bound to the plugin ID in a table in this repository (catalog/official.go). Silo server keeps its own copy of that table.
Every catalogued asset URL is exactly that release's download URL for that asset.
The release is not a draft or prerelease, and its version is newer than the listed one. Re-running for the listed version is a no-op. A manual workflow_dispatch run can set allow_rollback; a dispatch payload cannot.
manifest.json is read at one commit: the commit named in the signing certificate for a signed release, or the commit the tag resolves to for an unsigned one.
For a release with plugin.sigstore.json, every binary verifies with gh attestation verify against the shared release workflow at refs/heads/main, the plugin's repository, the tag, a GitHub-hosted runner, and the SLSA provenance predicate, and every binary names the same commit. The tool also requires the public-good Sigstore issuer and a transparency-log entry, which gh alone does not.
Signed entries gain a package-level bundle_url next to checksums_url. Old servers ignore it. Unsigned releases are still accepted for a plugin whose entry has no bundle_url, so plugins can move to signing one at a time; once an entry is signed, an unsigned release of that plugin is refused.
update-catalog.yml drops its concurrency group, which was keyed on the dispatch payload and let bogus dispatches displace a plugin's pending run. Runs now race on the push, and the existing fetch-reset-retry loop resolves it. The workflow token gets no permissions, and its actions are pinned by SHA.
update-manifest.yml is removed. It did the same job as update-catalog's manual run, with a plugin list and repository mapping that were already wrong for several plugins.
Validation
go test ./..., go vet ./..., go build ./...: pass. gofmt -l .: no output. actionlint 1.7.12: no findings.
Unit tests cover each refusal: input patterns, the plugin table, tag mismatch, drafts and prereleases, asset URLs on another repository, host or tag, version order and both override cases, commit binding, the signed-entry ratchet, the gh arguments, and the output check.
Run locally against live releases: a tag containing path traversal is refused before any request; a release from a repository outside the table is refused; the currently listed tmdb release is a no-op; the previous tmdb release is refused as older; rebuilding the current tmdb entry from a catalog copy one version behind reproduces the live entry byte for byte.
The gh attestation verify flags and output check were exercised against a public project's attestation bundle, including wrong repository, ref, identity, and a modified artifact, each of which fails.
Not run: the signed path against a real plugin bundle. No plugin release is signed yet; the first one through feat(ci): add a reusable signed plugin release workflow .github#3 will exercise it. The workflow changes (permissions: {}, the allow_rollback input) have not run on Actions.
Risks
silo.requests.arr and silo.requests.seerr are listed in the catalog, but their repositories now live outside this organization and are not in the table. Their entries stay at their current versions until they are removed or rebound.
When two releases of one plugin race, the newer one is listed whichever pushes first, and the older run now ends as failed instead of being superseded quietly.
Adding a first-party plugin now needs a table entry here and in Silo server.
main of this repository is not protected, so a direct push to manifest.json bypasses these checks; servers verifying signatures is the control for that.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
AI Disclosure
Harness: Claude Code (in T3 Code)
Tool(s): Claude Code
Model(s): claude-fable-5-2, claude-opus-5-5
Involvement: Fully AI-generated, human verification pending
Adversarial review: A separate claude-opus-5-5 agent reviewed the updater and workflow as a holder of the dispatch token and as a writer to one plugin repository. It found that an unvalidated tag could redirect the release and manifest fetches to another repository, that an older release could replace the current entry, that the manifest was not tied to the signed commit, that a payload-keyed concurrency group let dispatches displace pending runs, and that prereleases were catalogued. All five are fixed in this change with a test per refusal; the traversal was reproduced before the fix and is refused after it.
Bind catalog plugins to official repositories and verify release signatures
Adds an exact plugin-ID-to-repository table in official.go; updates reject unknown plugin IDs and repository mismatches.
Adds a full update pipeline in main.go: input/tag/commit validation, semver version checks, release-status checks, asset URL validation, and commit-pinned manifest fetching. Older versions are refused unless --allow-rollback is set (manual workflow runs only).
Signed releases are verified with gh attestation verify against signer identity, issuer, source ref, and SLSA predicate type (signature.go). Once a plugin has a signed entry, unsigned releases are refused.
Manifests are now fetched at a commit SHA instead of a tag, and asset URLs must match the expected GitHub release-download URL format (release.go).
The update-manifest.yml manual workflow is removed; update-catalog.yml gains the rollback option, pinned action SHAs, push retries against main, and a token with no permissions.
Risk: catalog_test.go fails to compile — TestCheckVerifyOutput's result-building helper applies unary + to a string literal, which is invalid Go.
…ignatures
update-catalog trusted the repository and tag in a dispatch payload and
the asset URLs the release returned. It now validates both inputs before
they reach a URL, publishes a plugin ID only from the repository bound to
it, requires asset URLs to be the release's own downloads, reads
manifest.json at the release's commit, refuses drafts, prereleases and
versions older than the listed one, and records a signed release's
bundle_url after verifying every binary against the shared release
workflow's identity. Once a plugin has a signed entry, an unsigned release
of it is refused.
update-manifest.yml is removed: it duplicated update-catalog's manual run
with a repository mapping that was already wrong for several plugins.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).
Limit details: You’ve used the included review currently available. Your 81 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: be72488a-f9d8-4bb5-a7bb-79fcb9e927cf
Commits
Reviewing files that changed from the base of the PR and between eb9e534 and c3a00a8.
Files selected for processing: 3
README.md
catalog/catalog_test.go
catalog/release.go
Walkthrough
The updater now validates release identity and eligibility, checks release assets and provenance, and fetches manifests by commit. The catalog workflow supports optional rollback permission. The former manifest workflow is removed, and the README and contribution guide describe the updated checks.
Changes: Catalog Release Updates
Layer / File(s)
Summary
Release identity and eligibility checks catalog/official.go, catalog/release.go, catalog/catalog.go, catalog/catalog_test.go, go.mod
The catalog code adds official plugin repository bindings and checks for repository and tag inputs, commit SHAs, release eligibility, versions, and release asset URLs. Tests cover the checks, and golang.org/x/mod is added as a direct dependency.
Signature verification and package assets catalog/signature.go, catalog/catalog.go, catalog/catalog_test.go
The package can include an optional bundle URL. New helpers construct attestation verification arguments, validate verification results, and reject removal of a bundle from a previously signed catalog entry.
Release verification and catalog update cmd/update-catalog/main.go
The updater checks releases and assets, verifies binaries against a bundle or resolves a tag to a commit, fetches the manifest at that commit, and writes the catalog. Downloads have size limits.
Workflow and contributor guidance .github/workflows/update-catalog.yml, .github/workflows/update-manifest.yml, README.md, CONTRIBUTING.md
The catalog workflow passes optional rollback permission and removes concurrency grouping. The former manifest workflow is deleted. The README and contribution guide document release checks and workflow behavior.
sequenceDiagram
participant CatalogWorkflow
participant UpdateCatalog
participant GitHubAPI
participant GHAttestationCLI
CatalogWorkflow->>UpdateCatalog: Pass repository, tag, and rollback option
UpdateCatalog->>GitHubAPI: Read release and download assets
UpdateCatalog->>GHAttestationCLI: Verify binaries against the release bundle
GHAttestationCLI-->>UpdateCatalog: Return verified source commit
UpdateCatalog->>GitHubAPI: Fetch manifest at the commit
UpdateCatalog->>GitHubAPI: Write the updated catalog
Loading
Merge Risk: Low · previous review eb9e5
Unusual prerelease-style tags such as v1.2.3-01 could be silently skipped by the updater, and the documented local ingestion example is refused as written. Both are small fixes and neither blocks the signing and binding checks.
Security architecture risk: Low · up to eb9e5
The change substantially strengthens release admission and limits cross-plugin impersonation. No introduced security bypass was identified in the inspected update and publication paths. Remaining uncertainty concerns compatibility with the external signing workflow, verification tool, and server-side policy before signed releases enter production.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — For attacks through release ingestion, repository-to-plugin binding limits a compromised source repository to its assigned plugin ID rather than another plugin’s entry. A malicious release from that authorized repository can still affect servers consuming that plugin. Catalog-writing credentials and the shared signing workflow remain broader trust authorities; this PR does not establish isolation from their compromise.
Trust Boundaries and Controls
observed — Dispatch payloads select a repository and release but cannot directly grant rollback or select the catalog identity independently of the official table. Recognized asset URLs must match the requested repository’s release. Manifest identity is checked again before the filesystem write, and workflow inputs are passed through quoted shell arguments.
Resilience and Maintainability Implications
inferred — Validation failures precede catalog writing, and updater errors stop the workflow before commit and push. The local file write is not atomic, but an interrupted or failed local write is not itself published by this workflow. Temporary verification files are removed on normal function return; downloads have time and size bounds.
Hardening Proposals
proposed — Before the first signed catalog publication, validate a real release against the runner’s gh version and the server verifier. Establish cross-repository conformance checks for repository bindings and signature policy so independently maintained copies cannot silently drift.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: plugins are bound to their repositories and release signatures are checked. It matches the catalog, official table, and signature changes in the summary. It is specifi…
Description check
The description covers the problem, the approach, validation, and risks. Each section maps to changes in the summary: the update-catalog refusal rules, the signed-entry bundle_url, the removal of upda…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: plugins are bound to their repositories and release signatures are checked. It matches the catalog, official table, and signature changes in the summary. It is specific and scannable, and 78 characters is within normal length for a conventional-commit title.
Full details: Description check
Explanation
The description covers the problem, the approach, validation, and risks. Each section maps to changes in the summary: the update-catalog refusal rules, the signed-entry bundle_url, the removal of update-manifest.yml, and the dropped concurrency group. It is detailed and clearly related to the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 5695bbc7-fca4-4aac-8aa8-07b9ed95e307
Commits
Reviewing files that changed from the base of the PR and between 6abde07 and eb9e534.
Files ignored due to path filters: 1
go.sum is excluded by !**/*.sum
Files selected for processing: 11
.github/workflows/update-catalog.yml
.github/workflows/update-manifest.yml
CONTRIBUTING.md
README.md
catalog/catalog.go
catalog/catalog_test.go
catalog/official.go
catalog/release.go
catalog/signature.go
cmd/update-catalog/main.go
go.mod
Files with no reviewable changes: 1
.github/workflows/update-manifest.yml
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
A suffix such as -01 passed the tag pattern but is not valid semver, so
CheckVersion compared it as equal to any other invalid version and a
later release was skipped as already listed. The README example now
names a tag newer than the listed version.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
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
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.
Problem
Related issue: N/A (maintainer-directed; part of signed plugin releases, with Silo-Server/.github#3)
The catalog is what tells every Silo server which plugin binaries to download and run, and servers update plugins unattended.
update-catalogbuilt entries from whatever repository and tag a dispatch named, and every plugin repository holds a token that can send that dispatch. It did not check that the repository is the one that owns the plugin ID, validate the tag before using it in request URLs, or check that the release's asset URLs belong to that release. So one plugin repository, or a leaked dispatch token, could overwrite another plugin's catalog entry.Plugin releases are also about to be signed (Silo-Server/.github#3), and the catalog had no way to record or check a signature.
Approach
update-catalognow refuses a release unless all of these hold, and writesmanifest.jsononly after the last check:tag_nameequals the requested tag.catalog/official.go). Silo server keeps its own copy of that table.workflow_dispatchrun can setallow_rollback; a dispatch payload cannot.manifest.jsonis read at one commit: the commit named in the signing certificate for a signed release, or the commit the tag resolves to for an unsigned one.plugin.sigstore.json, every binary verifies withgh attestation verifyagainst the shared release workflow atrefs/heads/main, the plugin's repository, the tag, a GitHub-hosted runner, and the SLSA provenance predicate, and every binary names the same commit. The tool also requires the public-good Sigstore issuer and a transparency-log entry, whichghalone does not.Signed entries gain a package-level
bundle_urlnext tochecksums_url. Old servers ignore it. Unsigned releases are still accepted for a plugin whose entry has nobundle_url, so plugins can move to signing one at a time; once an entry is signed, an unsigned release of that plugin is refused.update-catalog.ymldrops its concurrency group, which was keyed on the dispatch payload and let bogus dispatches displace a plugin's pending run. Runs now race on the push, and the existing fetch-reset-retry loop resolves it. The workflow token gets no permissions, and its actions are pinned by SHA.update-manifest.ymlis removed. It did the same job asupdate-catalog's manual run, with a plugin list and repository mapping that were already wrong for several plugins.Validation
go test ./...,go vet ./...,go build ./...: pass.gofmt -l .: no output.actionlint1.7.12: no findings.gharguments, and the output check.gh attestation verifyflags and output check were exercised against a public project's attestation bundle, including wrong repository, ref, identity, and a modified artifact, each of which fails.permissions: {}, theallow_rollbackinput) have not run on Actions.Risks
silo.requests.arrandsilo.requests.seerrare listed in the catalog, but their repositories now live outside this organization and are not in the table. Their entries stay at their current versions until they are removed or rebound.mainof this repository is not protected, so a direct push tomanifest.jsonbypasses these checks; servers verifying signatures is the control for that.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Bind catalog plugins to official repositories and verify release signatures
--allow-rollbackis set (manual workflow runs only).gh attestation verifyagainst signer identity, issuer, source ref, and SLSA predicate type (signature.go). Once a plugin has a signed entry, unsigned releases are refused.update-manifest.ymlmanual workflow is removed;update-catalog.ymlgains the rollback option, pinned action SHAs, push retries against main, and a token with no permissions.TestCheckVerifyOutput's result-building helper applies unary+to a string literal, which is invalid Go.Macroscope summarized c3a00a8.