liggitt/audit2rbac
Autogenerate RBAC policies based on Kubernetes audit logs observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3279
- days_rel: n/a
- days_push: 1299
- n_releases_24m: 0
Adoption not part of the score
1112 stars · 83 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
audit2rbac is a Go CLI tool that takes a Kubernetes audit log and a username as input and generates RBAC Role and RoleBinding objects covering all API requests made by that user. It automates least-privilege RBAC policy authoring from observed API activity.
Use cases
- generate kubernetes rbac roles from audit logs
- create least-privilege role bindings for a service account
- figure out what permissions a user actually needs
- autogenerate rbac yaml instead of guessing permissions
- audit what api calls an app makes and scope its access
- convert broad cluster-admin access into minimal rbac rules
When to choose
- you have kubernetes audit logs in JSON format and want to derive exact RBAC policies for a user or service account
- you want to replace overly broad permissions with least-privilege roles based on observed behavior
- you run Kubernetes or OpenShift and need to author Role/RoleBinding manifests quickly
When to avoid
- you need RBAC policy management or continuous enforcement rather than one-time generation
- you don't have audit logging enabled or can't capture the full set of API requests
- you need authorization mechanisms other than Kubernetes RBAC
Facets
cli-tool · maturity maintenance
authorization security cli developer-tools security developer-tools cli windows cross-platform kubernetes rbac audit-logs openshift policy-generation go devops linux macos
1 source
- readme: https://github.com/liggitt/audit2rbac · fetched 2026-08-28 · c95eba3d8140
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| liggitt/audit2rbac | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="liggitt/audit2rbac")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem