Skip to content

yaml_multi_document

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

Severity: error

The file holds more than one YAML document, separated by ---. One file is one policy, so what you review is exactly what is stored.

deedglass: policy/v1
name: refunds
defaults:
decision: deny
reason: No rule allows this action.
---
deedglass: policy/v1
name: postgres-safe
defaults:
decision: deny
reason: No rule allows this action.
✕ policy.yaml:6:1 · yaml_multi_document
This file holds more than one YAML document.
hint: Keep one policy per file, and remove the --- line.

Fix: move each policy into its own file, and remove the --- line.