Topics on this page
Override policies on a computer
Many computer properties are configured by the policy that is assigned to the computer. You can configure these properties at the computer level to override the policy. You can also discover overrides that have been configured for a computer.
Override a policy setting on a computer only when you are certain that the override is unique for that computer. As much as possible, you should use policies to configure security and avoid overrides:
- Policies can be assigned to multiple computers, so you can re-use configuration work.
- Policies are more easily managed than computer overrides.
For information about configuring policy settings, see the Create and Configure a Policy guide.
To discover the overrides that are configured for a computer, use any method or function that returns the computer with the
overrides parameter set to
true. As described in About the overrides parameter, the
Computer object that is returned contains values only for the properties that are overrides. All other property values are
All properties of a
Computer object can be configured, except for the name and description.
When there are no overrides, all properties of the object are null. Check for a null
ID to quickly determine if there are no overrides.
The following example gets the overrides for a computer.
# Get the Computer object with overrides set to True computers_api = api.ComputersApi(api.ApiClient(configuration)) return computers_api.describe_computer(computer_id, api_version, expand=expand.list(), overrides=True)
Configure computer overrides
Configure the properties of a computer to override the computer's policy. The following properties of the
Computer class are those that inherit their values from the policy and that you can configure to override the policy:
Properties that store the configurations of the Workload Security protection modules, such as
firewall. The types of these properties are classes that define the computer-level extensions of the protection modules, such as
FirewallComputerExtension. These classes control the behavior of protection modules for a computer and override the settings of the policy-level extension classes such as
computerSettingsproperty, of type
ComputerSettings, stores protection module and platform settings that are applied at the computer level. This property overrides the values of the
policySettingsproperty of the computer's policy.
Configure a single computer setting
ComputersApi class enables you to set the value of a single setting for a computer.
SettingValueobject and set the value (all values are strings).
When settings accept one value from a list of choices, you can either use the ID of the choice or the exact wording of the choice as it appears in the Workload Security console.
ComputersApiobject and use it with the
SettingValueobject to modify the computer setting. you also provide the computer ID.
The following example sets the value of the firewall network engine mode of a computer to override the policy.
# Set the value for firewall_setting_reconnaissance_enabled setting_value = api.SettingValue() setting_value.value = "true" # Apply the override to the computer computers_api = api.ComputersApi(api.ApiClient(configuration)) return computers_api.modify_computer_setting(computer_id, api.ComputerSettings.firewall_setting_reconnaissance_enabled, setting_value, api_version, overrides=True)
Configure settings and protection modules
Use the following steps to configure several computer settings, one or more protection modules for a computer, or both:
Create a computer-level extension object for a protection module and configure the settings that you want to override.
ComputerSettingsobject and configure the settings that you want to override. To set the value of a setting, create a
SettingValueobject, set the value (all values are strings), and add it to the
ComputerSettingsobject. When settings accept one value from a list of choices, you can either use the ID of the choice or the exact wording of the choice as it appears in the Workload Security console.
Add the computer-level extension object and
ComputerSettingsobject to a
ComputersApito modify the computer on Workload Security.
A rule that is applied to a computer is considered an override when the rule has been modified at the computer level to be different than the original rule.
Simply assigning a rule to a computer is not considered an override:
When a rule is assigned to a computer and the rule is not assigned to the computer's policy, the rule is not considered an override.
When a rule is assigned to a computer's policy and the same rule is applied to the computer and is unchanged, the rule is not considered an override.