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 toAttesta.from_config():
from_config() requires an explicit path. Supports .yaml and .yml file extensions. Requires the pyyaml package (pip install attesta[yaml]).Audit Section
Theaudit section configures how Attesta persists approval decisions. Attesta supports pluggable audit backends:
legacy(default) — Built-in SHA-256 hash-chained JSONL loggertrailproof— TrailProof backend with HMAC signing and multi-tenancy
Fields
Example: Legacy Backend (Default)
Example: TrailProof Backend
- HMAC signatures for cryptographic provenance
- Multi-tenancy isolation via tenant IDs
- Trace correlation for distributed workflows
- Advanced querying with cursor-based pagination
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