Skip to content

Commit 365f50f

Browse files
committed
add audit archiver environment variables
1 parent aa4e0ff commit 365f50f

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎.env.example‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,32 @@ REGISTRY_URL=http://localhost:8080
138138
# Port for the approval UI server (default 3000; use 3001 to avoid Grafana conflict)
139139
PORT=3001
140140

141+
# =============================================================================
142+
# Audit Archiver
143+
# =============================================================================
144+
145+
# Database connection (uses primary — archiver runs DDL)
146+
ARCHIVER__DATABASE__URL=postgres://agentauth:agentauth_dev@localhost:5434/agentauth
147+
ARCHIVER__DATABASE__MAX_CONNECTIONS=4
148+
ARCHIVER__DATABASE__CONNECT_TIMEOUT_SECS=5
149+
150+
# Cold storage backend: "s3" or "local_fs"
151+
ARCHIVER__STORAGE__BACKEND=s3
152+
ARCHIVER__STORAGE__S3_BUCKET=agentauth-audit-archive
153+
ARCHIVER__STORAGE__S3_PREFIX=audit-archive/
154+
# Override endpoint for MinIO in local dev
155+
ARCHIVER__STORAGE__S3_ENDPOINT_URL=http://localhost:9000
156+
ARCHIVER__STORAGE__S3_REGION=us-east-1
157+
# Local filesystem path (when backend=local_fs)
158+
# ARCHIVER__STORAGE__LOCAL_PATH=./tmp/audit-archive
159+
160+
# Retention policy
161+
ARCHIVER__RETENTION__HOT_RETENTION_DAYS=90
162+
ARCHIVER__RETENTION__ADVANCE_PARTITION_DAYS=7
163+
164+
# Observability
165+
ARCHIVER__OBSERVABILITY__LOG_LEVEL=info
166+
141167
# =============================================================================
142168
# Development Only
143169
# =============================================================================

0 commit comments

Comments
 (0)