Backup and restore automation for HashiCorp Vault Raft snapshots with cloud storage support
10K+
A lightweight Go-based automation operator for backup and restore of HashiCorp Vault Raft snapshots to cloud storage.
docker run --rm \
-e VAULT_ADDR=https://vault.example.com:8200 \
-e VAULT_TOKEN=your-token \
-e AZURE_STORAGE_ACCOUNT=mystorageaccount \
-e AZURE_STORAGE_CONTAINER=vault-backups \
-e AZURE_SAS_TOKEN=your-sas-token \
chapsvision/vault-raft-backup-operator:latest \
backup --provider azure
docker run --rm \
-e VAULT_ADDR=https://vault.example.com:8200 \
-e VAULT_TOKEN=your-token \
-e AZURE_STORAGE_ACCOUNT=mystorageaccount \
-e AZURE_STORAGE_CONTAINER=vault-backups \
-e AZURE_SAS_TOKEN=your-sas-token \
chapsvision/vault-raft-backup-operator:latest \
restore --provider azure --snapshot-name snapshot-20250101-120000.snap
VAULT_ADDR - Vault server address (required)VAULT_TOKEN - Vault token (required unless using K8s auth)VAULT_SKIP_VERIFY - Skip TLS verification (default: false)AZURE_STORAGE_ACCOUNT - Storage account name (required)AZURE_STORAGE_CONTAINER - Container name (required)AZURE_TENANT_ID - Azure AD tenant ID (for Service Principal)AZURE_CLIENT_ID - Service Principal client ID (for Service Principal)AZURE_CLIENT_SECRET - Service Principal secret (for Service Principal)AZURE_SAS_TOKEN - SAS token (alternative to Service Principal)For production use in Kubernetes with best practices:
📦 Source Code & Documentation: https://github.com/Chapsvision-dev/vault-raft-backup-restore
The repository includes:
apiVersion: batch/v1
kind: CronJob
metadata:
name: vault-backup
spec:
schedule: "0 2 * * *" # Daily at 2 AM
jobTemplate:
spec:
template:
metadata:
labels:
azure.workload.identity/use: "true"
spec:
serviceAccountName: vault-backup
containers:
- name: backup
image: chapsvision/vault-raft-backup-operator:latest
args: ["backup", "--provider", "azure"]
env:
- name: VAULT_ADDR
value: "http://vault:8200"
- name: AZURE_STORAGE_ACCOUNT
value: "mystorageaccount"
- name: AZURE_STORAGE_CONTAINER
value: "vault-backups"
restartPolicy: OnFailure
See the Kubernetes examples for complete setup guides.
VAULT_SKIP_VERIFY=false)⚠️ Important: Vault snapshots contain sensitive data including all secrets, encryption keys, and audit logs. Always treat snapshots as highly sensitive data.
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Maintained by: Chapsvision
Content type
Image
Digest
sha256:049d35be9…
Size
3.7 MB
Last updated
9 months ago
docker pull chapsvision/vault-raft-backup-operator