Defense-in-Depth Architecture
Sparlby (operated by Sparlby Technologies, Udyam registration date: 30 November 2026) is engineered so that agent autonomy never bypasses tenant isolation or human sign-off:
| Layer | Control | Guarantee |
|---|---|---|
| Database | PostgreSQL Row-Level Security (NOBYPASSRLS) | One workspace cannot read or mutate another workspace’s rows. |
| Publishing | Version-bound cryptographic approval tokens | Any post edit invalidates prior approval until re-signed by a human. |
| Credentials | Master-key encryption at rest | Platform OAuth tokens are encrypted before DB persistence and redacted in logs. |
| Transport | HTTPS/TLS + __Host- HttpOnly cookies | Session tokens cannot be accessed by client-side JavaScript. |
Version-Bound Approvals & Zero-LLM Publisher
Drafting agents can propose content, but they cannot publish. Only the deterministic Publisher agent holds platform dispatch capability, and it requires a valid approval token cryptographically bound to the exact content version hash and target account. Editing a post or switching target accounts revokes the token automatically.
Authentication, MFA & Scoped MCP Access
- Two-Factor Authentication: Users can enable TOTP authenticator apps with one-time recovery codes, and workspaces can enforce 2FA policies for all members.
- OAuth & PKCE: Sign-in with Google and Microsoft as well as MCP client authorization use PKCE (
S256) and scoped permissions. - Audit Logging: Sign-ins, approvals, role changes, API key creations, and publish attempts are recorded in the workspace audit log.