Use this file to discover all available pages before exploring further.
The preferred way to manage custom attestation types is via the , so your Kosli configuration is version-controlled alongside your infrastructure. You can also manage custom attestation types through the Kosli CLI.
This page covers managing custom attestation types via Terraform. For an introduction to custom attestation types and creating them via the CLI, see Getting started: Attestations.
Custom attestation types define how Kosli validates evidence from tools that don’t have a built-in Kosli attestation command. Each type can include:
A JSON Schema (optional) that defines the expected structure of attestation data
jq rules (optional) that evaluate the data to determine compliance
resource "kosli_custom_attestation_type" "code_coverage" { name = "code-coverage" description = "Requires at least 80% line coverage" jq_rules = [".line_coverage >= 80"]}