Decision Workspace
nornir-auth-policy vs casbin vs webgates-core
Side-by-side comparison of Rust crates
Shared auth POLICY / composition layer for the nordisk servers — the RBAC role model (`Role`, `AuthConfig`, per-repo ACLs, the opt-in read gate), the declarative `AuthMethodConfig` (OIDC / OAuth2 / mTLS / static-token), and `validate_request`, which builds the enabled, feature-gated `nornir_service::AuthProvider` set from the config and dispatches a presented bearer + client-cert CN through it. The composition tier ABOVE the per-method provider leaves (nornir-auth-{bearer,oidc,oauth2,mtls}): a server pins the providers its tier needs and gets the same login + authorization model as holger (the reference consumer). Consumed by holger, and (suite-wide) korp / dwarves / nornir.
An authorization library that supports access control models like ACL, RBAC, ABAC.
Core domain types, permission system, and authorization building blocks for webgates.
Core Metrics
| nornir-auth-policy | casbin | webgates-core | |
|---|---|---|---|
| Health Score | 53 | 61 | 58 |
| Total Downloads | 197 | 3.3M | 538 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 8 | 283 | 18 |
| Releases | 5 | 72 | 3 |
| Last Updated | 5d ago | 247d ago | 55d ago |
| Age | 2m | 6y 9m | 5m |
Health Breakdown
Technical Details
| nornir-auth-policy | casbin | webgates-core | |
|---|---|---|---|
| Version | 0.1.4 | 2.20.0 | 1.1.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | Apache-2.0 | MIT |
| Dependencies | 16 | 28 | 11 |
| Crate Size | 51KB | 104KB | 41KB |
| Features | 7 | 10 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | 1.94 |
| Owners | 1 | 4 | 1 |
Links
Quick Verdict
- •casbin leads with a health score of 61/100, but none of the options score above 80.
- •casbin is depended on by 283 crates — strongest ecosystem trust.
- •nornir-auth-policy is pre-1.0 — API may change.