Module rbac

Source
Expand description

RBAC (Role-Based Access Control) auth adapter for curator vaults.

This module provides an RBAC implementation of the AuthAdapter trait for curator vaults. It enforces role-based access control where different roles have permission to perform different actions.

§Roles

  • Curator: Curator-scoped actions, plus allocator-class operations
  • Sentinel: Emergency backstop (used for pause and restriction updates)
  • Allocator: Can manage allocations and refreshes
  • User: Can deposit, withdraw, execute withdrawals

Structs§

RbacAuth
RBAC auth adapter implementation.
RbacConfig
RBAC configuration for the vault.
RoleAssignment
Role assignment for an address.

Enums§

Role
Role types for RBAC.

Functions§

required_role
Get the required role for an action.