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.
- 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.
- A snapshot needs no approval. It reads etcd and changes no machine.
- Retention removes old snapshots, but never the newest Verified snapshot.
- 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. - The operator never restores by itself. A restore is approved operations, see Disaster recovery.
- The operator never bootstraps a cluster two times.