# Zero-Trust Architecture & Threat Model

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

[Canonical page](https://mifantwan.com/docs/security-and-compliance/zero-trust-boundaries/)

Version v2.4.0 · Last reviewed 2026-08-01

## 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.
