2019-10-07 14:29:25 +01:00
|
|
|
# k8s-unused-secret-detector
|
|
|
|
|
2024-02-25 10:46:24 +00:00
|
|
|
> Detect unused Kubernetes secrets.
|
2019-10-07 14:29:25 +01: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:
|
|
|
|
|
|
|
|
`k8s-unused-secret-detector -n {{namespace}}`
|
|
|
|
|
|
|
|
- Delete unused secrets in a specific namespace:
|
|
|
|
|
|
|
|
`k8s-unused-secret-detector -n {{namespace}} | kubectl delete secret -n {{namespace}}`
|