Skip to main content
Guides

Administrator Guide

This chapter is for tenant administrators and platform owners responsible for keeping Regurai running cleanly inside the firm.

Administrator roles

RoleCapabilities
ownerFull access to the tenant, including access governance, audit log viewer, and admin pages.
adminManage users, grants, and most configuration. Cannot read every audit entry.
auditorRead-only: access governance reviews, audit log viewer. Cannot mutate state.
risk_officer, compliance_officer, model_owner, userFunctional roles — see Authentication & Authorization.

Roles are stored in public.user_roles and never on the profile/users table. See the security chapter for why.

User management

Today, users self-register via Supabase Auth on /auth (where enabled) or are invited by an owner / admin. After first sign-in they are forced through MFA enrolment.

To grant a user a role:

  1. Open Access Governance v2.
  2. Find the user (or invite them).
  3. Issue an access_grant with the appropriate role and expiry.
  4. The grant is recorded in access_grants and a corresponding entry appears in access_audit_log.

Role management

The role switcher in the top navigation is intentionally only visible on Access Governance pages (/app/access-governance and /app/access-governance-v2). Switching roles outside this surface is not possible — every role change opens a confirmation modal (RoleChangeConfirmModal) and writes an audit entry.

Access reviews

Periodic access reviews are run from Access Governance v2 → Reviews:

  1. Start a review cycle (quarterly recommended).
  2. The system lists every active grant in scope.
  3. Reviewers attest or revoke each grant.
  4. Attestations land in access_reviews; revocations also write to access_audit_log.
  5. At cycle close, generate the evidence pack from /app/evidence.

Configuration

SettingWhere
Branding (logo, colours)src/styles.css tokens; src/assets/regurai-mark.png
Sidebar itemssrc/components/app/Sidebar.tsx
Idle timeout (default 60 min)src/hooks/useInactivityTimer.ts
Rate-limit threshold (default 5/15m)supabase/functions/login-rate-limit/index.ts
Manual version / revisionssrc/content/manual/MANUAL_META.ts

Monitoring and maintenance

What to watchWhere
Failed sign-ins per IPpublic.sec_login_attempts (service-role query)
Audit log entries/app/audit-log-viewer (owner / auditor)
Edge function errorsLovable Cloud edge function logs
Server function errorsWorker stdout, Lovable Cloud dashboard
Database healthSupabase project info & db_health
MFA enrolment coveragesupabase.auth.admin.listUsers() cross-reference with TOTP factors

GDPR / DSAR handling

Data Subject Access Requests are recorded in public.gdpr_requests. Workflow:

  1. Subject submits request (via support channel).
  2. DPO records the request in gdpr_requests with status received.
  3. Investigation → export / deletion as required.
  4. Response delivered; status moves to closed; evidence retained for the regulatory retention period.

Operational hygiene

  • Rotate the Lovable Cloud service-role key on staff turnover.
  • Re-run the security scan after every release; aim for zero critical findings.
  • Review the Change Management chapter monthly; close out open ADRs and tech-debt entries.