Sealed Secrets
The control plane sends your servers secrets: database passwords, an app's secret settings, Hosting Account passwords. This page explains, in plain words, how those secrets stay private on the way, whatever sits between the two ends. It is not a key, a setting or a procedure: there is nothing here to copy or type.
Nothing for you to do
Sealed secrets are on for every server whose daemon is new enough for this control plane. The padlocked connection (HTTPS, see Daemon trust model) stays on as well. Nothing on this page changes how you deploy or what you type.
This is about keeping a secret private. Proving who sent the order it travels in is a different job, done by the control plane's key (the stamp): see Control Plane Identity.
1. The Problem
Secrets travel inside orders: "here is the database password", "set this app setting", "create this Hosting Account with this password". The padlocked connection alone is not enough to keep them private.
Behind a tunnel or a proxy (a Cloudflare tunnel in front of a self-hosted control plane, for example) the padlocked connection is opened in the middle and a new one is made to the server. Whoever runs the middle, or anyone who took over your web address, could read the secret as it passes. The padlocked connection stays on in everything below; the padlock in the next steps is added on top of it, not instead of it.
2. Each Server Has Its Own Padlock
Each server makes a padlock and keeps the only padlock key. It gives the control plane the open padlock: anyone can snap it shut, but only that server can open it again.
The server signs the hand-over with its own identity key, so nobody in the middle can swap in a padlock of their own. The padlock key never leaves the server. You never see it or type it.
3. Secrets Travel in a Locked Box
The control plane snaps that server's padlock shut on every secret it sends. The tunnel, the proxy or an impostor at your web address sees only a locked box.
Only the server that made the padlock has the key, so only that server can open the box. A box locked for one server is useless on any other server, and useless to anyone in the middle.
4. The Other Way Too
Sometimes a server sends a secret up, for example the private part of a certificate it just obtained. The control plane has its own padlock for that, published so every server can fetch it, and only the control plane can open what is locked with it.
Stamp and Padlock
Two things travel with an order, and they do different jobs.
| Piece | Job |
|---|---|
| Stamp (the control plane's key) | Proves an order really came from your control plane |
| Padlock (this page) | Keeps the secret inside the order private on the way |
The stamp proves who sent it. The padlock makes sure nobody else can read it.
Who Holds What
Where each piece lives. The control plane's padlock key is not the stamp key from Control Plane Identity; each has its own job.
| Thing | Kind | Where it lives | You do |
|---|---|---|---|
| A server's padlock key | secret | On that server only | Nothing |
| A server's open padlock | public | On the control plane, one per server | Nothing |
| The control plane's padlock key | secret | Inside the control plane only | Nothing |
| The control plane's open padlock | public | Published by the control plane; every server fetches it | Nothing |
Not Covered Yet
These are the gaps that remain, so you can judge them for yourself.
- The control plane's open padlock is trusted only as far as HTTPS on a server without a pin. The server fetches it from the control plane's signed identity. A server installed with the
TOKENvalue from Add Server remembers the control plane's key and accepts the padlock only when that key signed it. A server without that pin checks the signature against the key the same answer names, so for secrets it sends up, that stops someone who only watches the traffic, not someone who actively hijacks your web address. A server's own padlock does not have this gap, because the server signs it. - A server whose padlock is not on file yet gets its secrets unlocked, protected by HTTPS only, until its daemon hands the padlock over. A daemon does that on every connect and again whenever it gets an unlocked answer, so the gap is short. Once a server has opened one locked box it refuses unlocked secrets from then on.
- An older daemon gets no orders at all: this control plane only sends commands to daemon 0.1.18 or newer, the first that makes a padlock. See Version compatibility.
In Short
Every secret travels in a box locked with the receiver's padlock, so only the receiver can open it, whatever sits in the middle. Each server keeps its own key; the control plane keeps its own. You do nothing and save nothing.
Related
- Control Plane Identity: the stamp, how a server knows an order came from your control plane
- Daemon trust model: how a server enrols and connects, and the identity key it signs the padlock with
- Trust boundaries: what each part reaches if it is compromised
- Password safety: how passwords are stored
Last updated on