During the policy creation process, you can set the Enforce action for a rule. This action sets a predefined value to the rule outcome. You must select a preset for enforcement rules that require a user-defined value.

Prerequisites

For a list of rules that allow the Enforce action, see Mutate Hardening Rules.

Procedure

  1. On the left navigation pane, click Enforce > K8s Policies.
  2. Click the Hardening Policies tab.
  3. Click the policy name to edit or click Edit in the Actions dropdown menu.
  4. Click Next.
  5. On the Add Rules page, review the Added Rules in the right pane, or scroll to the Workload Security category in the middle pane.
  6. For each of the rules listed in the table in Mutate Hardening Rules, select the Enforce action.
  7. Click Next two times and click Save.

Results

You have set the property values of the rule to comply with the security standards. No violations will be triggered.