Skip to content
Snippets Groups Projects
Yordan Kinkov's avatar
Yordan Kinkov authored
Policy bundle convention

See merge request !3
e88b74a4
Name Last commit Last update
example
.gitignore
README.md

Policies Repository

The Policies Repository contains REGO policies used for evaluation.

Add Policy

You should follow the following naming syntax:

  • Policy must be named exactly policy.rego
  • Policy is placed in the following directory structure: {group}/{policyName}/{version}/policy.rego

    Example: gaiax/loginpolicy/1.0/policy.rego

  • The policy package must follow the following syntax: {group}.{policyName}

    Example: package gaiax.loginpolicy

  • Data file could be added for each policy. It must be named data.json and placed in the same directory:

    Example: {group}/{policyName}/{version}/data.json