2023-06-01 08:14:42 +00:00
|
|
|
# kubers
|
2023-06-01 17:46:29 +00:00
|
|
|
> Kubecl Reveal Secrets
|
2023-06-01 17:47:16 +00:00
|
|
|
|
2023-06-01 17:46:29 +00:00
|
|
|
kubers is a super simple tool that reveals k8s secrets using kubectl and yq
|
2023-06-01 08:14:42 +00:00
|
|
|
|
2023-06-01 21:24:05 +00:00
|
|
|
The tool requires `yq` and `kubectl`
|
|
|
|
|
2023-06-01 17:46:29 +00:00
|
|
|
Usage:
|
|
|
|
kubers [-V | --version] [-h | --help] [-n | --namespace <namespace>] [-c <name>=<value>]
|
|
|
|
<secret_name> [<entry_name>]
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
If you want to reveal all entries in the current k8s namespace
|
2023-06-01 21:24:05 +00:00
|
|
|
|
|
|
|
```
|
2023-06-01 21:30:28 +00:00
|
|
|
$ kubers $SECRET_NAME
|
2023-06-01 21:24:05 +00:00
|
|
|
```
|
|
|
|
|
2023-06-01 17:46:29 +00:00
|
|
|
If you want to reveal only one entry from the secret in the current namepspace
|
2023-06-01 21:24:05 +00:00
|
|
|
|
|
|
|
```
|
2023-06-01 21:30:28 +00:00
|
|
|
$ kubers $SECRET_NAME $SECRET_ENTRY
|
2023-06-01 21:24:05 +00:00
|
|
|
```
|
2023-06-01 17:46:29 +00:00
|
|
|
|
|
|
|
If you want to reveal a secret from another namespace
|
2023-06-01 21:24:05 +00:00
|
|
|
|
|
|
|
```
|
2023-06-01 21:30:28 +00:00
|
|
|
$ kubers -n $SECRET_NAME
|
2023-06-01 21:24:05 +00:00
|
|
|
```
|
2023-06-19 22:22:05 +00:00
|
|
|
|