Skip to content

Instantly share code, notes, and snippets.

@ollietreend
Last active June 25, 2022 11:11
Show Gist options
  • Save ollietreend/c2e860d65334789b08c27132a17ff15f to your computer and use it in GitHub Desktop.
Save ollietreend/c2e860d65334789b08c27132a17ff15f to your computer and use it in GitHub Desktop.
Decode Kubernetes secrets
# Get secret from Kube and pipe to jq to parse and base64 decode
kubectl get secret name-of-the-secret -o JSON | jq '.data | map_values(@base64d)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment