Skip to content

feat(catalog): keep official plugin releases available for version pins - #23

Merged
Quick104 merged 2 commits into
mainfrom
feat/official-release-history
Nov 19, 2026
Merged

Quick104 merged 2 commits into
mainfrom
feat/official-release-history

Conversation

@Quick104

@Quick104 Quick104 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

When a new official plugin release replaces the previous one in discovery, a fresh deployment loses the catalog metadata it needs to install the older version. This change lets operators reproduce a pinned install after discovery advances.

Related issue: N/A
Discussion: Silo-Server/silo-server #4585

Approach

The publisher writes an immutable descriptor under releases/<plugin-id>/<version>.json alongside the current index. Each descriptor records the source release, platform assets, checksums and signature bundle. Repeating the same publication succeeds. A changed descriptor for an existing version is refused. The current index records withdrawals so administrators can stop new installs of a withdrawn release.

The backfill covers 32 signed releases across 14 first-party repositories. Current discovery stays compatible with existing Silo servers. Publish these descriptors before releasing exact-version provisioning in the server.

Validation

go test ./..., go vet ./... and go build ./... passed. gofmt -l . reported no files. In a fresh two-replica server sandbox, discovery advertised OIDC 0.1.2 while the candidate catalog supplied the 0.1.1 descriptor. Silo fetched the official binary and verified its signature before installing it. The package then served sign-in through Authelia.

Risks

Withdrawing a release prevents a new provisioning install from selecting it. Deployments that already hold a verified archive can continue to use it offline.

Checklist

  • I read and can explain the diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: OpenAI Codex in T3 Code, Claude Code, and Antigravity
  • Tool(s): Codex, Claude Code, Antigravity, and GitHub CLI
  • Council: Opus 5.5 and Neon, 1 round on the catalog, reviewed 7d57026
  • Model(s): gpt-6.2-astra, gpt-6.2-sol, claude-fable-5-2, claude-opus-5-5, and gemini-4-neon
  • Involvement: AI-assisted
  • Adversarial review: Opus and Neon independently checked release identities, asset URLs, checksums, and agreement between the current index and all 32 descriptors. Neither reported a catalog defect.

Note

Keep official plugin releases available for version pins via immutable release descriptors

  • Adds per-version release descriptors under releases/ and backfills manifests for many official plugins, so older pinned versions stay installable
  • The update-catalog tool gains -history-only (backfill descriptors without changing the current index) and -withdraw (mark a release withdrawn) flags; withdrawal rejects combined use with history-only or rollback
  • Releases now require checksums.txt, store per-binary SHA-256 digests, release tag, and source commit in the catalog; descriptor publication is immutable — republishing succeeds only with byte-identical content
  • Index writes go through a same-directory temp file and os.Rename, and duplicate release assets (same platform, bundle, or checksums) are rejected during parsing
  • Behavioral Change: -withdraw and -history-only are new flags; already-listed versions are no longer skipped early in normal mode, and withdrawn releases are rejected. See main.go, release.go, and catalog.go

Macroscope summarized 07d82e2.

@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 19, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T22:20:40.440202Z 07d82e2 New commits
🔒 Security Review ✅ Completed 2026-11-19T22:23:15.609706Z 07d82e2 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-kody

silo-kody Bot commented Nov 19, 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 19, 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 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 84 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: 754e9ad2-a28c-4bcf-a0b5-ad9909f4ce46
Commits

Reviewing files that changed from the base of the PR and between 7d57026 and 07d82e2.

Files selected for processing: 2

  • README.md
  • catalog/catalog_test.go
Walkthrough

The catalog updater now verifies downloaded binaries against release checksums and, for signed releases, verifies their attestations. It publishes immutable per-version descriptors, supports history-only publication and withdrawals, and adds checksums and release metadata to the current manifest and historical release records.

Changes: Catalog release lifecycle

Layer / File(s) Summary
Catalog release contracts and validation
catalog/catalog.go, catalog/release.go, catalog/catalog_test.go
Catalog entries add binary checksums, release tags, source commits, and withdrawal records. Release helpers validate descriptor paths and checksum entries, reject duplicate release assets, and support withdrawal lookup and insertion.
Release verification and publication
cmd/update-catalog/main.go, cmd/update-catalog/main_test.go
The updater adds history-only and withdrawal modes. It checks downloaded binaries against checksums.txt, verifies binaries against an available signature bundle, and publishes release descriptors without replacing differing existing contents. Index writes use temporary files.
Current catalog checksum metadata
manifest.json
The current entries for 14 plugins add per-platform binary checksums, release tags, and source commits.
Versioned release descriptors
releases/*
Versioned descriptors are added for historical plugin releases. They include plugin configuration and capabilities, artifact URLs and checksums, and release metadata.
Catalog workflow and contributor guidance
.github/workflows/update-catalog.yml, README.md, CONTRIBUTING.md
The workflow stages and checks both the manifest and release descriptors. The documentation describes verification, immutable descriptors, withdrawals, history-only publication, and catalog-output validation.

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant UpdateCatalog
  participant ReleaseAssets
  participant ChecksumsFile
  participant GH
  participant Descriptor
  participant CatalogIndex
  UpdateCatalog->>ReleaseAssets: Download binaries and checksums
  UpdateCatalog->>ChecksumsFile: Match binary digests to asset entries
  UpdateCatalog->>GH: Verify binaries against signature bundle
  UpdateCatalog->>Descriptor: Publish version descriptor
  UpdateCatalog->>CatalogIndex: Publish updated index
Loading

Possibly related PRs

Merge Risk: Low · previous review 7d570

The change adds verified, immutable release descriptors and withdrawal support. Before merge, document how to commit and publish a withdrawal so servers actually stop selecting the release, and add tests for the duplicate bundle and checksum refusals. Neither gap affects ordinary release publication.

Security architecture risk: Minimal · up to 7d570

The inspected change preserves existing publisher identity controls while adding digest verification and write-once release records. No introduced or worsened material security or failure-containment issue was established. Withdrawal enforcement remains dependent on server support.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The shared catalog distributes records for authentication and other official plugins, so an incorrectly accepted record could affect multiple deployments installing that plugin rather than one tenant. Dispatch access alone does not establish authority to supply another plugin's implementation: the updater checks the fixed repository/plugin binding and applicable provenance before publication.

Security Findings and Attack Paths

  • observed — The inspected route from dispatch-supplied repository and tag to published metadata retains input validation, official identity binding, release-URL pinning, and signed-release verification. New checksum validation and conflicting-descriptor rejection narrow accepted publication states. No control bypass was established along this route; remote backfill contents and downstream installation behavior remain unverified.

Trust Boundaries and Controls

  • observed — Checksums authenticate consistency with the downloaded checksums.txt, not publisher identity by themselves. Signed publication additionally verifies each binary through the fixed attestation policy and checks transparency-log evidence and source-commit agreement. The existing unsigned-release allowance remains bounded by the signed-entry ratchet; history-only publication does not receive that allowance.

Resilience and Maintainability Implications

  • observed — The automated workflow exposes neither withdrawal nor history-only flags, and repository_dispatch cannot enable rollback. Conflicting descriptor contents fail closed rather than silently changing pinned metadata. Withdrawal leaves discovery selection and downstream enforcement as separate responsibilities, explicitly documented for operators.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the catalog now keeps official plugin releases available so pinned version installs still work. The changeset adds per-version release descriptors under releases/, wit…
Description check Passed The description states the problem (fresh deployments losing metadata for older pinned versions), the approach (immutable per-version descriptors, withdrawals, checksum verification), the backfill sco…
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: the catalog now keeps official plugin releases available so pinned version installs still work. The changeset adds per-version release descriptors under releases/, withdrawal support, and checksum verification in update-catalog, all of which match the title's scope.

Full details: Description check

Explanation

The description states the problem (fresh deployments losing metadata for older pinned versions), the approach (immutable per-version descriptors, withdrawals, checksum verification), the backfill scope, validation steps, and risks. All of these relate directly 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

@silo-triage silo-triage Bot added enhancement New feature or request go Pull requests that update go code triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 19, 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: b7a0ce11-099d-4eee-9093-5c5b73115321
Commits

Reviewing files that changed from the base of the PR and between 12f863b and 7d57026.

Files selected for processing: 41

  • .github/workflows/update-catalog.yml
  • CONTRIBUTING.md
  • README.md
  • catalog/catalog.go
  • catalog/catalog_test.go
  • catalog/release.go
  • cmd/update-catalog/main.go
  • cmd/update-catalog/main_test.go
  • manifest.json
  • releases/silo.audiobook-metadata/0.1.10.json
  • releases/silo.audiobook-metadata/0.1.11.json
  • releases/silo.audiobook-metadata/0.1.7.json
  • releases/silo.audiobook-metadata/0.1.8.json
  • releases/silo.audiobook-metadata/0.1.9.json
  • releases/silo.auth.ldap/0.1.1.json
  • releases/silo.auth.ldap/0.1.2.json
  • releases/silo.auth.oidc/0.1.1.json
  • releases/silo.auth.oidc/0.1.2.json
  • releases/silo.autoscan.arr/0.1.3.json
  • releases/silo.autoscan.arr/0.1.4.json
  • releases/silo.ebook-metadata/0.1.2.json
  • releases/silo.ebook-metadata/0.1.3.json
  • releases/silo.ebook-metadata/0.1.4.json
  • releases/silo.manga-metadata/0.1.2.json
  • releases/silo.manga-metadata/0.1.3.json
  • releases/silo.mdblist/0.5.1.json
  • releases/silo.mdblist/0.5.2.json
  • releases/silo.sportarr/1.0.4.json
  • releases/silo.sportarr/1.0.5.json
  • releases/silo.theintrodb/0.2.2.json
  • releases/silo.theintrodb/0.2.3.json
  • releases/silo.tmdb/1.2.30.json
  • releases/silo.tmdb/1.2.31.json
  • releases/silo.tvdb/1.5.1.json
  • releases/silo.tvdb/1.5.2.json
  • releases/silo.watchprovider.floppy/0.3.2.json
  • releases/silo.watchprovider.floppy/0.3.3.json
  • releases/silo.watchprovider.mdblist/0.3.1.json
  • releases/silo.watchprovider.mdblist/0.3.2.json
  • releases/silo.watchprovider.simkl/0.5.1.json
  • releases/silo.watchprovider.simkl/0.5.2.json

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

silo-kody Bot commented Nov 19, 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 a3a9306 into main Nov 19, 2026
4 checks passed
@Quick104
Quick104 deleted the feat/official-release-history branch November 19, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant