Security hardening preset and self-check
A single 'strict' preset enables all of the hardened defaults: text rendering, URL policy, formula guard, regex limits, no persistence, and sensitive exclusions. A runtime self-check reports configuration choices that weaken security.
Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid using the default preset with a findings panel.
Expected behavior
Enabling risky options adds findings with severity, explanation, and docs link. The strict preset overrides them and clears the findings, and an explicit override shows a 'weakened' notice.
Planned API surface
securityPreset: 'default' | 'strict'runSecurityChecksecurityCheck.findingsAcceptance criteria
- The strict preset values are documented in a single table. (pending)
- runSecurityCheck returns deterministic findings with stable IDs. (pending)
- Explicit user options override the preset, and each override produces a finding. (pending)
- The self-check makes no network requests and is tree-shakable. (pending)