mirror of
https://github.com/house-of-vanity/k8s-secrets.git
synced 2026-02-04 01:37:57 +00:00
36 lines
578 B
Markdown
36 lines
578 B
Markdown
|
|
# Secret Reader
|
||
|
|
|
||
|
|
Kubernetes secret viewer with TOTP support.
|
||
|
|
|
||
|
|
## Features
|
||
|
|
|
||
|
|
- View Kubernetes secrets in web UI
|
||
|
|
- Auto-generate TOTP codes from otpauth:// URLs
|
||
|
|
- Copy values with one click
|
||
|
|
|
||
|
|
## Deploy
|
||
|
|
|
||
|
|
```bash
|
||
|
|
kubectl apply -f service-account.yaml
|
||
|
|
kubectl apply -f rbac.yaml
|
||
|
|
kubectl apply -f deployment.yaml
|
||
|
|
kubectl apply -f service.yaml
|
||
|
|
```
|
||
|
|
|
||
|
|
## Configuration
|
||
|
|
|
||
|
|
Edit `deployment.yaml` to specify which secrets to display:
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
args:
|
||
|
|
- "--secrets"
|
||
|
|
- "secret1,secret2"
|
||
|
|
```
|
||
|
|
|
||
|
|
## Access
|
||
|
|
|
||
|
|
```bash
|
||
|
|
kubectl port-forward service/secret-reader 8080:80
|
||
|
|
```
|
||
|
|
|
||
|
|
Open http://localhost:8080
|