The list of configured rules for detecting sensitive data (hereinafter referred to as Secrets) during image scanning is displayed in the Policies → Scanner policies → Sensitive data section.
The rules are grouped into categories depending on the purpose and scope of secrets to be detected. The list of categories is determined by the Kaspersky Container Security manufacturer. Categories contain predefined rules.
You can do the following:
View and change the settings for secrets detection rules. You can open the editing window by clicking the rule ID link.
Add new rules to the selected category. Click the Add rule button located above the table to open the integration settings window.
Delete rules.
To add a sensitive data detection rule:
In Policies → Scanner → Sensitive data, click Add rule.
In the displayed sidebar, specify the following settings:
In Rule ID, specify the unique name for the rule to search for sensitive data.
In the Rule name, enter a meaningful name for the rule. The rule name can be non-unique.
In the Severity drop-down list, select the severity level for the data which the solution is to find in accordance with the new rule (Low, Medium, High or Critical).
in the Rule regexp, enter the regular expression to be used to search for sensitive data.
Click Add.
To change the settings of sensitive data detection rules:
In Policies → Scanner → Sensitive data, click the rule ID.
If necessary, in the displayed sidebar, edit the parameters as follows:
Rule ID to search for sensitive data.
Rule name.
Data severity to search in accordance with the rule.
Regular expression which is used to search for sensitive data.
Click Save.
Kaspersky Container Security immediately applies the changes to the sensitive data settings and displays the corresponding notification. You can also refresh the page to see the settings change.
To delete a sensitive data detection rule:
By selecting check boxes in the table in Policies → Scanner → Sensitive data, select one or several rules to be deleted.
Click the Delete button above the table.
The delete button becomes active when one or more rules are selected in the table.