Skip to content

CLI Tool that allow encode and decode Kubernetes Secrets

Notifications You must be signed in to change notification settings

leonardobiffi/kse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Secret Encoding

release workflow

CLI Tool that allow encode and decode Kubernetes Secrets

Features

  • preserve yaml file order
  • support multiples secrets in the same file
  • stdin, file or directory as target
  • finds all secrets in a target directory

Install

Requirements

curl -fsSL https://raw.githubusercontent.com/leonardobiffi/kse/master/scripts/install.sh | sh

Using Golang

go install github.com/leonardobiffi/kse@latest

Examples

Decode

Searching for secrets in directory or file path

kse decode -o -f ./k8s/secrets/

kse decode -o -f ./k8s/secrets/secret.yaml

Using Stdin

kubectl get secret mysecret -o yaml | kse decode
cat secret.yaml | kse decode

Encode

Searching for secrets in directory or file path

kse encode -o -f ./k8s/secrets/

kse encode -o -f ./k8s/secrets/secret.yaml

Using Stdin

cat secret.yaml | kse encode

Roadmap

  • Add support for JSON secrets
  • Add tests
  • Add Dockerfile
  • Refactor packages encode/decode

About

CLI Tool that allow encode and decode Kubernetes Secrets

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published