Replication jobs
Built with franz-go. A job consumes from a source Kafka cluster and produces to a target. Same-name mirroring is the default. Exact names and regex mappings are optional. A JobManager starts, stops and pauses jobs. Source offsets are committed only after the target produce is acknowledged.
Web UI
A tab-based dashboard with Operations, Health, Executive and Compliance sections. The UI polls the API every 30 seconds, reads the user's permissions from GET /auth/me, and hides buttons the user cannot use. It fits phone screens down to 390px.
RBAC
Token-based authentication with admin, operator, monitoring and compliance roles. Cluster and config APIs return *** for credentials. A PUT with *** or an empty secret leaves the stored value unchanged.
Metrics and lag
Every running job reports counters every 10 seconds, including messages copied, bytes transferred, errors, tombstones and current lag. Lag is also available at GET /api/v1/jobs/{id}/lag. Job metrics are stored in SQLite. The process /metrics endpoint serves only Go runtime metrics.
AI insights, opt-in
Off until ai.provider is set. Without a provider, kaf-mirror makes no AI requests. When it is on, it can detect anomalies in replication metrics, suggest performance tuning and analyze incidents. See the AI analysis docs.
Compliance reports
Automated daily, weekly and monthly compliance reports with an audit trail. Metrics and operational events are kept for 30 days by default, or a shorter period set with database.retention_days (1 to 30).
TLS and mTLS
TLS is used when security.protocol is SSL or SASL_SSL, and always for the confluent and azure providers. ca_file, cert_file and key_file set a private CA and a client certificate. Each file must be a regular file of at most 1 MiB. Production requires TLS unless server.allow_insecure is set. SASL PLAIN, SCRAM and Kerberos (GSSAPI) are also supported.
Helm
The supported way to run kaf-mirror in Kubernetes is the chart in deploy/helm/kaf-mirror. CI lints and renders it with make helm-check. A default install starts and answers /health.