Repository navigation
Description
This is pre-existing and inherited from upstream, not a regression from the Silo rebrand. It
reproduces identically on the frozen previous published image and on an upstream minio/minio
image; evidence is in the first section below.
Expected Behavior
docker run --user <non-root> pgsty/silo server /data should start. /data is the path the
image itself declares as its volume and the path every published example passes to server, so
the image should ship a /data the declared volume can be written by whatever UID the operator
selects.
Current Behavior
Dockerfile.goreleaser:100 declares VOLUME ["/data"], but no stage in the file ever creates
/data. Verified against the locally built release image: docker save produces 15 layer blobs
and none of them contains a data/ entry (the same scan does find usr/bin/silo, so it is not a
scanning artifact). Docker therefore materializes the mountpoint itself at container-create time
as root:root 0755, and seeds a fresh anonymous or named volume from it:
$ docker run --rm --entrypoint /bin/sh pgsty/silo:RELEASE.2026-08-06T00-00-00Z-arm64 -c 'ls -ldn /data'
drwxr-xr-x 2 0 0 4096 Aug 6 01:14 /data
A non-root server process cannot create .minio.sys under it, and storage init fails:
$ docker run --user 1001:1001 \
-e MINIO_ROOT_USER=admin -e MINIO_ROOT_PASSWORD=admin-secret-123 \
docker.io/pgsty/minio@sha256:1026039cd0771ff3bece8559c0f880a38a2ba4f4e7f8d1d506187a1daf809f17 \
minio server /data
API: SYSTEM.storage
Error: unable to rename (/data/.minio.sys/tmp -> /data/.minio.sys/tmp-old/11c1b669-...) file access denied, drive may be faulty, please investigate (*fmt.wrapError)
API: SYSTEM.storage
Error: unable to create (/data/.minio.sys/tmp) file access denied, drive may be faulty, please investigate (*fmt.wrapError)
FATAL Unable to initialize backend: file access denied
Container exits 1. The message blames the drive, which sends the operator looking in the wrong
place.
Not a rebrand regression
That digest is the linux/arm64 manifest of docker.io/pgsty/minio:RELEASE.2026-08-04T00-00-00Z
(index sha256:b6bfe7239bfc83fb90d31612d9704d86039dd714f7904b3f1ad68f211e602372), pulled fresh
from the registry — the last image published before the rebrand. It fails exactly as above.
Upstream is the same. minio/minio:RELEASE.2025-09-07T16-13-09Z
(sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e) also ships
/data as drwxr-xr-x 0 0 and fails with the same FATAL Unable to initialize backend: file access denied under --user 1001:1001. In this repository's history at d88f46cce, before those
files were deleted, Dockerfile, Dockerfile.release, Dockerfile.release.old_cpu and
Dockerfile.hotfix all declare VOLUME ["/data"] with no mkdir or chmod of /data — the
same shape Dockerfile.goreleaser carries today. Nothing about this originated here.
When it bites
Verified by running each case against the release image built from fd2ca1c6d:
| Invocation | Result |
|---|---|
| default (root) | starts |
--user 1001:1001, anonymous volume |
fails |
--user 1001:1001, fresh named volume |
fails |
--user 1001:1001, volume/dir already owned by the UID |
starts |
MINIO_USERNAME / MINIO_GROUPNAME drop-privilege path |
fails |
Two of those rows are worth stating explicitly.
A named volume does not help. Docker seeds a fresh named volume from the image-layer
ownership of the mountpoint, so it inherits the same root:root 0755.
The MINIO_USERNAME path is also broken today, not only the --user path. The entrypoint
appends the user at uid 1000 and chroot --userspecs into it, so the server ends up non-root
against a root-owned /data:
$ docker run --rm -e MINIO_USERNAME=silo-user -e MINIO_GROUPNAME=silo-group \
--entrypoint /usr/bin/docker-entrypoint.sh pgsty/silo:RELEASE.2026-08-06T00-00-00Z-arm64 id
uid=1000(silo-user) gid=1000(silo-group) groups=1000(silo-group)
and the server then fails with the same file access denied. That path is documented as
deprecated, but it is exercised by CI and it does not work against the shipped image.
The reason this has not been reported is that the documented recipe sidesteps it:
docs/docker/README.md:111 bind-mounts a host directory the caller created with mkdir -p ${HOME}/data, which is already owned by the invoking UID. Only operators who let Docker manage
the volume hit it.
ensure_writable_home in dockerscripts/docker-entrypoint.sh:21 already handles the same class
of problem for HOME — it was added because the server probes its config directory during init.
/data was never given the equivalent treatment, and it cannot be given one from the entrypoint;
see option 3 below.
Kubernetes and OpenShift
The Helm chart is not affected, for two independent reasons:
- It never uses
/data.helm/silo/values.yaml:114setsmountPath: "/export"and the
templates mount a PVC (or anemptyDirwhenpersistence.enabled=false) there. Kubernetes
ignores imageVOLUMEdeclarations, so the image's/datais never materialized. helm/silo/values.yaml:277-282setsfsGroup: 1000withfsGroupChangePolicy: "OnRootMismatch", so the kubelet group-owns the mounted volume for the pod.
securityContext is only rendered when persistence.enabled is true
(helm/silo/templates/statefulset.yaml:84, helm/silo/templates/deployment.yaml:56); with
persistence off the pod runs as root against an emptyDir, which also works.
The chart's OpenShift SCC (helm/silo/templates/securitycontextconstraints.yaml:31-33) pins
runAsUser: MustRunAs at a fixed uid rather than using the arbitrary-UID range, so the chart
does not exercise the arbitrary-UID model either. Arbitrary UID is only a concern for operators
running the image directly outside this chart; under that model a process gets a random UID with
GID 0 and supplemental group 0, so it needs /data to be either world-writable or group-0
writable.
CI coverage gap
The gate does not cover this. .github/workflows/test-release.yml:297 ("Build release runtime
image and verify graceful shutdown") does not build Dockerfile.goreleaser. It assembles a
synthetic image inline, and line 312 is:
echo "RUN mkdir -p /data && chmod 0777 /data && chmod +x /usr/bin/silo /usr/bin/docker-entrypoint.sh"
assert_graceful silo-rt-rootless --user 1001:1001 (line 349) and assert_graceful silo-rt-dropuser (line 348) then run against that world-writable /data. They prove the
entrypoint forwards signals under a non-root UID; they say nothing about the shipped image,
because the synthetic image papers over the exact defect the shipped image has.
.github/workflows/docker-release.yml is workflow_dispatch only, so Dockerfile.goreleaser is
never built by any automated gate.
Options
Measured across all five privilege modes:
1. RUN mkdir -p /data && chmod 0777 /data before the VOLUME line. All five modes start,
including MINIO_USERNAME and OpenShift-style arbitrary UID with GID 0. Root default unchanged.
The exposure is a world-writable directory in the image; the container runs a single server
process that owns everything under that directory anyway, and there is no second UID in the image
to protect it from. Once a real volume is mounted the image-layer mode only seeds a fresh volume;
for a bind mount the host mode wins outright. This is also exactly what the CI synthetic image
already does, so adopting it makes the existing assertions honest rather than requiring them to
be weakened.
2. chgrp 0 /data && chmod 0775 /data (the OpenShift group-0 convention). Measured: starts
under --user 1001:0, --user 26535:0 and bare --user 1001 (Docker defaults the group to 0
when only a UID is given). Still fails under --user 1001:1001 and under MINIO_USERNAME, which
runs at gid 1000. It does not cover --user $(id -u):$(id -g), the form the repository's own
documentation recommends, so it fixes the narrower half of the problem.
3. Entrypoint-side fallback. Not viable for the --user case — the entrypoint is already
non-root by then:
$ docker run --rm --user 1001:1001 --entrypoint /bin/sh pgsty/silo:...-arm64 -c 'chmod 0777 /data; mkdir /data/x'
chmod: changing permissions of '/data': Operation not permitted
mkdir: cannot create directory '/data/x': Permission denied
It could repair the MINIO_USERNAME path, which still enters as root before the chroot, but that
is the deprecated half only, and chowning a caller-supplied bind mount from the entrypoint is the
wrong behavior for the case that works today.
4. Document only. docs/docker/README.md:109 already carries the note. It leaves
Docker-managed volumes failing with an error that points at the hardware, and leaves
MINIO_USERNAME broken.
Recommendation
Option 1. It is the only one that fixes every affected path, it does not touch the root default,
and its exposure is bounded by the image having a single process. Option 2 is the alternative if
world-writable in the image layer is considered unacceptable, but it should then be paired with a
documentation change stating that --user must supply GID 0, and with a fix or removal of the
MINIO_USERNAME path.
CI change
Build the real thing. In .github/workflows/test-release.yml:297, stage the goreleaser-produced
linux/amd64 binary as silo in the build context and run docker build -f Dockerfile.goreleaser against the final stage instead of the inline synthetic Dockerfile, then
keep the three existing assert_graceful calls. That covers /data, the VOLUME declaration and
the entrypoint in one gate.
If keeping the step offline is required (the comment at line 300-304 says the mcli download stage
is skipped on purpose), then the minimum is: make the synthetic Dockerfile mirror
Dockerfile.goreleaser — same /data handling and the same VOLUME ["/data"] line, with no
extra chmod 0777 the real image does not have — and add an explicit mode assertion next to the
existing ones:
test "$(docker run --rm --entrypoint /bin/sh silo-runtime-test:snapshot -c 'stat -c %a /data')" = 777(stat is present in ubi-micro; verified.) With line 312's chmod 0777 /data removed today,
silo-rt-rootless and silo-rt-dropuser both fail — a red/green gate at no additional build
cost.
Environment
- Repository at
fd2ca1c6d, image built locally forlinux/arm64andlinux/amd64 - Docker 29, buildx
- Frozen comparison:
docker.io/pgsty/minio:RELEASE.2026-08-04T00-00-00Z, index
sha256:b6bfe7239bfc83fb90d31612d9704d86039dd714f7904b3f1ad68f211e602372 - Upstream comparison:
minio/minio:RELEASE.2025-09-07T16-13-09Z,
sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e
Activity
build(docker): add the distroless image variant as a pilot
Vonng commentedon Aug 6, 2026
Resolved by the distroless image variant that ships with the next release (4c34d23):
/datais created world-writable in the image layer, so storage init succeeds under any--user/UID against a fresh named volume. Verified during release acceptance both as root and as--user 1001:1001.The classic image intentionally keeps its current behavior: its contents and startup semantics are a compatibility surface, and changing the mountpoint there would alter behavior under existing deployments. Non-root deployments should use
pgsty/silo:<RELEASE>-distroless; the trade-offs are documented in the migration guide, live with the release site deploy: https://silo.pgsty.com/compatibility/migration/#distroless. A nonroot-by-default classic image stays on the table for when the distroless pilot is promoted.Design record: https://silo.pgsty.com/compatibility/feature/healthcheck/#distroless