Authentication, Roles & Permissions
brūhi Cloud enforces a Two-Tier Identity and Role-Based Access Control (RBAC) architecture designed for multi-tenant and multi-station radio networks:
- System Deployment Roles (Global Level): Governs instance-wide administration, global database management, station provisioning, system updates, and user accounts.
- Station Membership Roles (Tenant Level): Governs live broadcast workflows, studio console permissions, live stream routing, music libraries, playout logs, and scheduling within specific station workspaces.
┌────────────────────────────────────────────────────────┐│ SYSTEM DEPLOYMENT TIER ││ ││ Owner (Strictly 1 per deployment) ──► Admin Accounts │└──────────────────────────┬─────────────────────────────┘ │ Provisions & Manages ▼┌────────────────────────────────────────────────────────┐│ STATION MEMBERSHIP TIER (Per Station) ││ ││ ┌──────────────────┐ ┌──────────────────┐ ││ │ Station Manager │ │ DJ / Presenter │ ││ └──────────────────┘ └──────────────────┘ ││ ┌──────────────────┐ ┌──────────────────┐ ││ │ Library Manager │ │ Monitor (Viewer) │ ││ └──────────────────┘ └──────────────────┘ │└────────────────────────────────────────────────────────┘1. System Deployment Roles (Global Tier)
Section titled “1. System Deployment Roles (Global Tier)”Global deployment roles apply across the entire brūhi Cloud installation:
The Strict Single-Owner Guarantee
Section titled “The Strict Single-Owner Guarantee”- Single Invariant: Every brūhi Cloud deployment has exactly one Owner (
owner). - First-Run Bootstrap: The very first account registered during initial setup (
/setupor first boot) is automatically assigned theownerrole. - Immutability: The Owner cannot be demoted, deleted, or transferred by any other user. Ownership transfer is an intentional, explicit high-privilege action that only the Owner can initiate.
Global Role Definitions
Section titled “Global Role Definitions”| Role | Scope | Key Capabilities | Prohibitions |
|---|---|---|---|
owner | Entire Deployment | Full root access across all stations; manage licences; configure global SMTP, audio engine, database, and S3 storage; provision all users; create and delete stations. | None. |
admin | Entire Deployment | Operational management across all stations; access Admin Dashboard (/admin); create and configure stations; manage users and station roles; reset passwords and unlock accounts. | Cannot delete or demote the owner account. |
2. Station Membership Roles (Tenant Tier)
Section titled “2. Station Membership Roles (Tenant Tier)”Users interacting with studio consoles, music scheduling, and broadcast operations are granted specific Station Roles scoped to one or more assigned stations (station_users table):
A. Station Manager (station_manager)
Section titled “A. Station Manager (station_manager)”- Profile: Operations lead, programme director, or station engineer.
- Permissions:
- Full control over the specific station workspace.
- Configure broadcast outputs, Icecast/Shoutcast relay mount points, and encoders.
- Configure crossfade parameters, silence detection, and automation rules.
- Customise station branding accent colours (
colorTheme). - Manage station distribution API keys and public web players.
- Create, resize, reschedule, and delete broadcast calendar schedule blocks.
- Full management of content library categories, audio uploads, and deletions.
- Full management of playlists (create, duplicate, delete, reorder).
- Full live broadcast studio controls (Mic, Master On-Air, Talkback Intercom).
B. DJ / Presenter (dj)
Section titled “B. DJ / Presenter (dj)”- Profile: Live on-air personality, show host, or resident DJ.
- Permissions:
- Live broadcast studio controls (Mic, Master On-Air, hardware input routing).
- Studio Talkback Intercom (communicate with other DJs and station personnel).
- Search, preview, and queue tracks from the Content Library directly to the live studio console (
"Queue to Studio"). - Create, duplicate, and edit personal or show playlists.
- View broadcast calendar schedule blocks (read-only) and queue scheduled blocks directly to studio.
- View playout logs and station monitoring telemetry.
- Restrictions:
- ❌ Cannot edit, create, or delete broadcast calendar blocks (Schedule is read-only).
- ❌ Cannot alter station brand accent colour.
- ❌ Cannot access or modify broadcast encoder, Icecast, or distribution settings.
- ❌ Cannot create/rename/delete library categories or bulk-delete audio assets.
C. Library Manager (library_manager)
Section titled “C. Library Manager (library_manager)”- Profile: Music director, catalogue curator, or audio archivist.
- Permissions:
- Full content library management: upload audio files, edit track metadata, manage tags.
- Create, rename, and delete music categories.
- Create, organise, duplicate, reorder, and delete station playlists and rotation rules.
- Search, preview, and audition all catalogue audio.
- Restrictions:
- ❌ Cannot trigger live on-air broadcasting, open microphones, or engage studio control lock.
- ❌ Cannot alter broadcast schedule blocks.
- ❌ Cannot modify broadcast engine, Icecast, or distribution settings.
- ❌ Cannot alter station branding.
D. Monitor (monitor)
Section titled “D. Monitor (monitor)”- Profile: Auditor, sponsor, station executive, or read-only observer.
- Permissions:
- View live playout telemetry, now-playing metadata, listener counters, and peak VU levels.
- View playout history logs and track playback verification.
- Browse content library and audio playlists in read-only mode (preview listening permitted).
- Restrictions:
- ❌ Zero mutation capabilities across any station resource.
- ❌ Cannot queue tracks to the studio console.
- ❌ Cannot modify playlists, schedules, categories, or station settings.
- ❌ Cannot engage microphone or broadcast live.
3. Comprehensive Feature & RBAC Matrix
Section titled “3. Comprehensive Feature & RBAC Matrix”| Feature / Action | Owner / Admin | Station Manager | DJ / Presenter | Library Manager | Monitor |
|---|---|---|---|---|---|
Admin Dashboard (/admin) | ✅ Full Access | 🚫 Blocked | 🚫 Blocked | 🚫 Blocked | 🚫 Blocked |
| Studio Live On-Air / Mic | ✅ Full Control | ✅ Full Control | ✅ Full Control | 🔒 View Only | 🔒 View Only |
| Studio Control Lock | ✅ Full Control | ✅ Full Control | ✅ Full Control | 🔒 View Only | 🔒 View Only |
| Talkback Intercom | ✅ Full Access | ✅ Full Access | ✅ Full Access | 🚫 Hidden | 🚫 Hidden |
| Playout History Log | ✅ View / Export | ✅ View / Export | ✅ View Only | 👁️ View Only | 👁️ View Only |
| Schedule: View Grid | ✅ Full View | ✅ Full View | ✅ Full View | ✅ Full View | ✅ Full View |
| Schedule: Add/Edit/Delete Blocks | ✅ Full Access | ✅ Full Access | 🔒 Read Only | 🔒 Read Only | 🔒 Read Only |
| Schedule: Queue Block to Studio | ✅ Enabled | ✅ Enabled | ✅ Enabled | 🚫 Disabled | 🚫 Disabled |
| Library: Browse & Audio Preview | ✅ Full Access | ✅ Full Access | ✅ Full Access | ✅ Full Access | 👁️ Preview Only |
| Library: Queue Track to Studio | ✅ Enabled | ✅ Enabled | ✅ Enabled | 🚫 Disabled | 🚫 Disabled |
| Library: Upload Audio Files | ✅ Full Access | ✅ Full Access | 🔒 Blocked | ✅ Full Access | 🔒 Blocked |
| Library: Manage Categories | ✅ Full Access | ✅ Full Access | 🔒 Blocked | ✅ Full Access | 🔒 Blocked |
| Library: Delete Audio Tracks | ✅ Full Access | ✅ Full Access | 🔒 Blocked | ✅ Full Access | 🔒 Blocked |
| Playlists: Create / Edit / Reorder | ✅ Full Access | ✅ Full Access | ✅ Full Access | ✅ Full Access | 🔒 Read Only |
| Playlists: Duplicate / Delete | ✅ Full Access | ✅ Full Access | ✅ Full Access | ✅ Full Access | 🔒 Blocked |
| Settings: Monitoring Tab | ✅ Full Access | ✅ Full Access | ✅ Full Access | ✅ Full Access | ✅ Full Access |
| Settings: Broadcast / Icecast | ✅ Full Access | ✅ Full Access | 🚫 Hidden | 🚫 Hidden | 🚫 Hidden |
| Settings: Distribution / API Keys | ✅ Full Access | ✅ Full Access | 🚫 Hidden | 🚫 Hidden | 🚫 Hidden |
| Settings: Automation & Engine | ✅ Full Access | ✅ Full Access | 🚫 Hidden | 🚫 Hidden | 🚫 Hidden |
| Settings: Crossfade Curves | ✅ Full Access | ✅ Full Access | 🚫 Hidden | 🚫 Hidden | 🚫 Hidden |
4. User Invitation & Station Assignment Workflow
Section titled “4. User Invitation & Station Assignment Workflow”Inviting a New User
Section titled “Inviting a New User”- Log into the Admin Dashboard (
/admin) as an Owner or Admin. - Navigate to Users & Access → click Invite User.
- Enter the user’s email address and select:
- System Role: Usually
member(leaveadminunselected unless granting global deployment authority). - Station Assignments: Check the stations the user is permitted to access, and select their specific role per station (e.g.
djfor Station 1,monitorfor Station 2).
- System Role: Usually
- Send the invitation:
- With SMTP Configured: The user receives an automated email containing a single-use setup link.
- Without SMTP: The dashboard displays a copyable registration link to deliver directly to the user.
Modifying or Revoking Access
Section titled “Modifying or Revoking Access”- In Users & Access, select any user to edit their station roles, disable their login, or revoke active sessions.
- Revoking a user’s station assignment immediately invalidates their studio WebSockets and locks out console transport controls.
5. WebAuthn Passkeys (Biometric Authentication)
Section titled “5. WebAuthn Passkeys (Biometric Authentication)”brūhi Cloud supports passwordless logins using standard FIDO2 / WebAuthn passkeys:
- Supported Authenticators: Apple Touch ID / Face ID, Windows Hello, Android Biometrics, and hardware security keys (YubiKey).
- Enrollment: Open User Profile → select Security → click Add Passkey.
- Cryptographic Binding: Passkeys are bound to your configured domain name (
BRUHI_RP_IDin.env).
6. Two-Factor Authentication (TOTP)
Section titled “6. Two-Factor Authentication (TOTP)”- Supported Apps: Google Authenticator, 1Password, Bitwarden, Apple Keychain.
- Instance Security Policy: In Admin Dashboard → Security, administrators can set instance-wide 2FA requirements:
optional: Users may choose whether to enable 2FA.admins_only: Mandatory for Owner and Admin roles.enforced_all: Mandatory for all users before accessing any station workspace.
7. Password Reset & Recovery
Section titled “7. Password Reset & Recovery”- Self-Service Email Reset: Click Forgot Password? on the login screen to receive a single-use reset token via email (requires SMTP configured in Admin Dashboard).
- Emergency CLI Reset: If locked out without SMTP, an administrator can execute the built-in CLI reset tool:
Terminal window docker compose exec bruhi-cloud python3 /app/server/reset_password.py <user_email> <new_secure_password>