The SiScaller Sovereign Platform Architecture
Comprehensive blueprint of SiScaller's zero-trust execution stack, forced PostgreSQL RLS, and autonomous copilot modules.
Why build it this way
Most content sites trade security for caching: either every page is rendered per request to carry a CSP nonce, or the policy allows inline scripts. SiScaller does neither. Pages are prerendered, and a post-build step hashes every inline script so the policy can stay strict while the CDN caches the HTML.
Architectural Highlights
- Static pages get a per-build hash CSP: they stay cacheable without
'unsafe-inline'. - Zero tokens in the browser: sessions are AES-256-GCM encrypted in Redis behind an opaque cookie.
- Forced Row-Level Security: every table enforces RLS; each writer runs under a separate
NOLOGINrole. - Isolated WASM compilation: search runs client-side with Pagefind; only
/searchis granted'wasm-unsafe-eval'.
Core Subsystems
- Content pipeline: typed MDX collections validated with Zod at build time; drafts can never reach production.
- Identity: Keycloak OIDC with PKCE, back-channel logout, and application-owned user ids.
- Community: moderated comments, a double opt-in newsletter, and a member dashboard.
The architecture decisions are recorded as ADRs in the repository, and the article A Strict Content Security Policy for Static Next.js Pages explains the CSP design in depth.
Discussion
Loading the discussion…