Skip to main content
The attesta.yaml file is the central configuration for Attesta. It controls challenge policies, risk scoring, trust engine behavior, domain profile activation, and audit output. Generate a starter config with:

Full Annotated Example

attesta.yaml

Loading the Config

Top-Level Sections

All sections are optional. When omitted, Attesta uses sensible defaults that enforce safe behavior: actions are denied on timeout, CRITICAL operations require 2-party approval, and trust starts low.
If no attesta.yaml is present, Attesta operates with all defaults. You only need a config file when you want to customize behavior.

Loading the Config File

Pass an explicit path to Attesta.from_config():
from_config() requires an explicit path. Supports .yaml and .yml file extensions. Requires the pyyaml package (pip install attesta[yaml]).

Audit Section

The audit section configures how Attesta persists approval decisions. Attesta supports pluggable audit backends:
  • legacy (default) — Built-in SHA-256 hash-chained JSONL logger
  • trailproof — TrailProof backend with HMAC signing and multi-tenancy

Fields

Example: Legacy Backend (Default)

The legacy backend provides SHA-256 hash-chaining with zero dependencies. All entries are written to a JSONL file, and integrity verification walks the chain to detect tampering.

Example: TrailProof Backend

The TrailProof backend adds:
  • HMAC signatures for cryptographic provenance
  • Multi-tenancy isolation via tenant IDs
  • Trace correlation for distributed workflows
  • Advanced querying with cursor-based pagination
Never commit your HMAC key to version control. Store it in an environment variable and read it programmatically at initialization.
See the TrailProof Integration Guide for detailed setup instructions, field mapping, and migration strategies.

Next Steps

Policy Section

Challenge mappings, review times, and fail modes

Risk Section

Risk overrides and amplifiers

Trust Section

Trust engine parameters

Domain Activation

Activate and configure domain-specific risk profiles

TrailProof Integration

Switch to TrailProof for enhanced audit features

Audit Trail Concepts

Understand audit trail fundamentals