Policies
A Policy in OpenComply is the technical implementation of a compliance control.
It's reusable logic (like a CloudQL query) that defines how a control is evaluated, checking resource configurations and producing findings.
For example, the aws_iam_access_keys_policy
checks the age of IAM access keys using a SQL query. Policies can be parameterized (like using {{.awsIamAccessKeyAge}}
) and reused across controls.
Example
Specification
Required:
id: The unique identifier for this Policy (e.g.,
aws_iam_access_keys_policy
).language: Specifies the type of logic or query used in the Policy (e.g.,
sql
,rego
).primary_resource: Identifies the primary data source used for the query (e.g.,
aws_iam_access_key
).definition: The query or code block that evaluates compliance.
Recommended:
title: A brief summary of what the Policy checks (e.g., "maximum IAM Access Key age").
description: A brief description of the Policy.
Last updated