Skip to content

Concept

etcd backup

A snapshot holds each Secret of a cluster. So the operator encrypts it before it leaves the operator, with public keys only. Only a person with a private key can decrypt it, on that person's own machine.

etcd gives a snapshot to the operator. The operator checks the bbolt format, encrypts with age public keys and writes ciphertext to S3 or a PVC. It reads the ciphertext back to verify. A person decrypts with an age identity on a workstation.clusteretcda followerOperatorage1… publicSinkS3 or PVCEtcdSnapshotVerified, sha256your workstationpk-metal backupage private keyciphertext
Public keys in the cluster, private keys with people.
Sink
Where snapshots go: an S3 bucket, or a PersistentVolumeClaim of the operator.
age recipient
A public key age1… in the policy. Name at least two, for example two persons or one key in a safe.
Verified
The operator read the ciphertext back and its hash agrees. The plaintext was a valid bbolt database. Only a Verified snapshot can be restored.
BackedUp
The policy condition. True while a Verified snapshot is newer than two intervals.
  1. A snapshot needs no approval. It reads etcd and changes no machine.
  2. Retention removes old snapshots, but never the newest Verified snapshot.
  3. The operator refuses a PVC sink for the cluster that it runs on, with SinkRefused. The cluster takes that volume with it when it fails.
  4. The operator never restores by itself. A restore is approved operations, see Disaster recovery.
  5. The operator never bootstraps a cluster two times.