khuedoan-homelab/scripts/vault-root-token

6 lines
269 B
Plaintext
Raw Normal View History

2022-05-12 12:12:45 +07:00
#!/bin/sh
echo "WARNING: Root token can do anything in Vault, only use it for just enough initial setup or in emergencies." >&2
2022-05-12 12:12:45 +07:00
export KUBECONFIG=./metal/kubeconfig.yaml
2022-07-21 01:58:00 +07:00
kubectl get secrets vault-unseal-keys -n vault -o jsonpath='{.data.vault-root}' | base64 --decode