gunk-dev/the-valley

bd-500adf7-bus-shares-git-user.md

source78684ec35c8emain's published tip history
1.3 KiB · Rendered
1---
2type: bug
3id: bd-500adf7
4status: open
5title: "The bus service shares the repository owner's Unix identity"
6created: 2026-07-17
7source: security review of phase1/event-log, 2026-07-17
8---
9
10# The bus service shares the repository owner's Unix identity
11
12The `valley-bus` service runs as the Unix user that owns the repositories. Its systemd sandbox
13restricts writes to the bus store, but the repository data directory remains readable to that user.
14A compromised bus process can therefore read private repository contents.
15
16The loopback listener limits network reachability. It does not remove the filesystem access if the
17process is compromised.
18
19The bus needs its own user before its network exposure is widened. The integrator already uses a
20separate user, but its repository group grants the access it needs to write refs. Giving the bus
21that same group would also grant repository access.
22
23The bus should have access only to its own service state, without membership in the shared
24repository group. Its store directory needs to be separated from the repository data directory so
25those permissions can be granted independently.
26
27[[bd-d853d9c]](bd-d853d9c-bus-unauthenticated.md) tracks bus authentication.
28[[dcr-9b5da04]](../decisions/dcr-9b5da04-hosts-serve-isolated-valleys.md) extends this separation to
29multiple valleys on one host.