Decision Workspace
nornir-auth-bearer vs nornir-auth-apikey vs webgates-tonic
Side-by-side comparison of Rust crates
Static Bearer token / API-key auth PROVIDER for the nordisk servers — the tiny, modern machine-to-machine method (CI runners, agents, headless clients). Implements the shared `nornir_service::AuthProvider` seam; reuses the shared bearer-secret resolution ladder + constant-time compare. Feature-gated sub-crate so an embedded/mini tier ships this ONE provider and nothing heavier. Consumed by holger (reference impl), korp, dwarves.
Hashed static API-key auth PROVIDER for the nordisk servers — verifies a presented key against a store of SHA-256-HASHED keys (hashed-at-rest, distinct from `nornir-auth-bearer`'s single plaintext secret). Enables rotating / multi-tenant key stores where the plaintext key is never persisted. Implements the shared `nornir_service::AuthProvider` seam via `verify_bearer`. REUSES the shared primitives (`nornir-hash::sha256_hex` for the digest, `nornir_service::token_matches` for the constant-time compare) — no crypto/HTTP of its own, so it is a tiny provider every tier can pin cheaply. Consumed by holger (reference impl), korp, dwarves.
Tonic server-side transport adapter for webgates authentication and authorization.
Core Metrics
| nornir-auth-bearer | nornir-auth-apikey | webgates-tonic | |
|---|---|---|---|
| Health Score | 45 | 41 | 55 |
| Total Downloads | 179 | 39 | 59 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 5 | 0 | 0 |
| Releases | 2 | 2 | 3 |
| Last Updated | 53d ago | 47d ago | 55d ago |
| Age | 2m | 2m | 5m |
Health Breakdown
Technical Details
| nornir-auth-bearer | nornir-auth-apikey | webgates-tonic | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.1 | 1.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 5 | 19 |
| Crate Size | 9KB | 9KB | 42KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | 1.94 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •webgates-tonic leads with a health score of 55/100, but none of the options score above 80.
- •nornir-auth-bearer has the most downloads (179), suggesting wider adoption.
- •nornir-auth-bearer, nornir-auth-apikey are pre-1.0 — API may change.