Created
May 8, 2020 18:04
-
-
Save joestringer/768866d5a734ae77e1d446d02d83943c to your computer and use it in GitHub Desktop.
Cilium endpoint structure base64 decode functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
base64_decode() | |
{ | |
echo "$@" | sed -e 's/^.*://' | base64 -di | jq '.' | |
} | |
base64_decode_ep() | |
{ | |
EPID="$1" | |
base64_decode "$(grep BASE64 /var/run/cilium/state/$EPID/lxc_config.h)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment