Skip to content

Governance

fyrn’s governance engine enforces policies across all flows, connectors, and self-healing operations. Policies are defined declaratively and enforced automatically at runtime.

fyrn ships with several default policies that can be enabled and configured:

Policy Description Default
PII Detection & Masking Detects and masks PII fields in all mappings and logs Enabled
Data Residency Ensures data doesn’t transit through restricted regions Disabled
Encryption in Transit Requires TLS 1.2+ for all connections Enabled
AI Confidence Threshold Controls auto-fix behavior based on confidence scores 95%
Deployment Approval Requires team approval for production deploys Disabled
Rate Limit Protection Auto-throttles before hitting provider limits Enabled
Audit Log Retention Configures retention period for all logs 90 days

Policies are configured in your project config or via the CLI:

fyrn.config.yaml
governance:
policies:
pii_detection:
enabled: true
action: mask # mask, block, or warn
fields: [ssn, credit_card, health_data]
data_residency:
enabled: true
regions: [eu-west-1, eu-central-1]
action: block
deployment_approval:
enabled: true
required_approvers: 1
environments: [production]

All governance events are logged. Use the CLI to inspect policies and check compliance:

Terminal window
# List all governance policies
fyrn governance list
# View details of a specific policy
fyrn governance show pol_abc123
# Check a flow's compliance against policies
fyrn governance check abc123
# Check all flows
fyrn governance check --all

The fyrn gov alias works for all governance commands.