| 1 | # Security |
| 2 | |
| 3 | celld is an alpha. It is not safe for hostile multi-tenant use, and |
| 4 | security fixes go to the latest release only; older alpha builds do not |
| 5 | receive fixes. |
| 6 | |
| 7 | ## Trust starts at your bucket |
| 8 | |
| 9 | The S3-compatible bucket is the root of authority for the fleet. The |
| 10 | ownership of each cell is a compare-and-swap lease in that bucket, which |
| 11 | also holds the deployments, the cell state, the node leases, and the |
| 12 | shared peer-authentication secret. The person who holds the bucket |
| 13 | credentials controls the fleet, so handle the credentials as |
| 14 | administrator access: give each credential the scope of one fleet bucket |
| 15 | only, and replace a credential if you think that others know it. |
| 16 | |
| 17 | ## Peers authenticate, but do not encrypt |
| 18 | |
| 19 | Each node-to-node request has an HMAC, a body signature, a clock limit, |
| 20 | and replay protection, so a false peer cannot get access and a captured |
| 21 | request cannot be sent again. But celld does not terminate TLS on the |
| 22 | peer protocol: that traffic is plain HTTP. Advertise the nodes only on a |
| 23 | private network that you trust or on an encrypted overlay such as |
| 24 | WireGuard or Tailscale, and do not show the peer listener to the public |
| 25 | internet. |
| 26 | |
| 27 | ## Single-writer isolation |
| 28 | |
| 29 | Each cell is a SQLite database with one writer: one node owns a cell at a |
| 30 | time, and an ownership epoch fences each cell, so a node that lost its |
| 31 | lease cannot damage the state. There is no shared multi-tenant scheduler |
| 32 | and no shared placement layer. The damage limit of a fleet is its own |
| 33 | machines, its own network, and its own bucket, never the workload of a |
| 34 | different tenant, and a defective cell can only touch its own database. |
| 35 | |
| 36 | ## The operator's responsibility |
| 37 | |
| 38 | celld serves requests and coordinates ownership; it does not authenticate |
| 39 | the end users of your application, and it does not terminate public TLS. |
| 40 | Put your own authentication and TLS in front of your ingress, keep the |
| 41 | peers on networks that you trust, and keep the bucket credentials secret. |
| 42 | See the [limitations](limitations.md) for the full alpha boundary. |