k64dec

module
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: GPL-3.0

README

k64dec

Go Report Card Coverage Security Rating Vulnerabilities

This little tool print the decoded base64 of a Kubernetes secret:

Cmdline

Usage of k64dec
      --file string   kubernetes secret in json or yaml file
      --version       print version

Usage

Piped from a kubectl get secrets:

kubectl get secrets -n kured -o yaml kured-secret-values | k64dec
secretdata
configuration:
  notifyUrl: slack://kured@feingeiXe9Ze/uuGo4Aedaiph/xae1beizaeQu

Via a saved file:

k64dec --file secret.yaml
secretdata
configuration:
  notifyUrl: slack://kured@feingeiXe9Ze/uuGo4Aedaiph/xae1beizaeQu

With docker:

kubectl get secrets -n kured -o yaml kured-secret-values | docker run -i laghoule/k64dec

Notes

For running unittest, you need to set your timezone to UTC:

export TZ=UTC
go test ./...

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL