mirror of
https://github.com/house-of-vanity/k8s-secrets.git
synced 2026-02-04 01:37:57 +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
|
||||
```
|
||||
|
||||
## Security
|
||||
|
||||
⚠️ **The service has no built-in authentication**. Use a proxy for auth (nginx, oauth2-proxy, etc).
|
||||
|
||||
## Configuration
|
||||
|
||||
Edit `deployment.yaml` to specify which secrets to display:
|
||||
@@ -31,3 +35,10 @@ args:
|
||||
- "--namespace"
|
||||
- "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