Diffinery

homeflare/celldpublic

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