Modules

This page has been partially adapted from the Open Policy Agent - Policy Language documentation. The reader is recommended to check it out for more in-depth information.

In Rego, policies are defined inside modules. Modules consist of:

  • Exactly one Package declaration.
  • Zero or more Import statements.
  • Zero or more Rule definitions.

Package names are particularly important in Reposaur. See the Namespaces section to learn more.