feat(vault): 3-node raft HA on single-replica storage (JDWLABS-25) [DRAFT — window-gated]#10
Draft
jdwillmsen wants to merge 1 commit into
Draft
feat(vault): 3-node raft HA on single-replica storage (JDWLABS-25) [DRAFT — window-gated]#10jdwillmsen wants to merge 1 commit into
jdwillmsen wants to merge 1 commit into
Conversation
Removes Vault as a single point of failure. On 2026-06-06 a Longhorn instance-manager fault sealed the single standalone Vault, taking down the cluster ClusterSecretStore. - New longhorn-single StorageClass (1 replica, best-effort, Retain): raft replicates across pods at the app layer, so one Longhorn fault takes at most one Vault node and quorum (2/3) survives. - vault values: ha.raft enabled, 3 replicas, host anti-affinity, retry_join for follower auto-join, data on longhorn-single. - unseal cron: unseal all three pods by name (the service VIP only reaches one, leaving followers sealed). Verified: helm template (chart 0.30.1) renders a 3-replica StatefulSet with the raft config, longhorn-single PVCs, host anti-affinity, and an auto-managed PodDisruptionBudget; SC and CronJob pass --dry-run=server; all files parse as valid YAML. DO NOT MERGE until the maintenance window: applying this re-inits Vault (wipes current data). Follow the JDWLABS-25 cutover runbook (pre-flight seed-value check, phase 3 init, phase 4 re-seed). Closes JDWLABS-25. Closes JDWLABS-30 (Vault PDB auto-managed by chart). Refs JDWLABS-22. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merging triggers ArgoCD to redeploy Vault as 3-node raft, which re-inits Vault and wipes current data. Execute only via the JDWLABS-25 cutover runbook (pre-flight seed-value check → phase 3 init → phase 4 re-seed). Design + runbook live on JDWLABS-25.
Summary
Removes Vault as a single point of failure. On 2026-06-06 a Longhorn instance-manager fault sealed the single standalone Vault, downing the cluster
ClusterSecretStore. Part of epic JDWLABS-22.Closes JDWLABS-25, JDWLABS-30 (Vault PDB is auto-managed by the chart in HA mode).
Changes
longhorn-singleStorageClass — 1 replica, best-effort, Retain. Raft replicates across the 3 pods, so one Longhorn fault takes at most one Vault node; quorum (2/3) survives. This is the SPOF removal.vault/values.yaml—ha.raftenabled, 3 replicas, host anti-affinity,retry_join(follower auto-join), data onlonghorn-single.vault-unseal-cronjob.yaml— unseal all 3 pods by DNS name (the VIP only reaches one, leaving followers sealed).Verification (pre-merge, non-destructive)
helm template(chart 0.30.1): renders 3-replica StatefulSet, raft config w/ 3 retry_join,longhorn-singlePVCs, host anti-affinity, auto PDBplatform-vault.kubectl apply --dry-run=serveron SC + CronJob.raft list-peers=3; kill-one-pod keeps secrets served; ExternalSecrets re-sync.Cutover runbook
On JDWLABS-25. Pre-flight: confirm all seed values on hand (porkbun, grafana, longhorn, alertmanager, usersrole, argocd-dex, per-tenant github-app/ai-keys/discord) — re-init wipes current secrets.
🤖 Generated with Claude Code