Skip to main content

Policies

Policies are the authorization rules. Each policy defines who can do what on which resources.

Policy structure

A policy has:

FieldDescription
NameHuman-readable identifier
EffectALLOW or DENY
ActionsWhat actions this policy covers (e.g., read, write)
ResourcesWhich resources or resource types this policy applies to

Policy assignment

Policies don't do anything on their own — they need to be assigned. You can assign a policy to:

  • A role — All subjects with that role get the policy (RBAC)
  • A group — All subjects in that group get the policy (group-based)
  • A subject directly — Only that specific subject gets the policy (direct access)

DENY policies

DENY policies take precedence over ALLOW policies. If any applicable DENY policy matches, access is denied regardless of ALLOW policies.

Use DENY policies for:

  • Revoking access for specific subjects
  • Blocking access to sensitive resources
  • Temporary access restrictions

Examples

PolicyEffectActionsResource typeAssigned to
editors-can-read-writeALLOWread, writedocumenteditor role
sales-can-manage-contactsALLOWread, write, deletecontactSales Team group
block-contractor-deleteDENYdelete*Frank (subject)