Skip to content

tkuchiki/kube-sec-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-sec-decoder

Usage

Basic

$ cat test.yaml
apiVersion: v1
kind: Secret
metadata:
  name: testsecret
  namespace: default
data:
  FOO: Zm9v
  BAR: YmFy
  BAZ: MTIzNA==
$ cat test.yaml| kube-sec-decoder
apiVersion: v1
kind: Secret
metadata:
  name: testsecret
  namespace: default
data:
  FOO: foo
  BAR: bar
  BAZ: 1234

Hide .data.*

$ cat test.yaml| kube-sec-decoder --hide-data
apiVersion: v1
kind: Secret
metadata:
  name: testsecret
  namespace: default
data:
  FOO: <secret>
  BAR: <secret>
  BAZ: <secret>

$ cat test.yaml| kube-sec-decoder --hide-data --replace-data xxx
apiVersion: v1
kind: Secret
metadata:
  name: testsecret
  namespace: default
data:
  FOO: xxx
  BAR: xxx
  BAZ: xxx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages