2019-10-07 15:29:25 +02:00
|
|
|
# k8s-unused-secret-detector
|
|
|
|
|
2024-02-25 07:46:24 -03:00
|
|
|
> Detect unused Kubernetes secrets.
|
2019-10-07 15:29:25 +02:00
|
|
|
> More information: <https://github.com/dtan4/k8s-unused-secret-detector>.
|
|
|
|
|
|
|
|
- Detect unused secrets:
|
|
|
|
|
|
|
|
`k8s-unused-secret-detector`
|
|
|
|
|
|
|
|
- Detect unused secrets in a specific namespace:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}}`
|
2019-10-07 15:29:25 +02:00
|
|
|
|
|
|
|
- Delete unused secrets in a specific namespace:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}} | kubectl delete secret {{[-n|--namespace]}} {{namespace}}`
|