Set a policy rule to prevent secrets in Containers.
Procedure
- On the left navigation pane, click .
- Click the Hardening Policies tab.
- Select or create a policy to which to add the secret prevention rule.
- On the Available rules page, scroll down to the Secret found rule in the Container Images category. This rule prevents the deployment of images that have secrets. Select Alert or Block and click the arrow icon at the right of the rule.
The rule is added to the policy.
- Click Next.
- Click Next.
- If you are creating a new policy, click Enable Policy or Save as Draft. If you are editing an existing policy, click Save.