Closing the command-center security queue #70/#71/#72/#73/#74: rolling tags let a rebuild move under a running service with nobody approving it, and make a CVE audit ungradeable. 36 quadlet units across dankclaw, dankserver and frankbook-pro now carry tag@sha256; localhost/* builds stay exempt (their build is the pin). The pihole and copyparty pins pull the fixed builds; valkey 9.1.2 (already running) and redis 7.4.11 are pinned in place, vendor fixes TBD. New gate tests/quadlet_image_pins.bats: no unpinned registry image, no generator-rejected key anywhere. Three seams that pinned the old exact-tag law (frankbook readarr, open_webui, seerr) now require tag AND digest - strictly stronger. Quadlet Lifecycle docs: batch-abort law, entrypoint flags-only law, pin law.
43 lines
1.5 KiB
INI
43 lines
1.5 KiB
INI
# Quadlet unit: RomM library manager (rootless, boot-persistent).
|
|
#
|
|
# Install path on dankserver: ~/.config/containers/systemd/romm.container
|
|
# Unit name: romm.service (podman 5.x drops the container- prefix)
|
|
#
|
|
# The whole data root lives at /home/dank/Containers/romm and is mounted at
|
|
# /romm, so config/, library/, resources/ and assets/ sit inside it exactly as
|
|
# the compose-era bind mounts + anonymous volume did. Secrets (DB_PASSWD,
|
|
# ROMM_AUTH_SECRET_KEY, ROMM_PASSWORD, SCREENSCRAPER_DEV_*) live in the
|
|
# host-local env file /home/dank/Containers/romm/env (mode 0600); this file
|
|
# holds no secrets. The network dankserver_appnet must exist before first
|
|
# start (it is the compose-era network; on a fresh host create it first).
|
|
|
|
[Unit]
|
|
Description=RomM library manager container
|
|
Wants=romm-mariadb.service
|
|
After=romm-mariadb.service romm-redis.service network.target
|
|
|
|
[Container]
|
|
ContainerName=romm
|
|
Image=ghcr.io/rommapp/romm:latest@sha256:03295f95a6290e752641f9553ac4198b0e5b71b879d57f7b2371b98f608feb54
|
|
Network=dankserver_appnet
|
|
EnvironmentFile=/home/dank/Containers/romm/env
|
|
Environment=DB_HOST=mariadb
|
|
Environment=DB_NAME=romm
|
|
Environment=DB_USER=romm
|
|
Environment=REDIS_HOST=redis
|
|
Environment=HASHEOUS_API_ENABLED=true
|
|
PublishPort=8085:8080
|
|
Volume=/home/dank/Containers/romm:/romm
|
|
HealthCmd=curl -f http://localhost:8080/health
|
|
HealthInterval=30s
|
|
HealthTimeout=10s
|
|
HealthRetries=3
|
|
|
|
[Service]
|
|
EnvironmentFile=/home/dank/Containers/romm/env
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=default.target
|