Skip to Content
PLATFORMYONDA-INDEX

Multi-Tenant Platform Architecture

The Yonda ecosystem uses a scoped multi-tenancy model to guarantee data sovereignty, privacy, and cultural governance.

Blake Carter|Version v3.0.0|CANONICAL

Role & Tenant Scoping

RoleAccess LevelPublishing Permissions
Public GuestAnonymous / CAPTCHA verifiedSubmits to pending moderation queue (status: draft)
Verified Council / ElderJWT / Magic Link authenticatedDirect publishing bypass (status: published) within tenant scope
AI Bot AgentAPI Key authenticatedBulk ingest (source: ai_generated, status: draft)
System AdminGlobal adminFull system management across all tenant pools

Row-Level Security Rules

Directus and PostgreSQL policies isolate tenant drafts:

-- Scoped visibility rule SELECT * FROM wayfarer_articles WHERE status = 'published' OR tenant_id = $CURRENT_USER.tenant_id;