> ## Documentation Index
> Fetch the complete documentation index at: https://sariva.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-hosted Kafka

> Confluent Platform, Strimzi, CFK, vanilla Apache Kafka — SASL/SCRAM, PLAIN, or mTLS.

> [!WARNING]
>
> **Present state — not yet verified end-to-end.** The onboarding rehearsal covered Confluent Cloud only; self-hosted flavors (CFK on EKS, Strimzi, Confluent Platform) are scheduled for a later test (TC2). The steps below follow the credential-provider design; treat them as present-state until that test confirms them.

For self-hosted clusters, the credential is customer-managed. Sariva does not generically create Kafka SASL users or issue X.509 certificates because those depend on your authentication backend, such as KRaft, LDAP, Vault, OAuth2, cert-manager, Vault PKI, or an internal CA.

## Workflow

**1. Create the credential**

Create the Kafka user (or generate the mTLS cert) with your existing tooling.

**2. Grant read ACLs**

Cluster-wide read/describe for the principal:

```bash theme={null}
kafka-acls.sh --add --allow-principal User:sariva \
  --operation Read --operation Describe --topic '*' --group '*'
```

For mTLS, scope the same ACLs to the cert's principal name.

**3. Store the credential**

In any provider from the other pages. For **mTLS on EKS, use the Kubernetes Secret**. On a VM, mTLS material through `file://` is not yet proven.

**4. Declare credentials\_ref directly**

No `credential_store` block — Sariva does not auto-create credentials for self-hosted.

```yaml theme={null}
# clusters/legacy-onprem-kafka.yaml
flavor: self-hosted
auth_type: sasl_ssl_scram
bootstrap_servers: kafka.internal.example.com:9093
credentials_ref: k8s://team-secrets/legacy-onprem-creds
# No credential_store block
```

Then attach as on the [Kubernetes Secret](https://sariva.mintlify.site/connecting-clusters/kubernetes-secret.md) page (pre-create Secret → RBAC → `sariva cluster patch`).

> [!NOTE]
>
> Per-flavor connection fields and the authoritative support matrix live in the Sariva platform's `support_matrix.yaml` — consult it for the exact fields each self-hosted flavor expects.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.