This runbook is to decode Kubernetes secrets
List all secrets in the Kubernetes cluster.
kubectl get secrets
Retrieve the specified key from the secret. Replace <SECRET_NAME> with the actual secret name and <KEY> with the specific key you need.
kubectl get secret <SECRET_NAME> -o jsonpath='{.data.<KEY>}'
Decode the base64 encoded secret. Replace <ENCODED_SECRET> with the encoded value from step 2.
echo '<ENCODED_SECRET>' | base64 --decode