mirror of
https://github.com/house-of-vanity/k8s-secrets.git
synced 2026-02-04 09:47:58 +00:00
Added query params to get values in plain text
This commit is contained in:
11
README.md
11
README.md
@@ -20,6 +20,10 @@ kubectl apply -f deployment.yaml
|
|||||||
kubectl apply -f service.yaml
|
kubectl apply -f service.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Security
|
||||||
|
|
||||||
|
⚠️ **The service has no built-in authentication**. Use a proxy for auth (nginx, oauth2-proxy, etc).
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Edit `deployment.yaml` to specify which secrets to display:
|
Edit `deployment.yaml` to specify which secrets to display:
|
||||||
@@ -31,3 +35,10 @@ args:
|
|||||||
- "--namespace"
|
- "--namespace"
|
||||||
- "k8s-secrets"
|
- "k8s-secrets"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## API Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Get secret field as plaintext
|
||||||
|
curl "http://localhost:3000/secret?name=my-secret&field=password"
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user