Role-Based Access Control (RBAC)
Switchyard uses a comprehensive RBAC system built on Supabase, providing granular control over user permissions.Database Schema
The RBAC system consists of five core tables:roles
Stores role definitions.permissions
Stores permission definitions following theresource.action pattern.
role_permissions
Junction table linking roles to permissions.user_roles
Junction table linking Supabase users to roles.Default Roles
Permissions
Permissions follow theresource.action naming convention: