Skip to main content
Security & Compliancevv2.4.0Updated 2026-08-01

Zero-Trust Architecture & Threat Model

Authentication boundaries, CSRF token mitigation, and public data isolation rules.

Mifan Twan Ardana
Principal Systems Architect

## 1. Threat Model & Asset Boundaries

- Never store authentication tokens or credentials in browser `localStorage`. - All session credentials rely on `HttpOnly`, `Secure`, and `SameSite=Strict` cookies. - External API secrets and WordPress admin application passwords never touch client-side bundles.

2. HTML Sanitization Allowlist

When rendering rich content from the CMS, all markup passes through an allowlist sanitizer restricting tags to safe typography elements (`p`, `h2`, `h3`, `h4`, `pre`, `code`, `blockquote`, `ul`, `ol`, `li`, `figure`, `figcaption`, `table`). Any `<script>`, `<iframe>`, or inline `style` attributes are automatically stripped.

© 2026 Mifan Twan Ardana
GitHubRSS