Skip to main content

Configure Policies to Support Compliance Test Completion in Drata

Compliance tests in Drata, such as those tied to the Formal Code of Conduct or other policy-specific controls, depend on correctly configured policies. Users can employ built-in Drata templates or their custom policies. Improper handling of archived, replaced, or custom policies can lead to test failures. This guide explains why such failures occur and provides actionable steps to resolve them.

Additionally, the absence of "Drata Starter policies" in your environment can disrupt the linkage necessary for custom policies to integrate with Drata’s monitoring tests, leading to compliance test failures.

Common Causes of Compliance Test Failures

  1. Archived or Replaced Policies: If a required Drata policy template is archived without a proper replacement, tests relying on that policy will fail. For instance, archiving a Code of Conduct policy without proper replacement might trigger test failures.

  2. Unpublished Custom Policies: Custom policies not replacing the original Drata templates correctly in the system can break the linkage necessary for passing compliance tests.

  3. Default Policy Mapping Errors: Tests may fail when a custom policy, intended to replace a default one, is incorrectly previewed or mapped. Automated tests may display a failure message, such as "This policy doesn’t exist," even if a custom policy is already published and linked in the Policy Center. This typically happens when the automated test references an archived Drata template policy that was not properly replaced with a custom policy.4. Missing Drata Starter Policies: If the Drata Starter policies are not present in your environment, compliance tests may fail as these policies serve as critical linkage points for custom policies to integrate with Drata’s monitoring tests.

Steps to Resolve Policy-Related Test Failures

Restoring Archived Policies

  1. Navigate to the "Archived Policies" section within the Drata dashboard.

  2. Locate the required original template policies.

  3. Restore the policies and ensure they are published. Before restoration, temporarily disable any monitoring tests tied to the archived policy to avoid disruptions during the process.

  4. If needed, re-run the affected tests to verify resolution.

Replacing Default Policies with Custom Ones

If you want to use custom policies instead of the Drata templates:

  1. Ensure the custom policy replaces the default template in the system.

  2. Access the "Policies Replaced" feature to confirm the replacement.

  3. Publish the custom policy once replacement is configured.

  4. Re-run compliance tests linked to the updated policy.

Mapping and Updating Policies

  1. Align your custom policy to match the compliance requirements of Drata's templated policies.

  2. As an alternative, revert to the built-in Drata policies where custom policies cannot be accommodated.

  3. For guidance, refer to Drata's detailed articles, such as Create and Replace a Policy with Your Custom Policy.

Managing Test Findings

If you need to exclude specific findings from a test in Drata, such as Test 115, follow these steps:

  1. Navigate to Monitoring → Select the relevant test (e.g., Test 115) → Findings.

  2. Identify the findings you wish to exclude.

  3. Select the findings, click Exclude, and provide a short business reason for the exclusion.

  4. Note that exclusions remain visible for audit purposes and can be reversed at any time if needed.

This process ensures that your monitoring remains accurate while allowing flexibility in managing findings.

Did this answer your question?