Automatically decoding kubernetes secrets

Kubernetes secrets are base64 encoded to ensure data consistency. This of course makes sense but it’s a pain in the ass if you need the values of your secrets on a daily basis. First download the latest version of jq from here and move the binary to /usr/local/bin/jq1.6. The latest Fedora and ubuntu versions still only have jq 1.5 in their repositories. Secondly put this in your .zshrc (or bashrc or whatever): function kubedecode { kubectl get secrets $@ -ojson | /usr/local/bin/jq1.
Read more →

Custom installation media folder in libvirt with SELinux

If you are running a Linux with SELinux in enforcing mode you will encounter an error while trying to creating a new VM with libvirt if you try to use a ISO as installation media which is not in the default /var/lib/libvirt/ folder. The error message will look something like this: 2293: error : qemuMonitorIORead:609 : Unable to read from monitor: Connection reset by peer 2293: error : qemuProcessReportLogError:1928 : internal error: qemu unexpectedly closed the monitor: 2019-03-25T10:59:10.
Read more →

Fixing a missing or broken UEFI record on Fedora 29

So here’s the situation: I’ve recently had to remove the CMOS battery on my system. This resulted in my PC getting past POST again but it also removed all UEFI entries. The official fedora documentation tells you to just to dnf reinstall grub2-efi shim. If that works for you, great! No need to read on. If for some reason it didn’t, here’s what I did to fix it: Solution Grab an USB-Stick loaded with a Live-Distribution and boot from it.
Read more →