hyperhive/nix
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas b3b1c7b288 fix(#1845): add safe systemd hardening directives to hive-c0re service
hive-c0re runs as the unprivileged hive-core user and delegates all
privileged operations to hive-priv via a Unix socket. Add the subset of
systemd sandboxing directives that are provably safe without a watched
deploy (no ProtectSystem / RestrictAddressFamilies, which require mapping
the full set of filesystem/network paths first):

- NoNewPrivileges: already unprivileged; no setuid/capability escalation
- PrivateTmp: nix subprocesses use StateDirectory temp paths, not /tmp
- ProtectHome: HOME is /var/lib/hyperhive (StateDirectory), not /home/*
- ProtectKernelTunables: no sysctl writes needed
- ProtectKernelLogs: logs via systemd-journal group, not /dev/kmsg
- ProtectControlGroups: cgroup writes go through hive-priv, not c0re
- RestrictNamespaces: namespace creation goes through hive-priv
- LockPersonality: no personality changes needed
- RestrictRealtime: no real-time scheduling

Follows the same pattern as hive-priv (PrivateTmp + ProtectHome already
present there). Deferred: ProtectSystem=strict + ReadWritePaths +
RestrictAddressFamilies — those need a watched deploy per the #1845 plan
since getting the ReadWritePaths wrong silently breaks runtime I/O.
2026-07-04 13:01:47 +02:00
..
docs feat(#1867): make the internal forge mandatory (remove forge.enable) 2026-06-22 19:26:34 +02:00
forge-theme forge: use branding/hyperhive.svg for logo and favicon 2026-05-21 17:50:46 +02:00
modules fix(#1845): add safe systemd hardening directives to hive-c0re service 2026-07-04 13:01:47 +02:00
packages docs: drop stale hive-m1nd references (single hive binary) 2026-06-10 19:52:19 +02:00
templates feat(#2089): docs pointer via system-prompt line, drop CLAUDE.md mechanism 2026-07-04 12:07:17 +02:00
assets.nix fix(#2058): drop false mit license tags from docs + assets derivations 2026-06-29 01:42:35 +02:00
frontend.nix refactor(frontend): move ST4TS to its own /stats.html page (#1464 step 2) 2026-06-09 00:11:43 +02:00
reference-docs.nix fix(#2058): drop false mit license tags from docs + assets derivations 2026-06-29 01:42:35 +02:00