Skip to main content

Add Compliance Policy Exceptions in the Lacework Console

General Considerations & Limitations
  • Manual Policies cannot have exceptions applied to them.
  • Once an exception is added and appears in the Console, it will not take effect until the next compliance assessment run is complete.

Add an Exception to a Compliance Policy

  1. Log in to the Lacework Console and go to Policies.

  2. Click on a specific compliance policy to view the policy details.

  3. Click the Exceptions tab.

  4. Click Add exception to add an exception to this policy.

  5. In the New Exception window, add your criteria for the exception.

  6. (Optional) Enter a Comment for the exception.

  7. Click Add Exception / Save to add your exception to the policy.

    The new exception appears in the Exceptions tab list of the compliance policy.

Add Exception Criteria

The exception criteria varies from policy to policy.

As a general rule, the first variable always applies to the cloud account. The rest of the criteria depends on the affected resource.

AND vs OR

The following operator logic applies in these circumstances:

  • Multiple exception criteria in a single exception = AND

    For example:

    1. A policy exception is created for an Amazon S3 bucket resource with criteria that includes a Bucket Name and Resource Tags.
    2. The exception applies to a bucket that has a matching name and resource tags.
  • Multiple policy exceptions for a single policy = OR

    For example:

    1. A policy exception is created for an Amazon S3 bucket resource with criteria of a Bucket Name.
    2. A second policy exception is created with criteria of Resource Tags.
    3. The exception applies to any bucket found that has a matching name defined in the first exception or resource tags defined in the second exception.

Exception Criteria - Considerations & Limitations

Do not use the ARN format when providing the resource name value for policy exceptions.

For example, using arn:aws:s3:::mys3bucket is not accepted, as only mys3bucket should be provided.

Wildcard Usage

info

All field values except Resource Tags, Resource Label, and Resource Labels accept wildcards.

You can use wildcards to match and exclude singular or multiple resources.

For example, if you wanted to exclude the AWS resource mySecurityGroup_sg, you can exclude it using wildcards with one of the following examples:

  • Group Id/Name = *_sg
  • Group Id/Name = *SecurityGroup*
  • Group Id/Name = mySecurityGroup*

For Google Cloud, if you wanted to exclude the resource //storage.googleapis.com/myBucketName, the following example will work:

  • Resource Name = *myBucketName

Example Criteria

The following example shows how to add exception criteria to the lacework-global-54 policy.

note

The exception criteria that you can add depends on the type of resource that is affected by the policy. This example is specific to an Amazon S3 bucket.

Multiple exception criteria is treated as an AND operator.

  1. Locate the lacework-global-54 policy on the Policies page. Click it to open the Policy Drawer and click the Exceptions tab. Click Add exception.

  2. Select an account from the Account Ids dropdown list to associate with this exception. Choose either a specific account identifier or All Accounts.

    You can also search for accounts in the Account Ids field.

  3. Click + Add Criteria to add exception parameters for this policy.

    Example

    New Exceptions tab

  4. Select Bucket Name or Resource Tags to add exceptions to the policy based on your needs.

  5. Select or enter one or more values in the Bucket Name or Resource Tags field(s) for this exception.

  6. Select one or more resource tags in the Resource Tags field for this exception.

    Example

    Example new exception for resource tag owner:dev

    If the key:value for this resource tag is not valid, the Lacework Console shows an error message.

    Example

    Please enter the tag with the format of key:value

  7. (Optional) Enter a Comment for the exception.

  8. Click Save to save your new exception to the policy. Your new exception appears in the list for the compliance policy.

    Example

    You successfully created exception message

Add Compliance Exceptions in the Kubernetes Compliance Dashboard

Kubernetes Compliance Policy Exceptions can also be added in the Kubernetes Compliance Dashboard.

  1. Go to Compliance > Kubernetes in the Lacework Console.
  2. Click Group by Policy to view individual policy assessments.
  3. (Optional) Use filters and/or the search function to find specific policies.
  4. Click a policy to view more details in the Policy Drawer.
  5. Click View exceptions to see details of any exception defined for this policy.
  6. Click Add exception and provide the exception criteria.
  7. Click Save once complete.