Skip to content

Instantly share code, notes, and snippets.

@wstrange
Created August 16, 2021 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wstrange/b36a9016bb5f26a2c4a146aa1e7dfc99 to your computer and use it in GitHub Desktop.
Save wstrange/b36a9016bb5f26a2c4a146aa1e7dfc99 to your computer and use it in GitHub Desktop.
s: oneliner for dumping secret
#!/usr/bin/env bash
# Probably simpler way to do this??
kubectl get secrets/$1 -o json | jq .data.\"$2\" | sed -e s/\"//g | base64 -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment