Repository navigation
Expand file tree
/
Copy pathconfig.example.toml
More file actions
527 lines (491 loc) · 26.5 KB
/
Copy pathconfig.example.toml
File metadata and controls
527 lines (491 loc) · 26.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
# Example configuration file for acton-service microservices
# Copy this to config.toml and customize for your service
# Environment overrides: ACTON_ prefix, uppercase keys, __ between table levels.
# Preserve underscores within fields: ACTON_SERVICE__LOG_LEVEL=debug.
# Custom root api_key uses ACTON_API_KEY; feature_flags.new_dashboard uses
# ACTON_FEATURE_FLAGS__NEW_DASHBOARD. Unambiguous legacy names still work.
# ACTON_PROTO_DIR is reserved for build-time protobuf discovery.
[service]
name = "my-service"
# bind = "0.0.0.0" # IP to bind the listener to. Default 0.0.0.0 (all interfaces).
# Set to "127.0.0.1" or "::1" for a loopback-only surface.
port = 8080
log_level = "info" # trace, debug, info, warn, error
timeout_secs = 30
environment = "dev" # dev, staging, production
# trust_forwarded_headers = false # Trust X-Forwarded-For / X-Real-IP for the client IP
# the request context (and audit events) record.
# Default false: only enable behind a proxy you trust
# to set these headers — a direct client can otherwise
# spoof the IP in its own audit trail. Rate limiting
# has its own flag under [rate_limit].
# ============================================================================
# gRPC ([grpc] section, requires the `grpc` feature)
# ============================================================================
# [grpc]
# enabled = true
# use_separate_port = true # serve gRPC on its own port (below); false = share the HTTP port
# port = 9090
# bind = "127.0.0.1" # gRPC listener bind. Falls back to [service] bind when unset.
# Only applied in separate-port mode.
#
# Per-listener TLS for the separate-port gRPC surface (requires the `tls` feature).
# When present this section is authoritative: enabled = false serves plaintext gRPC
# even when the shared [tls] is active (e.g. a loopback-only surface).
# When omitted, the gRPC listener falls back to the shared [tls] config.
# [grpc.tls]
# enabled = true
# cert_path = "./certs/grpc.pem"
# key_path = "./certs/grpc.key"
# reload_interval_secs = 300 # poll these files; see [tls] below
# reload_on_sighup = true # reloads BOTH listeners, not just gRPC
# handshake_timeout_secs = 10 # drop a stalled handshake after N s; see [tls]
# ============================================================================
# TOKEN AUTHENTICATION ([token] section with format = "paseto" or "jwt")
# ============================================================================
# PASETO v4 (symmetric or asymmetric) — the default token format
# [token]
# format = "paseto"
# version = "v4"
# purpose = "local" # "local" (symmetric) or "public" (asymmetric)
# key_path = "./keys/paseto.key" # 32-byte key file
# issuer = "my-service"
# # audience = "api.mydomain.com"
# # public_paths = ["/admin/", "/forge/"] # Skip token auth for these prefixes
# Persistent token revocation, applied automatically to HTTP and gRPC.
# Initialize the backend schema before serving. Storage failures deny requests.
# Requires the selected backend feature and its connection config.
# [revocation]
# backend = "postgres" # redis | postgres | mssql | turso | surrealdb
# namespace = "my-service" # Same namespace for revokers and validators
# JWT (RSA, ECDSA, or HMAC) — requires the `jwt` feature
# [token]
# format = "jwt"
# public_key_path = "./keys/jwt-public.pem"
# algorithm = "RS256" # RS256, ES256, HS256
# issuer = "https://auth.mydomain.com"
# audience = "api.mydomain.com"
# # public_paths = ["/admin/", "/forge/"] # Skip token auth for these prefixes
# ============================================================================
# SAML 2.0 SERVICE PROVIDER ([auth.saml], requires the `saml` feature)
# ============================================================================
# SP-initiated SSO against a SAML-only identity provider (ADFS, Shibboleth,
# Entra/Okta in SAML mode). Validation is strict: signed assertions, audience,
# InResponseTo, destination, recipient, validity windows, and replay are all
# enforced. IdP-initiated (unsolicited) responses are refused.
# [auth.saml]
# entity_id = "https://my-service.example.com/saml/metadata"
# acs_url = "https://my-service.example.com/saml/acs" # HTTP-POST binding
# signing_key_path = "./keys/saml-sp.key.pem" # RSA, PEM
# certificate_path = "./keys/saml-sp.cert.pem"
# # decryption_key_path = "./keys/saml-sp.key.pem" # accept EncryptedAssertion
# # allow_software_rsa_decryption = false # non-Linux targets only; see docs
# # request_binding = "redirect" # "redirect" | "post"
# # sign_authn_requests = true # must match IdP WantAuthnRequestsSigned
# # name_id_format = "unspecified" # "email-address" | "persistent" | "transient" | ...
# # clock_skew_secs = 60
# # pending_request_ttl_secs = 600
#
# [auth.saml.idp]
# entity_id = "https://adfs.example.com/adfs/services/trust"
# metadata_path = "./saml/idp-metadata.xml"
# # metadata_signing_certificate_path = "./saml/idp-metadata-signing.cert.pem" # pin, strongly recommended
#
# [auth.saml.attributes]
# # email = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
# # username = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"
# # groups = "http://schemas.xmlsoap.org/claims/Group"
# # default_roles = ["employee"]
# # [auth.saml.attributes.group_roles]
# # "Domain Admins" = "admin"
[rate_limit]
# Redis-based global rate limiting
per_user_rpm = 200 # Requests per minute per user
per_client_rpm = 1000 # Requests per minute per API client
window_secs = 60
exempt_paths = ["/health", "/ready"] # never counted; setting this replaces the default
# anonymous_rpm = 600 # per-IP rate for requests without claims (default: per_user_rpm)
# anonymous_burst = 60 # per-IP burst (default: anonymous_rpm / 10, at least 1)
# ============================================================================
# MIDDLEWARE CONFIGURATION
# ============================================================================
[middleware]
# Request body size limit (in MB)
body_limit_mb = 10
# Enable panic recovery (convert panics to 500 responses)
catch_panic = true
# Enable response compression (gzip, br, deflate, zstd)
compression = true
# CORS mode: "permissive", "restrictive", or "disabled"
cors_mode = "permissive"
# ----------------------------------------------------------------------------
# Request Tracking (Request IDs, Header Propagation, Distributed Tracing)
# ----------------------------------------------------------------------------
[middleware.request_tracking]
# Generate and propagate request IDs for distributed tracing
request_id_enabled = true
request_id_header = "x-request-id"
# Propagate headers between microservices (x-request-id, x-trace-id, etc.)
propagate_headers = true
# Mask sensitive headers in logs (authorization, cookie, x-api-key, etc.)
mask_sensitive_headers = true
# ----------------------------------------------------------------------------
# Resilience (Circuit Breaker, Retry, Bulkhead)
# Requires feature: resilience
# ----------------------------------------------------------------------------
[middleware.resilience]
# Circuit breaker configuration
circuit_breaker_enabled = true
circuit_breaker_threshold = 0.5 # 50% failure rate opens circuit
circuit_breaker_min_requests = 10 # Minimum requests before calculating
circuit_breaker_wait_secs = 30 # Wait before attempting to close
# Retry is not server middleware: an inbound request body is a stream that can
# only be consumed once, so it cannot be replayed. Compose retry into your
# outbound clients instead.
# Bulkhead configuration (concurrency limiting)
bulkhead_enabled = true
bulkhead_max_concurrent = 100 # Max concurrent requests
bulkhead_max_wait_ms = 5000 # Max wait for a slot (5 seconds)
# ----------------------------------------------------------------------------
# HTTP Metrics (OpenTelemetry)
# Requires feature: otel-metrics (OTLP push to a collector) and/or
# prometheus-metrics (pull-based /metrics endpoint).
# When prometheus-metrics is enabled, metrics are scraped from GET /metrics
# in Prometheus text-exposition format.
# ----------------------------------------------------------------------------
# This table rejects keys it cannot honour, so anything it accepts reaches the
# instrumentation. `include_path`, `include_method`, `include_status` and
# `service_name` were once accepted here and silently ignored; they are now
# startup errors. Method, route and status are always recorded -- the semantic
# conventions require them -- and a service is named once, under [service].
[middleware.metrics]
enabled = true
# Explicit boundaries for the request-duration histogram, in milliseconds.
# The instrument is in seconds; these are converted on the way in. Boundaries
# must be finite, positive and strictly increasing. Omit the key to get the
# set below, which matches the buckets applied to every other seconds-valued
# histogram in the service.
latency_buckets_ms = [1.0, 2.5, 5.0, 10.0, 25.0, 50.0, 75.0, 100.0, 250.0, 500.0, 750.0, 1000.0, 2500.0, 5000.0, 7500.0, 10000.0]
# A dedicated, plaintext listener that serves only GET /metrics.
# Requires feature: prometheus-metrics. Absent table means absent listener.
#
# The main listener's /metrics route inherits whatever that listener is: TLS,
# auth, CORS, compression, body limits. That is right for an application
# surface and wrong for a scrape target, because the collectors that matter in
# practice speak plain HTTP to a declared port and offer no TLS knobs:
# Fly.io's [[metrics]] block, GKE managed collection, and the defaults of most
# PodMonitor / ServiceMonitor resources. A service terminating TLS on its main
# listener cannot be scraped through any of them.
#
# This table is the other answer: a second socket carrying the same bytes,
# from the same registry, through the same handler. It has NO TLS and NO
# authentication, and it is not meant to. Bind it to a private scrape network
# -- a pod interface, a WireGuard address, loopback -- never an
# internet-facing one.
#
# Both keys are required; there is no default address to open unasked. The
# port must not be 0 (an ephemeral port no scrape job can name) and must not
# collide with the HTTP or separate-port gRPC listener. Either mistake is a
# refusal to start, reported before anything binds.
#
# [middleware.metrics.exporter]
# bind = "::" # dual-stack on Linux by OS default; v6-only on some BSDs
# port = 9090
# ----------------------------------------------------------------------------
# Local Rate Limiting (Governor)
# Requires feature: governor
# In-memory rate limiting as fallback when Redis is unavailable
# ----------------------------------------------------------------------------
[middleware.governor]
enabled = true
requests_per_period = 100 # Max requests per period
period_secs = 60 # Time period in seconds (60 = per minute)
burst_size = 10 # Allow temporary bursts
# ----------------------------------------------------------------------------
# Security Headers
# No feature gate required -- uses existing tower-http set-header
# ----------------------------------------------------------------------------
[middleware.security_headers]
enabled = true
hsts = true # Strict-Transport-Security (only sent when TLS active)
hsts_max_age_secs = 63072000 # 2 years (OWASP recommendation)
hsts_include_subdomains = false
hsts_preload = false
x_content_type_options = true # X-Content-Type-Options: nosniff
x_frame_options = "DENY" # X-Frame-Options value
x_xss_protection = true # X-XSS-Protection: 0 (modern rec: disable browser filter)
referrer_policy = "strict-origin-when-cross-origin"
# permissions_policy = "camera=(), microphone=(), geolocation=()" # Optional
# ============================================================================
# TLS CONFIGURATION (Optional)
# Requires feature: tls
# ============================================================================
# [tls]
# enabled = true
# cert_path = "./certs/server.pem" # PEM-encoded certificate chain
# key_path = "./certs/server-key.pem" # PEM-encoded private key
#
# --- Mutual TLS: verifying client certificates ------------------------------
# Point client_ca_path at a PEM bundle of CA certificates to require connecting
# clients to present a certificate signed by one of them. Omit it to accept all
# clients without a certificate (server-only TLS, the default).
# client_ca_path = "./certs/client-ca.pem"
#
# With client_auth_optional = true, clients WITHOUT a certificate are still
# accepted, but a certificate that is presented must verify — optional means
# "absent is allowed", never "invalid is allowed". Handlers can distinguish the
# two through TlsConnectInfo. Ignored unless client_ca_path is set.
# client_auth_optional = false
#
# --- Certificate rotation without a restart ---------------------------------
# Both triggers below reload the files named above and apply the new certificate
# to the NEXT handshake; connections already established are undisturbed. A
# reload that fails (missing, unparseable, or half-written files) is logged at
# ERROR and leaves the previous certificate serving — rotation can never take
# the listener down.
#
# Poll the files every N seconds and reload when their CONTENTS change. Change
# is detected by hashing the bytes, not by comparing mtimes, so rotations that
# preserve modification times (cp -p, most cert tooling) are still seen.
# Omit to disable polling; 0 is rejected at startup.
# reload_interval_secs = 300
#
# Reload when the process receives SIGHUP. Setting this on EITHER [tls] or
# [grpc.tls] installs one handler that reloads BOTH listeners — a signal that
# rotated only half the surfaces would be confusing during an incident.
# Unix only; configured elsewhere it warns at startup and is ignored.
# reload_on_sighup = true
#
# --- Handshake timeout ------------------------------------------------------
# Maximum time to wait for a TLS handshake to complete before dropping the
# connection. Caps pre-handshake stalls from unauthenticated peers: a peer that
# completes the TCP connect but never sends a ClientHello cannot hold a slot
# open. Each handshake runs concurrently, so one stalled peer never blocks the
# others. Omit to use the default of 10 seconds; 0 is rejected at startup.
# handshake_timeout_secs = 10
#
# For triggers the framework does not model (a Vault lease renewal, a watch on
# a ConfigMap, an admin endpoint), register a callback with
# ServiceBuilder::with_tls_reload and call TlsReloadHandle::reload_all yourself.
# Note that reloading only works for credentials the framework loaded from these
# files. Credentials injected via ServiceBuilder::with_tls_config are static;
# configuring the triggers above for them warns at startup and does nothing.
# ============================================================================
# CALLER AUTHORIZATION (Optional)
# Requires feature: tls
# ============================================================================
# client_ca_path above decides whose certificates are ACCEPTED. This section
# decides which of those callers may PROCEED. Without it, every principal the
# CA has ever issued to is admitted identically, so one compromised workload
# reaches every mTLS route of every peer.
#
# [caller_auth]
#
# What a caller must present:
# "bearer" — tokens only; this section is inert (the default)
# "mtls" — an allowlisted client certificate is REQUIRED, in
# addition to whatever [token] demands
# "mtls-or-bearer" — an allowlisted certificate OR a bearer token. Exists so
# a fleet can cut over caller-by-caller: a caller with no
# certificate yet, or not yet allowlisted, keeps working
# on its token. An allowlisted certificate waives the
# token requirement for that request.
# mode = "mtls"
#
# The callers permitted to proceed, matched byte-exactly against the DNS and
# URI subjectAltName values of the caller's leaf certificate. An entry
# containing "://" is a URI SAN, anything else a DNS SAN. There is no wildcard,
# suffix or subdomain matching, and a wildcard SAN in a certificate never
# matches anything.
# allowlist = [
# "spiffe://cluster.local/ns/prod/sa/ingest",
# "reporter.internal",
# ]
#
# Extra path prefixes exempt from caller authorization. /health, /ready,
# /swagger-ui and /api-docs (and the gRPC health and reflection services) are
# always exempt: infrastructure probes present no client certificate.
# public_paths = ["/metrics"]
#
# Refused at STARTUP rather than accepted and quietly ignored:
# - a certificate mode on a listener with no client_ca_path, or no TLS at all
# ([tls] and [grpc.tls] are checked separately, and the error names which)
# - an allowlist under mode = "bearer", where nothing would consult it
# - an empty allowlist under a certificate mode
#
# Refusals are distinguishable: 401 (nothing proven — no certificate, or an
# unparseable one) vs 403 (identity proven, caller not allowlisted). On gRPC
# the same split is UNAUTHENTICATED (16) vs PERMISSION_DENIED (7). Each carries
# a distinct error code: CLIENT_CERT_REQUIRED, CALLER_CREDENTIAL_REQUIRED,
# CLIENT_CERT_UNPARSABLE, CLIENT_CERT_NO_SAN, CALLER_NOT_ALLOWED.
#
# A certificate-authorized caller carries no Claims, so Cedar-protected routes
# still require a bearer token. This is transport-level admission control, not
# a replacement for policy authorization.
# ----------------------------------------------------------------------------
# CLIENT mTLS IDENTITY (Optional) — the certificate this service PRESENTS when
# it CALLS another mutual-TLS service. The outbound mirror of [tls] above.
# Requires feature: tls
#
# This section is not read by the framework Config: a service may call several peers with
# different identities, so there is no single framework-level slot. Deserialize
# one ClientIdentityConfig per peer from wherever that peer is configured, then
# build an acton_service::client_tls::ClientIdentitySource from each.
# ----------------------------------------------------------------------------
# [client_identity]
# enabled = true
# cert_path = "./certs/client.pem" # This service's client cert chain
# key_path = "./certs/client-key.pem" # This service's client private key
# root_ca_path = "./certs/peer-ca.pem" # CA that signed the PEER's server cert
# exclusive_roots = false # false: root_ca_path is ADDED to the
# # public web PKI roots (default; safe
# # for clients that also call
# # publicly-signed endpoints)
# # true: root_ca_path REPLACES them,
# # pinning trust to your own CA. Use
# # for private-mesh-only clients.
# connect_timeout_secs = 30 # Bound on TCP connect + TLS handshake
# # for one connection attempt. Omit for
# # the 30s default. Stops a peer that
# # connects then stalls the handshake
# # from holding the attempt open
# # indefinitely. Not a per-RPC deadline
# # — set that on the Endpoint.
# ============================================================================
# DATABASE CONFIGURATION (Optional)
# ============================================================================
[database]
url = "postgres://user:password@ysql.ysql-cluster.svc.cluster.local:5433/users_db"
max_connections = 50
min_connections = 5
connection_timeout_secs = 10
max_retries = 5
retry_delay_secs = 2
optional = false # Service can start without DB if true
lazy_init = true # Initialize connection in background
# ============================================================================
# SURREALDB CONFIGURATION (Optional)
# Mutually exclusive with [database] and [turso]
# ============================================================================
# [surrealdb]
# url = "ws://localhost:8000" # ws://, wss://, http://, https://, or mem://
# namespace = "default"
# database = "default"
# username = "root" # Optional: omit for unauthenticated access
# password = "root" # Optional: omit for unauthenticated access
# max_retries = 5
# retry_delay_secs = 2
# optional = false # Service can start without SurrealDB if true
# lazy_init = true # Initialize connection in background
# ============================================================================
# REDIS CONFIGURATION (Optional)
# ============================================================================
[redis]
url = "redis://redis.redis-cluster.svc.cluster.local:6379"
max_connections = 20
connection_timeout_secs = 10
max_retries = 5
retry_delay_secs = 2
optional = false # Service can start without Redis if true
lazy_init = true # Initialize connection in background
# ============================================================================
# NATS CONFIGURATION (Optional)
# ============================================================================
[nats]
url = "nats://nats.nats-cluster.svc.cluster.local:4222"
name = "my-service"
max_reconnects = 10
max_retries = 5
retry_delay_secs = 2
optional = false # Service can start without NATS if true
lazy_init = true # Initialize connection in background
# ============================================================================
# AUDIT LOGGING CONFIGURATION (Optional)
# Requires feature: audit
# ============================================================================
# [audit]
# enabled = true
# audit_all_requests = false # Audit every HTTP request (noisy)
# audit_auth_events = true # Auto-audit auth events (login, logout, etc.)
# audit_config_events = true # Emit config audit events (CM-3 compliance)
# otlp_logs_enabled = false # Export audit logs via OTLP (requires observability)
# audited_routes = ["/api/v1/admin/*"] # Glob patterns for per-route auditing
# excluded_routes = ["/health", "/ready", "/metrics"]
# drift_endpoint_enabled = false # Mount GET /admin/config/drift. Default false: the
# endpoint has no auth of its own and sits outside
# route-level middleware — front it with your own
# access control if you enable it.
#
# retention_days = 90 # Days to keep events (omit for infinite)
# archive_path = "/var/audit/archive" # JSONL archive dir before purge (omit to skip)
# cleanup_interval_hours = 24 # Hours between cleanup runs
#
# [audit.syslog]
# transport = "udp" # "udp", "tcp", or "none"
# address = "127.0.0.1:514"
# facility = 13 # 13 = audit (RFC 5424)
# # app_name = "my-service" # Defaults to service.name
#
# [audit.alerts]
# enabled = true
# threshold_secs = 30
# cooldown_secs = 300
# notify_recovery = true
#
# [[audit.alerts.webhooks]]
# url = "https://hooks.slack.com/services/YOUR/WEBHOOK/URL"
# timeout_secs = 10
# # headers = { "Authorization" = "Bearer your-token" }
# ============================================================================
# KEY ROTATION CONFIGURATION (Optional)
# Requires feature: auth + a database backend (database, turso, or surrealdb)
# NIST SP 800-53 SC-12 compliant automated signing key lifecycle management
# ============================================================================
# [auth.key_rotation]
# enabled = true
# rotation_period_secs = 86400 # Rotate keys every 24 hours
# drain_grace_period_secs = 300 # 5 min grace after rotation for in-flight tokens
# check_interval_secs = 60 # Agent checks rotation status every 60 seconds
# retention_days = 90 # Keep retired key metadata for 90 days
# # bootstrap_key_path = "./keys/initial.key" # Optional initial key for first startup
# ============================================================================
# LOGIN LOCKOUT CONFIGURATION (Optional)
# Requires feature: login-lockout (depends on auth + cache)
# ============================================================================
# [lockout]
# enabled = true
# max_attempts = 5 # Lock after 5 failures
# window_secs = 900 # 15-minute rolling window
# lockout_duration_secs = 1800 # Lock for 30 minutes
# progressive_delay_enabled = true # Apply exponential backoff delays
# base_delay_ms = 1000 # 1 second initial delay
# max_delay_ms = 30000 # 30 second max delay
# delay_multiplier = 2.0 # Double delay each attempt
# warning_threshold = 3 # Notify after 3 failures (0 = disabled)
# key_prefix = "lockout" # Redis key prefix
# ============================================================================
# ACCOUNT MANAGEMENT CONFIGURATION (Optional)
# Requires feature: accounts (depends on auth)
# ============================================================================
# [accounts]
# default_status = "pending_verification" # Initial status for new accounts
# require_email_verification = true # Require email verification before activation
# inactivity_expiry_days = 0 # Days of inactivity before expiry (0 = disabled)
# unique_usernames = false # Enforce unique usernames
# audit_events = true # Emit audit events for account lifecycle
# ============================================================================
# BACKGROUND WORKER CONFIGURATION (Optional)
# Managed background task execution with concurrency control
# ============================================================================
# [background_worker]
# enabled = true
# max_concurrent_tasks = 0 # 0 = unlimited
# task_shutdown_timeout_secs = 5
# cleanup_interval_secs = 0 # 0 = disabled
# ============================================================================
# OPENTELEMETRY CONFIGURATION (Optional)
# ============================================================================
[otlp]
endpoint = "http://otel-collector:4317"
service_name = "my-service"
enabled = true