For the complete documentation index, see llms.txt. This page is also available as Markdown.

OPA

This plugin allows you to check your Terraform code against security policies that you define.

OPA is a policy-based control for cloud native environments.

Configuration options

  1. Name: This is Brainboard field to describe what this task is about.

  2. Policy: the content of your policy in rego format.

    1. The content in this output is just an example. See examples below.

  3. Extra environment variables: variables that you can define here that will be used as environment variables in the execution shell.

  4. Ignore failure: if enabled, the execution of the following stage will be triggered even if the task fails.

  5. Require approval: means that this task will not be executed until approved by people added in the approvers' list.

    • The task remains blocked until all approvers added in the list approve it.

    • When enabled, it allows you to add approvers to the list

    • The approver has to be Brainboard user

  6. Decision: The decision you want the check to be evaluated against. In the format package_name/decision

    1. In this example, we want to fail the pipeline if the resources don't contain the tags in the list

    2. The decision is brainboard/deny

Sample output

Examples

Naming convention

Decision: brainboard/deny

Mandatory tags

Decision: brainboard/deny

Unrestricted ingress for AWS Security Group

Decision: brainboard/deny

Last updated