Lux Docs
Iam

Authorization

Role-based access control, permissions, and policy enforcement

Lux IAM provides RBAC with fine-grained permissions and policy enforcement across all ecosystem services.

RBAC Model

Organization ──► User ──► Role ──► Permission (resource:action)

Built-in Roles

RolePermissions
adminFull access to all resources
editorRead/write on assigned resources
viewerRead-only access
developerAPI access and key management

Permission Format

Permissions follow resource:action pattern: users:read, keys:create, billing:write.

Policy Enforcement

Every API request is evaluated:

Request ──► Gateway ──► JWT ──► org from "owner" ──► Check Permissions ──► Allow/Deny
Rule TypeDescription
AllowExplicitly grants access
DenyTakes precedence over Allow
ConditionTime-based, IP-based, or resource-scoped

Multi-Tenancy

All database queries scoped to organization. Cross-org access requires explicit federation. Audit logs are per-organization.

Billing Integration

IAM tracks credit balances for metered services:

Commerce (add credits) ──► IAM (source of truth) ──► Cloud (debit on usage)

On this page