Governance and security
Governance and security
Workspace isolation, roles and permissions, credentials, identity, audit, retention and deletion.
On this page
UserTasks is built to be operated by more than one team and called by more than one system, so every surface — app, REST, MCP, CLI — goes through the same checks.
Workspace isolation#
Every row belongs to a workspace. Postgres row-level security enforces isolation for signed-in users, and service code adds explicit workspace checks on every query, including the queue workers and SECURITY DEFINER functions.
Who can do what#
- Roles and permissions: fine-grained permissions grouped into roles; five system roles plus your own.
- Teams and invitations: groups for assignment and queues; invite people by email with a role.
- SSO and directory sync: Microsoft Entra ID, Okta, LDAP / Active Directory, Google Workspace and SCIM.
Credentials#
- API keys: workspace or user context, a permission ceiling, optional workflow/table allow-lists and expiry.
- OAuth apps and scopes: authorization code with PKCE, client credentials, refresh rotation with reuse detection.
- Integration and log-destination secrets are encrypted with
ENCRYPTION_KEY, write-only and masked as__SECRET__in every response and export.
Evidence and lifecycle#
- Workspace theme: the one brand theme every member sees, edited in the theme designer or through the API.
- Audit, retention and deletion: audit log, permission changes, security events, retention policies with review and purge, and a deletion queue that checks dependencies.
- Every change and security event is in the event stream and can be shipped to your SIEM.

Hardening checklist (self-hosted)#
- Set
ENCRYPTION_KEY; without it stored secrets are plaintext. - Keep
SUPABASE_SERVICE_ROLE_KEY,CRON_SECRETandENCRYPTION_KEYout of the browser and version control. - Leave
ALLOW_PRIVATE_EGRESSandALLOW_QUERY_KEY_AUTHoff unless you need them. Custom workflow actions always run sandboxed;CUSTOM_ACTIONS_DISABLED=trueswitches them off entirely. - Serve over HTTPS; the app sends HSTS, a strict CSP,
X-Frame-Options: DENYandnosniffby default (only the form link pages —/f/,/form/,/p/and/form-login— may be framed, for embedding).