Breaking: the Docker image sets state.dir, so a container that cannot
write /var/lib/uberbringer, one started --read-only without a volume
there or with a bind mount owned by root, no longer starts, ntfy
subscriptions or not: mount a named volume or a directory owned by
10001:10001.
The daemon created state.dir and checked that it could write there only
when an ntfy subscription was configured, since only subscriptions kept
files in it. The job store will keep its database there too, so the
check now runs once at start whenever state.dir is set: the directory
is created 0700 if it is missing, and one that cannot be made or
written stops the start with an error naming state.dir, before any
subscription is made. A state.dir of only spaces is refused whether or
not a subscription is configured, rather than made as a directory of
that name. Without state.dir nothing changes.
Part of stage 1d of docs/plans/job-store.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The job store is to keep its database in the directory that holds the
ntfy subscriptions' state files, so the directory moves to a section
of its own: [state] dir, or UBERBRINGER_STATE_DIR, in place of
[ntfy] state_dir. For now only the subscriptions use it. It still has
no default and is still required with a subscription, and the checks
at start name state.dir in their errors.
install.sh writes [state] dir into new configs, and the Docker image
sets UBERBRINGER_STATE_DIR. ntfy.state_dir has never been in a
release, so its CHANGELOG entry changes in place and there is no
fallback: a config that still sets it fails to load with an unknown
key until the line moves to [state].
The image itself was not built, since the workstation has no Docker.
Part of stage 1b of docs/plans/job-store.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README had grown to 658 lines. It is now a short overview: what
Überbringer is, a quick start, a table of the docs and the licence.
Each topic it held has a document of its own:
- docs/install.md: install.sh, what it leaves behind, and upgrading.
- docs/docker.md: the image behind a reverse proxy, the env file,
health checks, and the ntfy state volume and token file.
- docs/configuration.md: loading, environment variables, a table of
every key in every section, and what is logged. The list of log
messages becomes a summary of what is logged and reported.
- docs/security.md: the API secret, issuing tokens and their scopes,
the header-file recipe that keeps tokens off command lines (moved
from docs/api.md), the reverse proxy, image URLs, and what is never
logged.
- docs/ntfy.md: the ntfy subscriptions, securing the topics and the
printer's token, with the token scripts unchanged.
- docs/cli.md: the command line.
- docs/development.md: running from source, the Go version, make
targets, the gate, generated files, the layout, CI and releases.
CLAUDE.md names the new docs: a config key is now documented in
docs/configuration.md, and the layout and Go version in
docs/development.md. docs/api.md, design.md and the job-store plan
point to the docs that now hold what they referred to in the README.
The release archives also carry the docs on running the daemon.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>