How to create policies in the Chainguard Enforce Console

This documentation is related to Chainguard Enforce. You can request access to the product by selecting Chainguard Enforce for Kubernetes on the inquiry form.

Security policies in Chainguard Enforce ensure that our development teams are deploying containers within set policies.

We can associate a policy YAML file with a given group in order to achieve our security goals. This guide will go through how to set up policies on the Chainguard Enforce user interface available to you via You must already have an account with Chainguard to follow this guide. You can request access for Chainguard Enforce for Kubernetes on the inquiry form.

In the Chainguard Enforce Console, we have a policy catalogue that provides example policies that you can use right away or modify for your use case. You may also wish to check out our page on Chainguard Enforce Policy Examples. If you would like to use the CLI to work with policies, review our chainctl policy docs and review our guidance on how to manage policies with chainctl.

For additional policy guidance, you may also review the Sigstore Policy Controller documentation. To learn how to admit images through the cluster image policy, review the Policy Controller documentation relating to the Admission of images.

Access the Chainguard Enforce Console

To begin, you will need to access your Chainguard Enforce Console. This is available on the web to you at You will need to authenticate your user. Once you are logged in and authenticated, the Chainguard Enforce Console landing page will be displayed.

Chainguard Enforce Console landing page

At the top of the page will be three icons you can click on: Clusters, Policies, and Packages. Click on Policies to pull up the policies you have available on Chainguard Enforce.

Inspect any existing policies

If you were invited to a group, you may already have policies available. From the Policy landing page, you can review any existing policies and any existing violations of those policies.

Chainguard Enforce policies page

These are displayed in a table by the policy’s Name, Violations and Groups, similar to the following screenshot.

Chainguard Enforce policy table

If your table indicates that there are current violations, you can click on the Violations button to learn more about these violations.

Initialize a new policy

Let’s step through creating a new policy. Click on the Create policy button above the policy table.

Chainguard Enforce create a policy button

This button will take you to the Chainguard Enfroce Policies Catalogue, which will provide you with a library of policies you can use right away or edit, or the option to write your own policy from scratch.

Write and publish a policy

Whether you choose to begin with a Custom policy or another option from our catalogue, a new sidebar will be displayed that has fields to choose the Group, and write a Description for your new policy, and a YAML file, which you can edit.

Fill in the fields for this policy based on your policy enforcement goals. In the policy below, we are requiring signatures for all Docker and GitHub container images. We have associated it with the chainguard-demos group.

Example Chainguard Enforce signature policy requiring signatures for Docker and GHCR images

Once you are satisfied with the new policy, you can click the Publish button towards the bottom of the form.

This new policy will now appear on your policy table within the Chainguard Enforce Console.

Edit policies

To modify an existing policy, click on the relevant policy within your Chainguard Enforce Console table. This will take you to a view allowing you to edit or delete the policy.

Edit a Chainguard Enforce policy

To edit a policy, click on the Edit button will allow you to make modifications to the description or YAML file of the policy. When you are satisfied with the changes you have made, you can click on the Publish button once again.

Delete policies

If you would like to delete a policy, click on the policy you wish to delete within your Chainguard Enforce Console table. From there, click on the Delete button.

Delete a Chainguard Enforce policy

You’ll now have the option to delete a published policy. You will need to type in the name of the policy in order to delete it. Once you have written the name of the policy in the field, click the Delete button to delete the policy and return to your Policies page.