| 1 | --- |
| 2 | type: bug |
| 3 | id: bd-500adf7 |
| 4 | status: open |
| 5 | title: "The bus service shares the repository owner's Unix identity" |
| 6 | created: 2026-07-17 |
| 7 | source: security review of phase1/event-log, 2026-07-17 |
| 8 | --- |
| 9 | |
| 10 | # The bus service shares the repository owner's Unix identity |
| 11 | |
| 12 | The `valley-bus` service runs as the Unix user that owns the repositories. Its systemd sandbox |
| 13 | restricts writes to the bus store, but the repository data directory remains readable to that user. |
| 14 | A compromised bus process can therefore read private repository contents. |
| 15 | |
| 16 | The loopback listener limits network reachability. It does not remove the filesystem access if the |
| 17 | process is compromised. |
| 18 | |
| 19 | The bus needs its own user before its network exposure is widened. The integrator already uses a |
| 20 | separate user, but its repository group grants the access it needs to write refs. Giving the bus |
| 21 | that same group would also grant repository access. |
| 22 | |
| 23 | The bus should have access only to its own service state, without membership in the shared |
| 24 | repository group. Its store directory needs to be separated from the repository data directory so |
| 25 | those 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 |
| 29 | multiple valleys on one host. |