~krystianch/keditb64

Kubernetes Base64 secret editor

clone

read-only
https://git.sr.ht/~krystianch/keditb64
read/write
git@git.sr.ht:~krystianch/keditb64

You can also use your local clone with git send-email.

#Kubernetes Base64 secret editor (keditb64)

Edit Kubernetes Base64-encoded (and gzipped) secrets transparently

Kubernetes secrets are stored as Base64-encoded strings. This makes editing them inconvenient. One has to read, decode, edit, encode, update the secrets. This tool performs all these steps transparently.

#Requirements

Optionally:

  • sudo or doas (export SUDO=doas)
  • vim, nano or other text editor (export EDITOR=nano)
  • gzip for gzip support

#Installation

Download the script and make the file executable.

wget https://codeberg.org/krystianch/keditb64/raw/branch/main/keditb64
chmod +x keditb64

#Usage

Please refer to the usage information or run keditb64 -h for more details.

Example:

./keditb64 -n monitoring alertmanager-main alertmanager.yaml

#Contributing

Send patches to the mailing list, report bugs on the issue tracker.

#License

MIT, see script.

Copyright (C) 2024 Comtegra S.A.