Internet-facing services run as polen (wheel, docker) #10

Open
opened 2026-11-16 10:39:00 -05:00 by polen · 0 comments
Owner

Problem

Three network-facing services on the server run as polen:

  • hobby-game (User = lib.mkForce "polen")
  • jellyfin (inherit user)
  • taskchampion-sync-server (inherit user)

polen is in wheel and docker, and is a nix trusted-users entry. Remote code execution in any of these services gives root through the docker socket.

Fix

  • Give each service its own system user (the module defaults for Jellyfin and taskchampion already do this).
  • Migrate ownership of /var/lib/pocketbase/pb_data, the Jellyfin state and media paths, and the taskchampion data dir. Use a shared media group for the NFS media if needed.
  • Change the hobby-game-sql sops secret owner to the new user.
## Problem Three network-facing services on the server run as `polen`: - `hobby-game` (`User = lib.mkForce "polen"`) - `jellyfin` (`inherit user`) - `taskchampion-sync-server` (`inherit user`) `polen` is in `wheel` and `docker`, and is a nix `trusted-users` entry. Remote code execution in any of these services gives root through the docker socket. ## Fix - Give each service its own system user (the module defaults for Jellyfin and taskchampion already do this). - Migrate ownership of `/var/lib/pocketbase/pb_data`, the Jellyfin state and media paths, and the taskchampion data dir. Use a shared `media` group for the NFS media if needed. - Change the `hobby-game-sql` sops secret owner to the new user.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
polen/nixos#10
No description provided.