ServiceAccountWatch - Kubernetes unused ServiceAccount auditor
Reports ServiceAccounts that no pod in the namespace uses, on Slack. With approval on, a cluster admin confirms at a Pause gate before anything is deleted.
Monitor API rate-limit response headers, store quota measurements, and alert Slack before exhaustion.
Avoid surprise 429 responses by polling an API endpoint and reading its
remaining-quota header. Configure url, header_name, and
warning_remaining. Authentication can be supplied through a custom
header in a small task edit using {{ secret('API_TOKEN') }}.
Prerequisites: outbound HTTPS access and SLACK_WEBHOOK_URL. The endpoint
must expose a numeric remaining-quota header. Run manually before enabling
the hourly schedule; report stores the observed limit and threshold.
Links: Python Script, Slack. Created by yashspidey.
