# mikespook/gorbac

goRBAC provides a lightweight role-based access control (RBAC) implementation in Golang.

Repository: https://github.com/mikespook/gorbac
Canonical: https://ross.abutalabs.com/products/gorbac
Language: Go
License: MIT
License Family: permissive
Topics: rbac, go
Last push: 2026-07-21T00:28:11+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 8, longevity 100
- inputs: {"age_days": 4633, "days_push": 44, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1674, forks 180 (observed 2026-08-28T04:05:20.441121+00:00)

## What it is
goRBAC is a lightweight role-based access control (RBAC) library for Go, supporting many-to-many role/permission mappings and hierarchical role inheritance. It uses Go generics (1.18+) and offers a two-phase prepare/check workflow with optional assertion functions for fine-grained control.

## Use cases
- implement role-based access control in a Go application
- manage user roles and permissions with inheritance
- check if a role is granted a permission in Go
- build hierarchical permission systems with parent roles
- add custom assertion logic to permission checks
- add authorization to a Go web API

## When to choose
- you need a small, dependency-free RBAC model in Go
- you want role inheritance and custom permission types
- you prefer a library over a full identity/authorization service

## When to avoid
- you need full-featured identity management with users, sessions, and tokens
- you need attribute-based (ABAC) or policy-engine-driven authorization
- you are not working in Go

## Facets
- artifact type: library
- maturity: active
- function: authorization, security
- domain: security, developer-tools, backend
- platform: go, cross-platform
- tags: rbac, access-control, role-based, permissions, go-generics

## Member repositories
- mikespook/gorbac (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.441121+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:32.846274+00:00, confidence not recorded.
  - readme: https://github.com/mikespook/gorbac (fetched 2026-08-28T04:05:20.441121+00:00, sha de7982ffa1da)
- Data as of 2026-08-30T08:39:29.467469+00:00.
