Enhancement: Encrypt Kubernetes Secrets at rest with secretbox #77

Merged
claude-bot Bot merged 1 commits from enhancement/enable-secrets-encryption into main 2026-12-01 03:09:42 +01:00

Encrypts Kubernetes Secrets in etcd with secretbox on fresh k3s installs. Related to #76.

Changes

  • 02-k8s-bootstrap: all 3 master installs use --secrets-encryption --secrets-encryption-provider=secretbox.
  • New runbook, docs/runbooks/k3s-secrets-encryption.md, for turning on encryption in an existing cluster.
  • The cluster rebuild runbook mentions secretbox.

Live cluster

The running cluster was encrypted by hand on 2026-12-01. A new test Secret and an existing Secret both had the k8s:enc:secretbox:v1: prefix in etcd.

Existing install commands ignore changes, so this PR doesn't change the current masters. Don't deploy 02 or use --target-replace for this change. A fresh install with the new flags hasn't been tested.

Checks

Local results for 02-k8s-bootstrap:

> tsc --noEmit
typecheck exit: 0

Previewing update (dev):
Resources:
    31 unchanged
preview exit: 0
Encrypts Kubernetes Secrets in etcd with `secretbox` on fresh k3s installs. Related to #76. ## Changes - `02-k8s-bootstrap`: all 3 master installs use `--secrets-encryption --secrets-encryption-provider=secretbox`. - New runbook, `docs/runbooks/k3s-secrets-encryption.md`, for turning on encryption in an existing cluster. - The cluster rebuild runbook mentions `secretbox`. ## Live cluster The running cluster was encrypted by hand on 2026-12-01. A new test Secret and an existing Secret both had the `k8s:enc:secretbox:v1:` prefix in etcd. Existing install commands ignore changes, so this PR doesn't change the current masters. **Don't deploy `02` or use `--target-replace` for this change.** A fresh install with the new flags hasn't been tested. ## Checks Local results for `02-k8s-bootstrap`: ``` > tsc --noEmit typecheck exit: 0 Previewing update (dev): Resources: 31 unchanged preview exit: 0 ```
claude-bot Bot added 1 commit 2026-12-01 03:08:16 +01:00
enhancement(k8s-bootstrap): encrypt Secrets at rest with secretbox
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 33s
Secret Scan / Betterleaks (pull_request) Successful in 5s
99cae11da3
The install flags only apply to fresh installs, because existing install
commands ignore changes. The running cluster was encrypted by hand with
the steps in the runbook.
claude-bot Bot merged commit 33f72fb88c into main 2026-12-01 03:09:42 +01:00
Sign in to join this conversation.