TurboPanel Docs
Security

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.

Your control planesends a secret
"database password: s3cret"
Tunnel or proxyopens the padlocked connection here
"database password: s3cret"
Your serverneeds the secret
Protected only by the padlocked connection, a secret can be read wherever that connection is opened in the middle.

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.

Your serverkeeps the padlock key (secret)
open padlock, signed by the server
Your control planeholds the open padlock
The server keeps the only padlock key and hands the control plane an open padlock, signed with its own identity key so nobody can swap it.

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.

Your control planelocks the box
locked box
Tunnel or proxysees only a locked box
locked box
Your serveropens it with its key
An impostorin the middle
tries to open the box
Stays lockedno key, no secret
Every secret travels in a box locked with that server’s padlock. The middle sees only a locked box; only that server can open it.

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.

Your serverlocks with the control plane’s padlock
certificate key, locked
Your control planeopens it with its key
A secret sent up, such as the private part of a certificate, is locked with the control plane’s padlock and opens only there.

Stamp and Padlock

Two things travel with an order, and they do different jobs.

PieceJob
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.

ThingKindWhere it livesYou do
A server's padlock keysecretOn that server onlyNothing
A server's open padlockpublicOn the control plane, one per serverNothing
The control plane's padlock keysecretInside the control plane onlyNothing
The control plane's open padlockpublicPublished by the control plane; every server fetches itNothing

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 TOKEN value 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.

Edit on GitHub

Last updated on

On this page