An open API service indexing awesome lists of open source software.

https://github.com/tkuchiki/kube-sec-decoder


https://github.com/tkuchiki/kube-sec-decoder

Last synced: 3 months ago
JSON representation

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
```