https://github.com/tkuchiki/kube-sec-decoder
https://github.com/tkuchiki/kube-sec-decoder
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tkuchiki/kube-sec-decoder
- Owner: tkuchiki
- License: mit
- Created: 2019-04-06T14:40:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T11:45:38.000Z (about 4 years ago)
- Last Synced: 2025-01-25T09:10:05.247Z (4 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kube-sec-decoder
## Usage
### Basic
```shell
$ cat test.yaml
apiVersion: v1
kind: Secret
metadata:
name: testsecret
namespace: default
data:
FOO: Zm9v
BAR: YmFy
BAZ: MTIzNA==
``````shell
$ cat test.yaml| kube-sec-decoder
apiVersion: v1
kind: Secret
metadata:
name: testsecret
namespace: default
data:
FOO: foo
BAR: bar
BAZ: 1234
```### Hide .data.*
```shell
$ cat test.yaml| kube-sec-decoder --hide-data
apiVersion: v1
kind: Secret
metadata:
name: testsecret
namespace: default
data:
FOO:
BAR:
BAZ:$ 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
```