Getting started
Pick the stack you're building on. Each quickstart runs the same four titled steps — install, configure & environment, first permission check, the first admin — and then every tab funnels into one shared walkthrough, From first admin to a running org, that shows the (identical) management API for creating features, roles, and members. The per-library guides go deeper from there.
These quickstarts install each library from Archenstack's GitLab Package Registry — see Installation to point your package manager at it once. Hacking on the library itself instead? Every quickstart works just as well from a local checkout of the monorepo directories (archenstack-rbac-python, archenstack-rbac-nodejs, and the rest): pip install -e ., npm install && npm run build, cargo test, go test ./....
- Python
- Node.js
- Django
- Java / Spring
- Rust
- Go
- Web (frontend)
Step 1 · Install
Install the pure core from Archenstack's package registry — point pip at it once first (Installation):
pip install archenstack-rbac # 1.0.0
The distribution is archenstack-rbac (what pip sees); you import archenstack_rbac.
Step 2 · Configure & environment
archenstack-rbac reads no environment variables and needs no configuration — it's pure in-memory state you build in code. There is nothing to set for the core itself; where roles, features, and overrides come from (a config file, a database, the wire snapshot) is your host application's concern.
A fresh matrix grants nothing until you set defaults, and an undeclared (feature, role) pair resolves to the conservative NONE fallback — access is opt-in. Every cell resolves to one of four ordered access levels, NONE < VIEW < PARTIAL < FULL (read at VIEW+, write at PARTIAL+ — see Access levels). Declaring a default or override validates names (UnknownRole / UnknownFeature); querying never raises.
Step 3 · First permission check
Build a matrix, declare its code defaults, and query it:
from archenstack_rbac import Matrix, N, V, P, F
matrix = Matrix(
roles=["administrator", "manager", "staff"],
features={"records.view": "View records", "records.edit": "Edit records"},
superusers={"owner"}, # always FULL, never a column
aliases={"supervisor": "manager"}, # 'supervisor' resolves as 'manager'
)
matrix.define_rows(
["administrator", "manager", "staff"],
{
"records.view": [F, F, V],
"records.edit": [F, P, P],
},
)
matrix.can_write("records.edit", "staff") # True (PARTIAL is writable)
matrix.can_write("records.edit", "supervisor") # True (mirrors manager)
matrix.level("records.edit", "owner").name # 'FULL' (superuser)
matrix.override("records.edit", "staff", N) # layer a runtime override
matrix.can_write("records.edit", "staff") # False
Step 4 · The first admin
The pure core has no bootstrap knob, no HTTP layer, and no org model — so there is no "first admin" to seed here. The admin lifecycle (seeding an org admin who holds rbac.manage at FULL, then creating features, roles, and inviting members over a management API) belongs to a server adapter that persists this core and serves it over HTTP.
For Django, that's the batteries-included archenstack-rbac-django adapter — it owns the bootstrap knob, the management API, and org provisioning. On any other framework you drive this core directly and add your own HTTP layer.
Continue in From first admin to a running org to create roles, features, and invite members.
Step 1 · Install
Install the package (core plus the Express adapter):
npm install @archenstack/rbac-node
Point npm at Archenstack's package registry first — see Installation for the one-time scope + token setup. The core imports from the package root; the Express adapter lives behind the @archenstack/rbac-node/adapter subpath, so a resolver-only project never loads Express.
Step 2 · Configure & environment
Wire the adapter with a RoleResolver that maps your already-authenticated principal to a role slug. With no resolver the adapter is FAIL-CLOSED — every caller is denied 401 and a WARN is logged at boot.
import { createApp, jwtClaimsRoleResolver } from "@archenstack/rbac-node/adapter";
// FAIL-CLOSED: createApp() with no resolver denies every caller (401).
// Here we read the role off claims your JWT middleware has already verified
// (Archenstack never validates the token itself).
const app = createApp({
resolveRole: jwtClaimsRoleResolver({ roleClaim: "role" }),
});
app.listen(8080);
Or build the whole adapter from the environment with createAppFromEnv() — src/adapter/config.ts is the single place that reads process.env, and it fails loud at boot on any missing required var (no code fallback).
Required env:
| Variable | Purpose |
|---|---|
ARCHENSTACK_RBAC_DEFAULT_ORG | Org slug the single-org in-memory matrix serves. |
ARCHENSTACK_RBAC_CHECK_BATCH_MAX | Max items a POST /check/ batch may carry (positive integer). |
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE | Role that must resolve rbac.manage FULL at boot (lock-out safety). |
Copy .env.example to a per-developer .env and load it, e.g. node --env-file=.env server.js.
Step 3 · First permission check
The adapter speaks the wire protocol. GET /me/ returns the caller's resolved permissions; POST /check/ decides a feature (single or batch), fail-closed per item.
# resolved permissions for the caller's role
curl -s http://localhost:8080/me/
# decide one feature
curl -s http://localhost:8080/check/ \
-H 'Content-Type: application/json' \
-d '{"feature": "records.edit"}'
The response is the standard { wire_version, kind, role, org, permissions, allowed } envelope. A request whose role doesn't resolve is denied 401.
Every request must carry whatever your resolver reads. For a quick local demo, wire the insecure headerRoleResolver from @archenstack/rbac-node/adapter/dev and pass -H 'X-Role: admin' — never in production.
Step 4 · The first admin
Node is single-org and in-memory: it resolves the role directly, with no (org, subject) → role assignment store to write into. So the bootstrap knob names a role, not a subject — ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE:
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE=admin
At boot createAppFromEnv() runs assertBootstrapAdmin, a read-only verify-not-insert check: it confirms that role exists in the seeded matrix and resolves rbac.manage FULL — the spec-pinned anti-lock-out check, never configurable — throwing (fail-closed) if the deployment would start locked out. That role then administers the management API; the persisting adapters (Django, Spring) instead bind a real first-admin assignment row.
Continue in From first admin to a running org to create roles, features, and invite members.
Step 1 · Install
Install the adapter — it pulls in the pure core (archenstack-rbac), Django, and DRF:
pip install archenstack-rbac-django
The packages come from a private registry. Do the one-time index/token setup on the Installation page first.
Register the app, apply its migrations, and seed the catalogue:
# settings.py
INSTALLED_APPS = [
# ...
"rest_framework",
"archenstack_rbac_django",
]
python manage.py migrate
python manage.py rbac_seed # idempotent
Step 2 · Configure & environment
Mount the management API under a prefix you own:
# urls.py
from django.urls import include, path
urlpatterns = [
path("permissions/", include("archenstack_rbac_django.urls")),
]
The adapter is fail-closed: with no identity resolver wired, every caller resolves to no role and every route denies. Access is opt-in — point a resolver at your already-validated claims:
# settings.py
ARCHENSTACK_RBAC = {
"SCOPE_SUBJECT_RESOLVER": "archenstack_rbac_django.jwt_claims.jwt_subject_resolver",
"SCOPE_ORG_RESOLVER": "archenstack_rbac_django.jwt_claims.jwt_org_resolver",
}
Required environment — single source of truth, no code fallback (an unset value raises ImproperlyConfigured). All ship in .env.example:
| Var | Purpose |
|---|---|
ARCHENSTACK_RBAC_DEFAULT_ORG | Seed / backfill org slug — never a runtime fallback for a missing org claim. |
ARCHENSTACK_RBAC_CACHE_TTL | Compiled-matrix cache TTL, seconds (0 = never expire). |
ARCHENSTACK_RBAC_CHECK_BATCH_MAX | Max items in a batch POST /check/. |
ARCHENSTACK_RBAC_AUDIT_DEFAULT_PAGE_SIZE | Default GET /audit/ page size. |
ARCHENSTACK_RBAC_AUDIT_MAX_PAGE_SIZE | Hard cap on GET /audit/ page size. |
Step 3 · First permission check
Two caller-facing routes, open to any authenticated user with an assigned role.
GET /permissions/me/ — the caller's effective map:
curl -H "Authorization: Bearer $TOKEN" https://your-host/permissions/me/
Returns feature -> {level, can_read, can_write} for the caller's role in their org.
POST /permissions/check/ — a single decision:
curl -X POST -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"feature": "records.edit"}' \
https://your-host/permissions/check/
Returns a kind: "policy" body with allowed plus the core Decision. Add "object": {...} for an object-level write check, or send {"checks": [...]} for a batch. A caller who resolves to no role gets kind: "error" (not_found, HTTP 404) — fail closed.
Step 4 · The first admin
Every management route requires rbac.manage at FULL, so the first admin assignment is the one grant nobody can make from inside the matrix. Enable the startup bootstrap by binding a stable OIDC sub:
# .env
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_SUBJECT=the-first-admins-sub
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE=administrator # empty ⇒ the seeded administrator
On Django's post_migrate signal the subject is bound to the administrator role (which resolves rbac.manage FULL) in ARCHENSTACK_RBAC_DEFAULT_ORG — idempotent and lock-out-safe. An empty subject is the explicit "off" state (no bootstrap). That admin then creates features, roles, and invites members over the management API.
Continue in From first admin to a running org to create roles, features, and invite members.
Step 1 · Install
Add the starter to your pom.xml. The io.archenstack artifacts resolve from Archenstack's private GitLab Maven registry — do the one-time registry + deploy-token setup in Installation; everything else keeps coming from Maven Central.
<dependency>
<groupId>io.archenstack</groupId>
<artifactId>archenstack-rbac-spring-boot-starter</artifactId>
<version>1.0.0</version>
</dependency>
The starter auto-configures the whole management API — entities, repositories, controllers, seeding, and authorization.
Step 2 · Configure & environment
Provide one RbacPrincipalResolver bean bridging your authenticated principal to its stable OIDC sub. Archenstack reads the role from its own (org, sub) assignment table, so your token never carries one. It's a functional interface, so a lambda is enough:
@Bean
RbacPrincipalResolver rbacPrincipalResolver() {
return request -> currentUser(request).getSub(); // your principal → OIDC `sub`; null ⇒ denied
}
Wiring the resolver is how access is opted in. With no bean the adapter resolves every caller to no role — authenticated routes deny (401) and it logs a startup WARN. Return null for an unauthenticated or role-less caller. Multi-tenant? Override the same bean's resolveOrg to read the tenant from your org claim; it too fails closed (an unresolved org denies).
These ARCHENSTACK_RBAC_* vars are required — each is validated with no code fallback, so a missing one fails the boot:
| Env var | Purpose |
|---|---|
ARCHENSTACK_RBAC_BASE_PATH | prefix the routes mount under (before /permissions/…), e.g. /api/v1 |
ARCHENSTACK_RBAC_CHECK_BATCH_MAX | max items one POST /check/ batch may carry |
ARCHENSTACK_RBAC_AUDIT_DEFAULT_PAGE_SIZE | default audit-log page size |
ARCHENSTACK_RBAC_AUDIT_MAX_PAGE_SIZE | maximum audit-log page size |
ARCHENSTACK_RBAC_DEFAULT_ORG | seed/backfill org slug — required while startup seeding is on (the default) |
Step 3 · First permission check
The two caller-facing routes need only authentication (management routes require rbac.manage FULL). With ARCHENSTACK_RBAC_BASE_PATH=/api/v1:
B=http://localhost:8080/api/v1
# the caller's resolved permission map
curl -s "$B/permissions/me/" -H 'Authorization: Bearer <token>'
# decide one feature (add "object" for object-level scope)
curl -s -X POST "$B/permissions/check/" \
-H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' \
-d '{"feature":"invoices"}'
/check/ also accepts a {"checks":[…]} batch, answered with a positional results array (results[i] ↔ checks[i]).
Step 4 · The first admin
A fresh deployment can't create its first assignment from inside the matrix — every management route already requires rbac.manage FULL. Set the bootstrap knob to a stable opaque subject id (the OIDC sub) and the starter binds it to the admin role in the default org at startup, giving it rbac.manage FULL. It's idempotent, and empty (the default) means no bootstrap:
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_SUBJECT=<stable-sub> # opaque subject id; empty ⇒ no bootstrap
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE=administrator # optional; default: administrator
ARCHENSTACK_RBAC_DEFAULT_ORG must be set (otherwise it logs a WARN and skips). The default administrator role auto-seeds the sample catalogue when the org has no roles; a custom slug must already exist in a catalogue you've seeded.
Continue in From first admin to a running org to create roles, features, and invite members.
Step 1 · Install
Add the crate to your Cargo.toml. The core is dependency-free; the optional web feature adds the axum HTTP adapter.
# Cargo.toml
[dependencies]
archenstack_rbac = { git = "https://git.atolytix.com/packages/archenstack.git", tag = "archenstack-rbac-rust/v1.0.0", features = ["web"] }
The crate is consumed as a git dependency pinned to a release tag (the private GitLab Cargo registry isn't production-ready yet). See Installation for the one-time access setup. Drop features = ["web"] for the pure resolution core.
Step 2 · Configure & environment
Turn on the web feature and build the axum router with app_with_config(store, resolver, config). Read the deployment knob from the environment — the single source of truth, with no inline default.
use archenstack_rbac::web::{self, Store, WebConfig, fail_closed_resolver};
let config = WebConfig::from_env()?; // reads ARCHENSTACK_RBAC_CHECK_BATCH_MAX; fails loudly if unset
let app = web::app_with_config(
Store::demo(), // in-memory matrix
fail_closed_resolver(), // shipped default: DENIES everyone — access is opt-in
config,
);
// axum::serve(listener, app).await?;
Access is fail-closed until you supply a resolver. Swap in claims_role_resolver(ClaimsResolverConfig::default()) to read the caller's role slug from a claim on a host-validated Authorization: Bearer token (Archenstack never validates the token — do that upstream).
Required environment
| Variable | Purpose |
|---|---|
ARCHENSTACK_RBAC_CHECK_BATCH_MAX | Max items one POST /check/ batch may carry. No inline default — an unset, zero, or non-numeric value fails at boot. |
The runnable serve example additionally reads ARCHENSTACK_RBAC_BIND_ADDR (the host:port to bind); the library itself reads only the variable above.
Step 3 · First permission check
A permission check is a comparison on an ordered AccessLevel. Build a matrix, declare its defaults, and query it through the core Matrix facade:
use archenstack_rbac::{Matrix, AccessLevel};
let mut matrix = Matrix::new();
matrix.add_role("manager").add_role("staff");
matrix.add_feature("reports", "Reports");
matrix.set_default("reports", "manager", AccessLevel::Full)?;
matrix.set_default("reports", "staff", AccessLevel::View)?;
matrix.level("reports", "manager"); // AccessLevel::Full
matrix.can_write("reports", "staff"); // false — VIEW isn't writable
Over the axum adapter this same decision is what POST /check/ returns; the caller's role comes from the resolver you wired in Step 2 (fail-closed until you supply one).
Step 4 · The first admin
The Rust web feature is a thin HTTP skin over the resolution core: it serves the wire API over an in-memory Store with no subject→role assignment layer, so there is no first-admin seed env var and no provision_org. The bootstrap-admin lifecycle lives in a batteries-included server adapter — today the Django and Java (Spring) adapters ship the first-admin seed and org provisioning.
What the Rust adapter enforces instead is the spec-pinned anti-lock-out check: management writes require the caller to resolve rbac.manage at Full, and any write that would strip the last role still holding rbac.manage Full is rejected with a lockout error. That check is never configurable.
Continue in From first admin to a running org to create roles, features, and invite members.
Step 1 · Install
Add the module at v1.0.0. Go serves it straight from git, so do the one-time GOPRIVATE + token setup on Installation first, then:
go get github.com/archenstack/archenstack-rbac-go@v1.0.0
You get two packages: the standard-library-only core (rbac) and its net/http adapter.
Step 2 · Configure & environment
adapter.ConfigFromEnv reads the deployment settings from the environment as the single source of truth — no code fallback. Then wire a RoleResolver over your verified identity; leave it nil and the adapter is fail-closed — the shipped DenyAllResolver grants no role, so every authenticated route returns 401 until you supply one.
import "github.com/archenstack/archenstack-rbac-go/adapter"
cfg, err := adapter.ConfigFromEnv() // fails loudly if a required var is unset/malformed
if err != nil {
log.Fatal(err)
}
cfg.RoleResolver = adapter.NewClaimsRoleResolver("role", "") // opt in; nil ⇒ deny-all
srv := adapter.NewServer(cfg)
http.ListenAndServe(":8080", srv.Handler())
The resolver only reads claims your auth middleware already verified and attached with adapter.WithClaims — Archenstack never validates a token itself.
Required environment variable:
| Variable | Purpose |
|---|---|
ARCHENSTACK_RBAC_CHECK_BATCH_MAX | max items in a POST /check/ batch — unset or malformed fails boot |
Step 3 · First permission check
The core decides; the adapter serves. In-process, decide a feature for a role straight off the matrix snapshot:
snap := srv.Store().Snapshot()
d := snap.Decide("reports", "manager") // rbac.Decision{Level, Scope}
ok := d.Level >= rbac.VIEW // ordered: NONE < VIEW < PARTIAL < FULL
Over HTTP the same decision is POST /check/ (single or batch) for any authenticated caller — the resolver from Step 2 supplies the role, so an unauthenticated request gets 401:
curl -sX POST localhost:8080/check/ -H 'Content-Type: application/json' \
-d '{"feature":"reports"}'
Step 4 · The first admin
Set the bootstrap knob so the deployment is never locked out at creation. With ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_SUBJECT non-empty, NewServer ensures the management-FULL admin role — ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE (default administrator) — exists, seeding the sample catalogue into an empty store. That role holds rbac.manage at FULL, the spec-pinned anti-lock-out check.
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_SUBJECT=<your-stable-sub>
ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE=administrator # optional; this is the default
The in-memory adapter has no assignment store, so this guarantees the admin role exists; mapping that subject onto it is your RoleResolver's job.
Continue in From first admin to a running org to create roles, features, and invite members.
Step 1 · Install
npm install @archenstack/rbac-web
@archenstack/rbac-web publishes to a private GitLab Package Registry — point npm at it once, then this command works. See Installation for the one-time registry setup.
React is an optional peer dependency (react >= 18), needed only for the /react admin UI in Step 4.
Step 2 · Configure & environment
Read the API base once, then build a single authenticated client from it.
// env.ts — the one place build-time config is read
export const API_BASE = import.meta.env.VITE_RBAC_API_BASE;
import { RbacClient } from "@archenstack/rbac-web";
import { API_BASE } from "./env";
export const client = new RbacClient({
baseUrl: API_BASE,
token: () => authStore.getAccessToken(), // in-memory getter; omit for cookie/session auth
});
The only required config is the API base URL — a build-time env var, read with no fallback so a missing value is a config error, never a silent request to the wrong host:
| Var | Purpose |
|---|---|
VITE_RBAC_API_BASE | Base URL of the Archenstack management API, e.g. https://api.example.com/api/v1 |
Step 3 · First permission check
Read the current user's permissions to check imperatively:
const perms = await client.myPermissions(); // a Permissions object
perms.canWrite("reports.export"); // enable the export button?
Permissions treats unknown features as no-access, so probing is always safe. In React, wrap the tree in one provider (it owns a single /me/ fetch) and check declaratively:
import { RbacProvider, Can } from "@archenstack/rbac-web/react";
<RbacProvider client={client}>
<Can feature="reports.export" need="write">
<ExportButton />
</Can>
</RbacProvider>;
Checks fail closed — while /me/ loads, on error, and for an unknown feature, every check denies. They decide what to show; every action must still re-authorize on the server.
Step 4 · The first admin
@archenstack/rbac-web/react also ships the surface an org admin uses. The first org admin is seeded server-side; from there, hand the drop-in PermissionsAdmin your authenticated client and it renders the whole editor:
import { PermissionsAdmin } from "@archenstack/rbac-web/react";
import "@archenstack/rbac-web/react/styles.css";
<PermissionsAdmin client={client} onError={notify} />;
It composes the panels an admin works in — My Permissions, Roles, Groups, Features, Permission Matrix, plus Members and Assignments for an org admin — and, on a multi-tenant backend, an org picker. Authentication stays with your app; the component only uses the client you pass. Non-React hosts get the same UI as the <archenstack-admin> custom element from @archenstack/rbac-web/element.
Continue in From first admin to a running org to create roles, features, and invite members.
From first admin to a running org
Every tab above ends here. This last stretch is the same for every backend — the wire API is byte-identical; only your language's bootstrap knob (Step 4 above) differs.
1 · Seed the first admin
Every management route demands rbac.manage at FULL, so the very first admin assignment is the one grant that can't be made from inside the matrix — it is seeded out-of-band at boot. In a standalone / bring-your-own-auth deployment you set a bootstrap-admin-subject (ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_SUBJECT, or archenstack-rbac.bootstrap-admin-subject); Archenstack binds that stable sub to the admin role (ARCHENSTACK_RBAC_BOOTSTRAP_ADMIN_ROLE, empty ⇒ the seeded administrator) in the default org at startup — and an empty value is the explicit "off" state, never a crash. In IdP mode a separate orchestrator does the equivalent instead: provision_org(slug, first_admin_sub, plan?) creates the org inactive, seeds a lock-out-safe matrix, binds the first admin, then flips it active — atomically and idempotently, with the org denying at the resolver until that bind resolves FULL. Either way the seeded admin now holds rbac.manage FULL, and nothing else can reach the management API until it exists.
2 · One admin, one org
That admin always operates inside exactly one organization. A single-org deployment lives in the reserved root org, supplied by ARCHENSTACK_RBAC_DEFAULT_ORG (env-sourced, no inline default — an unset value fails loudly at boot); root is a seed / backfill target only and is never a request-time fallback. A multi-tenant deployment resolves the caller's tenant from the org claim — emitted behind a dedicated organization scope — and selects that org's snapshot server-side; the management paths below are byte-identical whether you serve one org or many. Tenancy is fail-closed: a missing or unknown org denies rather than silently defaulting to root, so a misconfigured claim can only ever remove access, never cross a tenant boundary.
3 · Run the org over the management API
Day to day, the admin does all of this — features, roles, the matrix, invitations, and assignments — through the web admin UI: the drop-in PermissionsAdmin React component (or the framework-agnostic <archenstack-admin> custom element) from @archenstack/rbac-web, which renders the Features, Roles, Permission Matrix, Members, and Assignments panels over exactly the endpoints below.
Those same endpoints are the management API, shown here as curl for scripting, automation, and non-JS backends. Every path is base-path-mounted — {base}/permissions/… ({base} is /api/v1 on Spring, host-chosen and often empty on Django) — and speaks the same versioned wire_version: 1 envelopes.
# The admin's bearer token — its role resolves rbac.manage at FULL.
BASE="https://api.example.com/api/v1" # {base}/permissions/… ; drop /api/v1 for a bare Django mount
TOKEN="…admin access token…"
Create a feature (a matrix row) — feature definition is restricted one notch tighter, to a super (developer) role, which also resolves rbac.manage FULL:
curl -sX POST "$BASE/permissions/features/" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"key": "records.edit", "label": "Edit records"}'
Create a role (a matrix column; kind defaults to standard):
curl -sX POST "$BASE/permissions/roles/" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"slug": "manager", "label": "Manager"}'
Edit a matrix cell — a bulk override PUT (delta semantics, validated against the lock-out invariant; level is 0..3, the target must be a standard role):
curl -sX PUT "$BASE/permissions/matrix/" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"cells": [{"feature": "records.edit", "role": "manager", "level": 3}]}'
Invite + assign a member — an invite pre-seeds a pending member the subject-picker draws from (POST "$BASE/permissions/members/" with {"email": "…"}); assigning binds that member's OIDC sub to a role (validated against the anti-lockout rule):
curl -sX POST "$BASE/permissions/assignments/" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"subject": "the-members-oidc-sub", "role": "manager"}'
All four require an admin token whose role resolves rbac.manage at FULL (defining features tightens that to a super role). These calls are identical across every backend library — the only thing that differs is {base}; Java, Django, Node, Go, and Rust all serve the same routes, bodies, and wire_version: 1 envelopes.
Where to next
- New to the model? Read the model and resolution, scopes & the authorizer — 10 minutes that make everything else click.
- Choosing how to deploy? Deployment modes contrasts IdP-backed vs standalone; Provisioning & self-service covers the orchestrator path.
- Integrating two stacks? The wire protocol is the contract they share, and Configuration lists every
ARCHENSTACK_RBAC_*var. - Locking things down? The security model explains what the client can and cannot be trusted to do.