Repository navigation
feat(docker)!: publish one Docker image, with PostgreSQL and Redis bundled, under the plain tags - #3319
Conversation
The omnibus image now moves latest along with aio. The regular image moves a new split tag, which docker-compose.split.yml and the omnibus build's default base use. Version-pinned tags keep their meaning. BREAKING CHANGE: an install that pulls latest gets the omnibus image. It runs Silo as PUID (911 unless set) instead of root, re-owns the bind-mounted Silo, transcode, and download directories on first start, needs root to start, and refuses a proxy or transcode node without NODE_URL. Such installs set PUID/PGID or switch to split. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Findings
|
| Layer / File(s) | Summary |
|---|---|
Publish and document image tags .github/workflows/docker.yml, README.md, docs/release-versioning.md |
The regular image uses split as its default-branch tag. The omnibus image publishes latest and aio. The README and release documentation describe the mutable pointers. |
Update split image defaults and compatibility checks docker-compose.split.yml, omnibus/Dockerfile, omnibus/rootfs/etc/silo-omnibus/migrate-compose-stack, docs/architecture/omnibus-image.md |
The split Compose file and omnibus Dockerfile default to the split image. The migration pin check accepts split. The architecture documentation describes omnibus compatibility requirements and the tag assignments. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Possibly related PRs
- Silo-Server/silo-server#3180: This PR updates the image pointers for the omnibus default deployment and the split multi-container layout.
- Silo-Server/silo-server#3118: This PR changes the omnibus image’s published tags and updates the related release documentation.
- Silo-Server/silo-server#3279: This PR changes the split Compose file to use the regular image’s new
splitpointer.
Suggested labels: enhancement, needs-review, impact: compat, evidence-required, size/S
Merge Risk: 
Low · up to 093c2
-
Clarify the omnibus pinned tag forms before merge to prevent documented image selections from using the wrong image.
Security architecture risk: 
Moderate · up to 093c2
-
Existing installations following latest can receive a different startup and ownership contract without changing their configuration. Startup can modify mounted-directory ownership before rejecting an incompatible configuration, and switching back does not restore the original ownership. Publishing split first, preserving pinned tags, and documenting the incompatibilities reduce the rollout risk.
Retained concerns
- Medium · reliability · inferred: Moving latest newly exposes existing regular-image installations to nontransactional ownership changes on writable mounts. init-config performs ownership work before rejecting missing node settings; ownership errors are suppressed, and the completion marker can therefore outlive partial work. A failed startup or subsequent image rollback does not restore the prior numeric ownership. The incompatibility is documented, but recovery is not an ownership-preserving rollback.
Security review details
-
Security Blast Radius
- inferred — The affected population is existing deployments that pull latest and retain regular-image assumptions. Ownership effects reach writable host directories mounted at the initialization paths, including split-layout transcode and download-artifact mounts; they do not imply arbitrary host-filesystem access. Explicitly pinned regular-image consumers avoid this pointer transition.
Security Findings and Attack Paths
- inferred — The supported concern follows an administrative update path: pulling the reassigned image invokes privileged initialization, which changes mounted-state ownership before some configuration failures are detected. The evidence establishes an ownership and failure-containment risk, not an unauthenticated remote privilege-escalation path.
Trust Boundaries and Controls
- observed — Image publication remains gated on approved branch events and successful trusted pushes or manual dispatch. Bundled node access is opt-in and requires passwords; external database and Redis URLs take precedence. These controls limit publication and dependency exposure but do not make mounted ownership changes transactional.
Resilience and Maintainability Implications
- observed — A root-owned shared lock is designed to prevent concurrent PostgreSQL servers from using one data directory. The ownership walk and ownership-marker update have no corresponding serialization in the inspected blocks. Whether deployments overlap containers sharing those directories remains unestablished.
Hardening Proposals
- proposed — Validate required mode and connection settings before modifying mounted ownership. Record ownership completion only after a successful walk, preserving a retryable state on failure. For existing latest consumers, make explicit identity selection and ownership recovery part of the transition procedure.
Pre-merge checks: 
4
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
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 093c26d512
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| latest=false | ||
| suffix=-aio | ||
| tags: | | ||
| type=raw,value=latest,suffix=,enable=${{ github.event.workflow_run.head_branch == github.event.repository.default_branch || (github.event_name == 'workflow_dispatch' && github.ref_name == github.event.repository.default_branch) }} |
There was a problem hiding this comment.
File the required manual follow-up before moving latest
For installations following the manual's regular-image or node setup, this changes latest to an image with different startup and permission requirements. The commit message explicitly acknowledges that the manual's installation and node pages become inaccurate and that the follow-up issue has not been filed. Open the required issue on Silo-Server/siloserver.org, covering the switch to split and the affected setup instructions, before publishing this change; otherwise users following those instructions can deploy an incompatible image. AGENTS.md explicitly makes that tracked manual follow-up a completion requirement.
AGENTS.md reference: AGENTS.md:L160-L164
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Actionable comments posted: 1

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:
27e9a865-74bd-45ba-84ab-2743e80f3861
Files selected for processing: 7-
.github/workflows/docker.ymlREADME.mddocker-compose.split.ymldocs/architecture/omnibus-image.mddocs/release-versioning.mdomnibus/Dockerfileomnibus/rootfs/etc/silo-omnibus/migrate-compose-stack
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
| and the full commit SHA alongside a mutable pointer: `latest` (also `aio`) for | ||
| the omnibus image, `split` for the regular one. Build numbers order published images; |
There was a problem hiding this comment.
Identify the omnibus pinned tags.
This sentence implies that build-N and the full SHA identify the omnibus image. Those tags identify the regular image; the omnibus tags end in -aio. A reader who pins the unsuffixed tag can replace the omnibus image with the regular image. State both tag forms here.
|
Suggested fix: No diff — keep the compatibility rationale explicit and record the post-merge C1 re-validation build. Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
latest, build-N, apiv2, and the commit SHA now name the omnibus image. The image it builds on is pushed only as <sha>-base, and the -aio tags and aio pointer stop moving. docker-compose.split.yml runs the same image with its bundled services off and passes PUID/PGID, and docker-compose.yml follows latest. BREAKING CHANGE: build-N and commit tags from earlier builds name the base image; roll back to one through its build-N-aio tag. aio no longer moves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
….advanced.yml The multi-container layout is for installs that run or tune PostgreSQL and Redis separately, not only those left from before the single container. BREAKING CHANGE: a .env whose COMPOSE_FILE names docker-compose.split.yml must name docker-compose.advanced.yml. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
#1177 C2–C3 and #1178 C2 also need re-validation. They exercise worker load/caps, failover, and Activity during worker loss. The next published Suggested fix: -Validation tasks: changes #1177 C1 (proxy and transcode nodes that follow `latest`)
+Validation tasks: changes #1177 C1, C2, C3; changes #1178 C2Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
build-1875 is the first build of Silo's s6-overlay omnibus image (Silo-Server/silo-server#3319). It requires starting as root and drops to PUID/PGID, so Kubernetes runAsUser 1000 stops it at s6 preinit ("/run belongs to uid 0 instead of 1000"), leaving the pod in CrashLoopBackOff. It also moves Silo's state to /config/silo and needs a writable rootfs. Pin the last pre-omnibus base image (build-1838) to restore the service. Re-adapting the manifest (root start, PUID/PGID, /config layout) is a separate change.
|
This is the reason why it borked on non-root... This basically requires it to run as root which one shouldn't encourage. |
Silo-Server/silo-server#3319 moved the omnibus image (s6-overlay, bundled PostgreSQL/Redis, PUID/PGID, entrypoint /init) onto latest and build-N, and publishes the base image only as <sha>-base. The omnibus image needs root: under runAsUser 1026 + readOnlyRootFilesystem s6 preinit cannot chown /run and the pod crash-loops. Pin build-2118's base variant by SHA and stop renovate from tracking the build-N tags, which no longer point at an image this deployment can run. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Problem
Related issue: N/A
Validation tasks: changes #1177 C1 (proxy and transcode nodes that follow
latest)Silo publishes two server images today: the base image under
latestandbuild-N, and the image with PostgreSQL, Redis, and Meilisearch bundled underaioandbuild-N-aio. The repository'sdocker-compose.ymlalready runs the bundled one. This makes the bundled image Silo's only Docker image: it takeslatest,build-N,apiv2, and the commit SHA, and nothing else moves.This breaks installs that follow
latestwith their own database: the earlier multi-container Compose stack, Kubernetes, container templates, and nodes. The new image is not a drop-in replacement for the base one:PUID(911 unless set) instead of root, so media only root could read becomes unreadable. The scanner holds a library whose root it cannot list rather than emptying it.user:or a KubernetesrunAsUserstops it.NODE_URLrefuses to start./init, notsilo.The database is left alone: with
DATABASE_URLset, the bundled PostgreSQL stays off. Affected installs setPUID/PGIDto an account that can read their media, or pin abuild-Nfrom before the change. A Discord announcement goes out with the first build after merge.Approach
docker.yml: themergejob pushes the base image only as<sha>-base, which the omnibus build starts from. The omnibus merge publisheslatest,build-N,apiv2, and the SHA without the-aiosuffix.aioand existing-aiotags stay in the registry and stop moving.docker-compose.ymlfollowslatest. The multi-container file is renamed fromdocker-compose.split.ymltodocker-compose.advanced.yml, since it serves installs that run PostgreSQL and Redis separately, not only older ones. It runs the same image with its bundled services off, and now passesPUID/PGID(default 1000, as indocker-compose.yml). The old name existed for one day; aCOMPOSE_FILEthat still names it fails with a missing-file error.omnibus/Dockerfilehas no tag to default to, so its default base is a placeholder on a.invaliddomain; CI passes<sha>-base.migrate-compose-stackpoints a pinnedSILO_IMAGEatlatestor the old-aiotag in its refusal message.docs/architecture/omnibus-image.mddescribes the tags, how to roll back past the change (a pre-change build'sbuild-Nis the base image, so it takesbuild-N-aio), and what changes for an install that followedlatest.SILO_OMNIBUS_IMAGEkeeps its name so existing.envpins still apply. No API or client change.The user manual change is Silo-Server/siloserver.org#326, written against this branch; merge it after this one. Still to do outside this repository: the
silo-troubleshooting-skillrollback guide pinsbuild-N, which needs the-aionote for builds before this one.Validation
PUID: Silo used the external PostgreSQL and Redis and passed/api/v1/health, but ran as uid 911, could not read a 0750 media directory owned by uid 1000, and re-owned the Silo and transcode directories to 911:911.docker-compose.advanced.yml(PUID/PGID1000): Silo ran as uid 1000, read the media, and passed/api/v1/health.--user 1000:1000the container stops atinit-adduser.actionlinton the workflows,shellcheckonmigrate-compose-stack, andmake verify-local-pathspass.docker compose configresolvesdocker-compose.ymlanddocker-compose.advanced.ymlto:latest.mainbuild after merge.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3319/
Risks
Breaking for every install that follows
latest, as described above, and for anyone onaio, which stops updating. Pinned tags from earlier builds keep working. Reverting the workflow restores the old tags on the next build; an install that already started on the new image keeps the new ownership of its directories, which the root-run base image ignores.Checklist
AI Disclosure
🤖 Generated with Claude Code