DFE architecture
DFE takes events from your agents, products and APIs, carries them over Kafka, and lands them in ClickHouse, where you search them in the DFE console. This page is the map of the whole suite, and dfe-infra is the repo that deploys it onto Kubernetes.
Figure 1. L2 Services -- DFE suite. The transforms and the direct gRPC path are optional. Up: top of the DFE docs. Down: L4 Detail -- DFE suite control path, L3 Components -- Argo CD, and each repo's architecture page in Components.
The control path
Nothing reaches the cluster except through git: the console's changes go through dfe-engine to the deploy repo, and Argo CD applies what is committed.
Figure 2. L4 Detail -- DFE suite control path. Up: L2 Services -- DFE suite.
How data flows
- Agents and products post to dfe-receiver over HTTP or HTTPS in the protocol they already speak: Splunk HEC, Elastic bulk, OTLP, syslog and more. dfe-fetcher pulls from cloud and SaaS APIs, databases and files. Both write each source to a
*_landtopic of its own. - A source that needs grok or custom logic gets a transform. It reads
*_landand writes*_load. Most sources need none. - dfe-loader inserts each topic's records into ClickHouse tables. Every field lands, mapped or not. dfe-archiver writes the landing topics to compressed files in object storage, so a replay never depends on Kafka retention.
- The DFE console queries ClickHouse. Every change you make there, a source, a rule or a user, goes through dfe-engine.
- dfe-engine commits each change to the deploy repo, and Argo CD applies it. dfe-engine also creates every ClickHouse table and Kafka topic when it starts.
On the slim tier there is no Kafka, and each stage sends to the next over gRPC. A per-source transform needs Kafka, so slim runs just the transforms a deployment ships.
Components
| Part | Role | Its page |
|---|---|---|
| dfe-receiver | Takes what senders post, in their protocol, and hands on JSON | dfe-receiver |
| dfe-fetcher | Pulls from APIs, databases, files and containers on a schedule | dfe-fetcher |
| Source topic | One *_land topic per source, created by dfe-engine | Kafka providers |
| Transforms | Optional per-source parsing: VRL, Vector, or compiled Elastic ingest pipelines | vrl, vector, elastic |
| Transformed topic | The *_load topic a transform writes and the loader reads instead | Kafka providers |
| dfe-loader | Inserts records into ClickHouse without a mapping first | dfe-loader |
| dfe-archiver | Writes streams to compressed files in a local path or object store | dfe-archiver |
| ClickHouse | Every table you search, plus the stack's own logs and metrics | ClickHouse |
| Object storage | The archive, one compressed file per topic and org per roll | Archiving |
| DFE console | Search, dashboards, sources, rules and admin | dfe-ui |
| dfe-engine | The config API, schema and topic owner, and the token issuer every DFE service trusts | dfe-engine |
| Deploy repo | One git repo per environment: pins, values, backing-service settings and config | State, storage and repositories |
| Argo CD | Applies dfe-infra's charts and the deploy repo to the cluster | Argo CD |
External dependencies
Every backend is a config choice, not a code change. We never fork a chart to swap one, and a part just one provider can supply is a bug. A dependency goes in this table before it merges.
| Backend | Switch | Choices |
|---|---|---|
| Cluster | the vanilla-cluster contract, checked by bootstrap preflight | RKE2 and EKS, tested. AKS and GKE Standard through values overlays |
| Kafka | kafka chart mode, kafka.bootstrapServers | in-cluster single broker or Strimzi, Amazon MSK, Confluent Cloud, Redpanda (licence gate) |
| ClickHouse | clickhouse.mode single, cluster or external, clickhouse.host | in-cluster, ClickHouse Cloud |
| Object storage | the archiver's destination settings | local path, MinIO, S3, GCS, Azure Blob |
| Document store | mongodb.uri in the dfe-hyperdx values | bundled DocumentDB on CloudNativePG, any external MongoDB-protocol service |
| Deploy repo | DFE_BUNDLED_DEPLOY_REPO and its credentials | bundled Forgejo, GitHub, GitLab |
| Secrets | External Secrets ClusterSecretStore | OpenBao or Vault, AWS Secrets Manager |
| TLS | cert-manager ClusterIssuer, tls.acme.* or tls.vault.* | ACME, Vault or OpenBao PKI |
| DNS | external-dns provider, or the deployment's DNS | CoreDNS on-premises, Route 53 |
| Load balancer | envoyGateway.service.* | MetalLB, a cloud NLB, NodePort behind a hardware balancer, external IPs |
| Login | the external OIDC issuer in the deploy repo's config/ | any OIDC identity provider |
versions.yaml holds every pin. argocd/values/common.yaml holds every other shared fact, including the hostnames: map each surface's DNS name comes from.
Deployment variants
| Tier | Between stages | What runs |
|---|---|---|
slim | gRPC | one replica of each core app and the archiver, a single ClickHouse node |
single | one Kafka broker, no operator | adds the VRL and Elastic transforms |
scale | Strimzi or Redpanda through an operator, or a managed broker | two replicas up, KEDA to 12, a ClickHouse cluster through its operator |
The cluster secret's dfe.hyperi.io/profile label picks the tier. What a tier deploys comes from apps.yaml, and sizing from the deploy repo, so a tier is a default, not a lock.
On Docker, dfe-docker runs the same images on one host as slim or single profiles over Kafka or gRPC. Compose can't scale out, so there's no scale there.
The edge VPN is optional on scale. culvert lets appliances behind carrier NAT dial in and post through the tunnel (edge-fleet VPN).
Design considerations
Security. The stack is an OIDC relying party to your identity provider. dfe-engine issues the tokens the DFE services check, and publishes the keys they check them with. Every record carries _org_id, and an org_viewer login sees its org's rows and no others, enforced by its ClickHouse role. Every UI with a login is reachable from outside by default, and the infra UIs have a kill switch (edge exposure and auth). Secrets come from your secrets store through External Secrets, never from git.
Reliability. Kafka is the buffer between stages. Its retention covers consumer downtime plus archiver lag, and the archive covers anything older. A record no stage can handle goes to a dead-letter topic and stays 7 days (dead-letter topics). An app pod waits for dfe-engine's /readyz before it starts, so nothing writes to a table that isn't there yet.
Operations. What runs is what's in git. A change made live outside it is reverted by the next sync. Every component sends its logs and metrics over OpenTelemetry into ClickHouse, so the console shows the stack's health before your first event lands (observability).
Performance. The receiver, fetcher and loader handle nearly every event, so they're purpose-built Rust with profile-guided builds. A general transform engine runs where a source needs one, and nowhere else (design principles). KEDA scales each app on its pressure signal (autoscaling).
Why it's built this way
dfe-infra deploys, dfe-engine configures. The engine never installs a backing service or writes an Argo Application, and dfe-infra never reads or writes engine config. Each concern has one writer, so a deploy and a config change can't fight over the same object.
dfe-engine alone owns the schema and topics. dfe-schemas declares every ClickHouse object and Kafka topic, and the engine applies them at startup on every tier and broker. An app can then wait on one readiness check instead of racing a migration job. scripts/tests/test_engine_only_schema_control.py fails the build if DDL or a topic-creation step turns up anywhere in this repo.
Config lives in git, not a database. A system definition gets review, rollback and an audit trail for free. Per-user state, such as saved searches, is the one thing kept in a database.
Kafka between stages, except on slim. A broker lets each stage fail, restart or scale alone, and gives the archiver a separate read of every topic. slim drops it to fit the core path on a small footprint.
No MongoDB. Its SSPL licence rules it out of the product, test scaffolds included. The console's search metadata lives in DocumentDB, which speaks the same protocol.
Diagram map
- Figure 1. L2 Services -- DFE suite, at the top of this page
- Figure 2. L4 Detail -- DFE suite control path
- L3 Components -- Argo CD
- Each component's architecture page, linked from Components, with a diagram map of its own.
What's next
- Install: on-premises, AWS, or Docker.
- Configure: deployment and the values cascade, shared values and managed backends.
- Prove a deployment: the testing cycle.
- Change dfe-infra itself: the Context section of CONTRIBUTING.md.