Create Custom Security Policies
Create Custom Security Policies
- Under Security center, click Security policies.
- Click Create security policy.
- Enter a name and description for the security policy.
- Select which compartment the security policy will be available and stored in.
- Click Create.
An empty security policy will be created. You must then add unified audit policies to this security policy and set the configuration .
Add Unified Audit Policies to Custom Security Policies
Add unified audit policies to security policies to collect audit data on target databases.
- Under Security center, click Security policies.
- Click the Custom security policies tab.
- Click the security policy you want to add unified audit policies to.
- Under Resources, click Unified audit policies.
- Click Add unified audit policies.
- Enter the audit policy name, description, and select the compartment the unified audit policy will be stored in.
- Select a unified audit policy definition.
- Configure the audit conditions for All users, Only a specific set of users and/or roles, or All users except a specific set of users.
- If applicable based on the previous step, select the users/roles to be
included or excluded and the conditions for their auditing.
Tip:
Ensure that any attribute sets are populated in order for the audit policy to work as expected.You may select multiple users or roles at once. However, they must come from the same database to be selected at the same time. You may also add additional users or roles by selecting from the lists and clicking Add for each entry. You must select the type, target database (if applicable), and operation status for each.
When adding users you use the target database drop-down to filter the list of available users. However any selected user names are independent of the database. For example, if user
JOE
appears in database1 and database2, assuming the policy is deployed to both these databases,JOE
's activity will be audited in both databases regardless of which database was selected when addingJOE
to the list of users to include.Note:
Only one attribute set may be used in a unified audit policy and attributes sets can only be used to define included users/roles. - If applicable, determine when to audit based on operation success or failure.
- Click Add.
Related Topics
Import Audit Policies Into a Security Policy
You can import existing audit policies on a target database to a security policy which can then be deployed to several target databases.
- Under Security center, click Security policies.
- Under Related resources, click Unified audit policies.
- Click the Target Summary tab.
- Click on the target you want to use the audit policies from.
- Select the unified audit policy(ies) that you want to import into a security policy.
- Click Import audit policies into Data Safe.
- Select which existing security policy you want to add the audit policy(ies) to or create a new security policy for the selected audit policy(ies).
- Click Import.
Do not click out of import panel until the action is complete.
The security policy can then be deployed to any number of target databases and will retain the same audit policy configuration.
Related Topics
Edit the Configuration of a Custom Security Policy
Edit if the activity of the Data Safe user is excluded or included in unified audit policies. Additionally, you can edit the SQL Firewall configuration.
- Under Security center, click Security policies.
- Click on a custom security policy from the Custom security policies tab.
- Click Edit config.
- Set the unified audit policy and SQL Firewall configurations as
desired.
Note:
Excluded the Data Safe user for audit policies will fail for the following instances:- RDBMS mandatory auditing
- Compliance policies, such as STIG and CIS
- Any custom audit policies that are provisioned exclusively on the Data Safe user
- Any audit policies that audit a role that is already assigned to the Data Safe user
- Audit records generated by a traditional audit trail
For the SQL Firewall configuration to affect a target database, you must edit the configuration of the security policy that is automatically created when an Oracle Database 23ai target is registered.
- Click Save.
Related Topics