Skip to content

file_too_large

A policy diagnostic from deedglass policy lint and the policy routes.

Severity: error

The file is larger than 256 KiB. Deedglass checks the size before it reads any YAML, so a very large file can’t slow down the compiler or the Console. A policy is rarely more than a few kilobytes; a file this size usually holds rules that differ only in a tool name.

✕ policy.yaml · file_too_large
This policy is 298 KiB; the limit is 256 KiB.
hint: Split it into smaller policies, or replace repeated rules with globs.

Fix: replace repeated rules with one rule and a glob or a list, like match: { tool: "stripe.*" }, and remove large comment blocks.