| 1 | # Security |
| 2 | |
| 3 | celld v0.0.1 is an alpha. It is not hardened for hostile multi-tenant use, and |
| 4 | security fixes land on the latest release line only — older alpha builds do not |
| 5 | receive backports. |
| 6 | |
| 7 | ## Trust rests on your bucket |
| 8 | |
| 9 | The fleet's S3-compatible bucket is its root of authority. Ownership of every |
| 10 | cell is a compare-and-swap lease recorded in that bucket, and the bucket also |
| 11 | holds deployments, cell state, node leases, and the shared peer-authentication |
| 12 | secret. Whoever holds the bucket credentials controls the fleet. Treat them as |
| 13 | administrator access: scope each credential to a single fleet bucket, and rotate |
| 14 | after any suspected exposure. |
| 15 | |
| 16 | ## Peers authenticate, but do not encrypt |
| 17 | |
| 18 | Node-to-node requests are HMAC-authenticated, body-bound, clock-bounded, and |
| 19 | replay-protected, so a peer cannot be impersonated and a captured request cannot |
| 20 | be replayed. celld does not, however, terminate TLS on the peer protocol — that |
| 21 | traffic is plain HTTP. Advertise nodes only on a trusted private network or an |
| 22 | encrypted overlay such as WireGuard or Tailscale, and never expose the peer |
| 23 | listener directly to the public internet. |
| 24 | |
| 25 | ## Single-writer isolation |
| 26 | |
| 27 | Each cell is a single-writer SQLite database owned by exactly one node at a |
| 28 | time, fenced by an ownership epoch so a node that has lost its lease cannot |
| 29 | corrupt state. There is no shared, multi-tenant scheduler or placement layer: a |
| 30 | fleet's blast radius is its own machines, network, and bucket — never another |
| 31 | tenant's workload — and a misbehaving cell can only affect its own database. |
| 32 | |
| 33 | ## The operator's responsibility |
| 34 | |
| 35 | celld serves requests and coordinates ownership; it does not authenticate your |
| 36 | application's end users or terminate public TLS. Front your ingress with your |
| 37 | own authentication and TLS, keep peers on trusted networks, and keep the bucket |
| 38 | credentials secret. See [limitations](limitations.md) for the complete alpha |
| 39 | boundary. |