Write Entitlements Policies
This page assumes basic familiarity with OPA’s policy language Rego. For an introduction to Rego, Styra recommends you to read the following resources:
OPA Documentation:Introduction to OPA or Rego documentation.
Free Video Training: Styra Academy.
When writing policies that make Entitlements decisions, you store those policies in the
policy folder with the Rego package
The following shows the two important rules:
enforce: Decisions made by these rules contribute to the overall decision.
monitor: Decisions made by these rules do not contribute to the decision, but are recorded in the decision.