Skip to content

invalid_name

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

Severity: error

The policy name is not a slug. A name is 2 to 63 characters of lowercase ASCII letters, digits and dashes, starting with a letter, so it reads the same in a URL, a log line and the Console.

deedglass: policy/v1
name: Refunds Policy
defaults:
decision: deny
reason: No rule allows this action.
✕ policy.yaml:2:7 · invalid_name
Policy name "Refunds Policy" is not a slug.
hint: Use lowercase letters, digits and dashes, starting with a letter, like refunds-policy.

Fix:

name: refunds-policy