carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1# The db-read worker's socket (db region forward spec §8.3). Bound by root
2# systemd and owned by carlos, so the agent connects with no privilege of
3# its own. Each connection starts one carlos-dbread@ instance with the
4# connection as its stdin and stdout. Three connections at most: two reads
5# and the readiness probe (spec §7.1).
6#
7# It lives under /run/carlos because every tenant unit hides that tree
8# (TemporaryFileSystem=/run/carlos:ro): tenants run as carlos too, the one
9# uid the worker serves, so they must not be able to see this path. Only
10# ensureSystemUnits arms it, and only on a box whose host.env arms db reads;
11# elsewhere nothing listens (Astra round 1, finding 1).
12[Unit]
13Description=carlos db-read worker socket
14
15[Socket]
16ListenStream=/run/carlos/dbread/worker.sock
17SocketUser=carlos
18SocketGroup=carlos
19SocketMode=0600
20Accept=yes
21MaxConnections=3
22
23[Install]
24WantedBy=sockets.target
25