Documentation
¶
Overview ¶
Command dilion runs the Dilion server: Supabase Auth compatible auth plus the privacy/compliance plane.
Configuration (environment):
DILION_DSN Postgres connection string (required)
DILION_JWT_SECRET HS256 secret for the /auth/v1 surface
DILION_MASTER_KEY base64-encoded 32-byte KEK for the built-in KMS
DILION_ADDR listen address (default :8787)
DILION_POLICY_FILE optional compliance policy YAML (merged onto built-ins)
DILION_PII_FIELDS_FILE optional PII vault field definitions YAML
(pii-fields: {<key>: {hint: EMAIL|NAME|PHONE|ADDRESS|GENERIC}});
omit for free-form PII fields
DILION_LOG_LEVEL debug | info | warn | error (default info)
DILION_DEV_NO_ADMIN_MFA set to 1/true to disable admin MFA (development only)
Missing secrets are generated per boot, which is only useful for local development: tokens stop verifying and stored PII becomes unreadable after a restart. The server logs a warning in that case.