Summary #
Run the container image as non-root user 1000:1000 by default instead of root.
docker.io/linuxserver/beetsnormally drops privileges inside its s6/initentrypoint viaPUID/PGID, which is bypassed byENTRYPOINT ["/usr/local/bin/goosefoot"].- Set
USER 1000:1000in the final runtime stage ofContainerfileso the daemon,beetsubprocesses, and post-import hooks execute unprivileged out of the box (while still allowing operators to override via--user/user:). - Document the fix under
## [Unreleased]inCHANGELOG.md.
Testing #
gofmt -l .go vet ./...go test -race -count=1 ./...