Diffinery

homeflare/celldpublic

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