Skip to content

feat(catalog): bind plugins to their repositories and check release signatures - #21

Merged
Quick104 merged 3 commits into
mainfrom
feat/signed-plugin-releases
Nov 13, 2026
Merged

Quick104 merged 3 commits into
mainfrom
feat/signed-plugin-releases

Conversation

@Quick104

@Quick104 Quick104 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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-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.

🤖 Generated with Claude Code

Note

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.

Macroscope summarized c3a00a8.

…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]>
@silo-kody

silo-kody Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

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).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

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.

Learn how review limits work.

Review configuration:

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: 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.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Feature

Sequence Diagram(s)

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T03:33:04.068789Z c3a00a8 New commits
🔒 Security Review ✅ Completed 2026-11-13T03:35:21.980885Z c3a00a8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-triage silo-triage Bot added the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Nov 13, 2026
Comment thread catalog/official.go Resolved
@silo-triage silo-triage Bot added the bug Something isn't working label Nov 13, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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.

Comment thread catalog/release.go Resolved
Comment thread README.md Resolved
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]>
@silo-kody

silo-kody Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-kody

silo-kody Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 merged commit 1d3b2a0 into main Nov 13, 2026
4 checks passed
@Quick104
Quick104 deleted the feat/signed-plugin-releases branch November 13, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant