Skip to content

Instantly share code, notes, and snippets.

@joestringer
Created May 8, 2020 18:04
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 joestringer/768866d5a734ae77e1d446d02d83943c to your computer and use it in GitHub Desktop.
Save joestringer/768866d5a734ae77e1d446d02d83943c to your computer and use it in GitHub Desktop.
Cilium endpoint structure base64 decode functions
#!/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