You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Run the stack read-only where it can be, and record where it cannot #186
#71 names read_only as absent and "worth deciding on separately". #184 took the
task and retention bounds and left this. It is separable for a specific reason: cap_drop and no-new-privileges (tracked separately) are verifiable by reading
the config, whereas read_only is only verifiable from a running stack — a
missing tmpfs: entry is a crash loop that restart: unless-stopped retries
forever.
Per service, from reading the configs:
service
verdict
snmp-exporter, blackbox-exporter
trivially safe — config in, metrics out, nothing written
prometheus
safe — everything goes to the /prometheus volume, which stays writable
alertmanager
safe — same, /alertmanager
loki
safe, and anticipated: loki-config.yaml puts rule_path: /loki/rules-temp inside the data volume on purpose, with a comment saying so
grafana
needs a soak. Data, plugins, PNGs and CSVs land in /var/lib/grafana, but Grafana touches os.TempDir() for SQLite spill and some export paths. Probably fine with tmpfs: ["/tmp"], and "probably" is the problem — this is the one service whose breakage means no dashboard and no login
alloy
skip — read_only on a privileged container with /:/rootfs is performative, it can remount anything it likes
Done when
read_only: true on the five safe services, with any tmpfs: each needs
grafana either included with a tmpfs list, or excluded with the reason
written down — after a real deploy plus: log in, load all five dashboards,
save an alert rule, write an annotation, run make screenshots under the capture profile
Activity
fix(stack): exclude too_far_behind from LogEntriesDropped
Merge pull request #345 from Gerrrt/gerrrt/read-only-containers-186
fix(observability): give both Lokis a /tmp tmpfs; read-only broke ret…