Security rules
Open Data Access > Security Rules. The page contains the Security Rules and Rule Templates tabs.
Security Rules tab
Search by name or description. The list shows each security rule's name, description, last modified time, status, and available actions. To create a rule, click New Security Rule and enter a name and description.
On a security rule's details page, switch between two types of rules.
- The Query rules list shows each rule's name, description, applicable DataSources, object type, risk level, and status.
- The Desensitization rules list shows each masking rule's name, description, masking method, and status.
Each row offers the following actions.
- scope sets the database resources the rule applies to.
- Details opens the rule definition.
- Set up opens the rule's parameters.
Assign a security rule to an environment
After configuring the security rule, open Environment and associate the rule with the target environment. See Configure security rules for an environment for the steps.
Rule Templates tab
Open Rule Templates and choose either Query rules or Desensitization rules. You can search for templates, apply an existing template, or create one.
When creating a rule template, configure these fields.
- Rule type, name, and description
- Applicable DataSources and object types
- Rule script
- Parameters. Click Extract parameters to identify parameters, then set their names, hints, default values, types, and ranges.
Before saving or applying a custom script, test its logic and matching scope in a non-production environment. Check for false positives, missed matches, and unintended masking.
For syntax and examples, see Write query and masking rules.