Skip to main content


This section walks you through the configuration of ChaosGuard and how to enable it to mitigate potential security threats from chaos-enabled users with malicious intent.

Before you begin

Harness RBAC (role-based access control) serves as a prerequisite to understanding ChaosGuard, which serves as an execution-time security evaluation.

Configuring conditions

Conditions describe a set of constraints that are applied to an execution context. You can use both 'EQUAL' and 'NOT EQUAL TO' operators in conditions. You can also use wildcards within the condition entities, which offers flexibility and control in defining conditions.

To configure a condition,

  1. In the Chaos module, select ChaosGuard, and then select Conditions. Te Conditions page lists your existing conditions. You can use the existing conditions or create a new condition.

    navigate to chaos

  2. To create a condition, click New condition.


  3. Provide a name, a description (optional), and tags (optional). Click Save.


This creates a blank canvas, and you can define the constraints for the condition using a YAML manifest or using the visual editor or Harness AIDA.

  1. You can add conditions using the YAML too.


  2. Click YAML and specify the relevant values corresponding to the respective names.

    yaml edit

Configuring rules

Rules consist of one or more conditions that are evaluated as a first step in the experiment run. To configure a rule,

  1. Click New rule.

  2. Specify parameters such as name, description (optional), tags (optional), user group to apply the rule (you can apply the rule to multiple user groups), and time window to apply the rule. You can apply multiple time windows to apply the rule. Click Next.

  3. Select user groups. Click Apply Selected.

  4. Select a condition (or multiple conditions) that you wish to apply. Click Done.

    • Below is a snap that shows a successful evaluation of all the rules in a chaos experiment.

    • Below is a snap that shows a failed evaluation of some (or all) rules in a chaos experiment.

Enable and disable rules

  • The image below shows the two different states of a rule (enable and disable).