2019-10-07 14:29:25 +01:00
|
|
|
# k8s-unused-secret-detector
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Command-line interface tool for detecting 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}}`
|