Policy
Introduction
The Policy Manager page shows a list of your policies. You can see the policy names, IDs, descriptions, when they were last updated, and which policies are active. From this view you can also create or add policies, as well as edit, copy, delete, or download policies.
Create a New Bundle.
Create a new policy and add it to the list of policies.
To add a new policy , click Create New Bundle.
Enter a unique name, along with an optional (but recommended) description for your new policy.
Click OK. Notice that when you create a new policy, it is populated with two policies. DefaultPolicy is for a container image, and DefaultSourcePolicy is for a source repository.
Start adding rules to your new policy. You can edit existing policies, add additional policies, add new mappings or edit existing mapping rules from either source repositories or container images, set up allow lists, or allowed/denied images for your policy.
Refresh a Policy
Click Refresh the Bundle Data if multiple users are accessing the Policy Manager, or if policy items are being added or removed through the API or AnchoreCTL then you may update the list of policies.
Rename a Policy
Click Edit Name to rename the policy.
Enter the new name.
Click the green check to rename the policy.
Policy Status
As described in the Managing Policies page, only one policy may be set as active (default). The management view for each policy includes a status indicator to represent the current status.
This label shows that the policy is active and that changes will have an immediate effect on your policy evaluation.
This label shows that the policy is not currently active and that changes can be made without altering the policy evaluation output.
Navigate Back to the Bundle List
Click Policies, or use the browsers navigation buttons to navigate back to the list of Policies.
Edit Bundle Content
You can edit the components of the policy at any time, including the policies, allowlists, mappings, and allowed or denied images.
Policies tab:
Edit or add policies and policy rules. See the Policies section for more information.
Allowlists tab:
Edit or add allowlists associated with the policy. See the Allowlists section for more information.
Mappings tab:
Edit or add mappings and mapping rules. See the Policy Mappings section for more information.
Allowed / Denied Images tab:
Edit or add images that you want allowed or denied in a policy. Each of the policy elements can be edited by selecting the appropriate tab in the navigation bar. See the Allowed / Denied Images section for more information.
Last modified October 25, 2023