Skip to content

ignored_field

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

Severity: warning

A rule sets a field its decision does not use: approval on anything but require_approval, notify on allow, or verify on deny. The policy is accepted and the field has no effect, which is usually not what the author meant.

deedglass: policy/v1
name: refunds
defaults:
decision: deny
reason: No rule allows this action.
rules:
- id: small-refunds
match: { tool: stripe.create_refund }
when: args.amount <= minor("50.00 usd")
decision: allow
notify: [slack]
○ policy.yaml:11:5 · ignored_field
notify is ignored because the decision is allow.
hint: Remove it; notifications go out for denials and approval requests.

Fix: remove notify: [slack], or change the decision to require_approval if a person should see these refunds.