Policy Structure
When you create an Entitlements System, the following policies are important, most of which are automatically installed.
-
policy
: A folder where all the rules that actually make policy decisions are stored, whether you are using pre-built rules or writing your own. You can add rules in other folders (note, this new folder can not be a child of the existing policy folder) but they need to be imported into thepolicy
folder to participate in the decision-making process. -
object
: A folder which contains the Rego where you populate the opinionated object model. -
transforms
: A folder which contains Rego that transforms data from one format to another, such as transforming the input or transforming data source. -
data sources
: This folder is not automatically created, but it is where Styra recommends you to store all of your Data Sources. -
features
,labels
, andnotifications
: These folders are the same as for any Styra DAS System. For more information on the policy system structure, see Using the Policy Builder. -
Labels
: This folder is used to associate a Styra DAS Entitlements System with Styra DAS Entitlements Stacks.
By default, the System uses the label as system-type
: entitlements
.