Backend clusters

Related Documentation
OpenAPI Specifications
Incompatible with
on-prem
Tags

What is a backend cluster?

A backend cluster is an abstraction of a real Kafka cluster. It stores the connection and configuration details required for Kong Event Gateway to proxy traffic to Kafka.

Multiple Kafka clusters can be proxied through a single Kong Event Gateway. The Event Gateway control plane manages information such as:

  • Authentication credentials for connecting to Kafka clusters
  • TLS verification preferences
  • Metadata refresh intervals for fetching cluster information
 
flowchart LR
    
    A[Kafka 
    client]
    B[Listener 
    &#40TCP socket&#41
    + listener policies]
    C@{ shape: processes, label: "Virtual clusters
    + consume, produce, 
    and cluster policies"}
    D[Backend 
    cluster]
    E[Kafka 
    cluster]

    A --> B
    subgraph id1 [Event Gateway]
    B --> C 
    C --> D
    end
    D --> E

    style D stroke:#86e2cc

    style id1 rx:7,ry:7
  

Authentication

Authentication on the backend cluster defines the credentials the Event Gateway uses when connecting to Kafka to fetch cluster metadata, such as brokers, topic and partition information. The supported types reflect what your Kafka cluster accepts.

Note: These credentials aren’t used to represent individual client actions. For passthrough and validate_forward mediation, each client authenticates directly to Kafka using their own credentials for their connection.

Backend clusters support the following auth methods:

Auth method (authentication.type)

Description

Credential mediation types (authentication.mediation)

Anonymous Doesn’t require clients to provide any authentication when connecting to the proxy. None
SASL/PLAIN Requires clients to provide a username and password.

Accepts a hardcoded list of usernames and passwords, either as strings or environment variables.

See Authenticate Event Gateway connections to Kafka using SASL/PLAIN.
passthrough, terminate
SASL/SCRAM-SHA-256 Requires clients to provide a username and password using SCRAM-SHA-256 hashing. passthrough
SASL/SCRAM-SHA-512 Requires clients to provide a username and password using SCRAM-SHA-512 hashing. passthrough

Depending on what your Kafka cluster supports, you’ll need to configure authentication on the associated virtual cluster:

Set up a backend cluster

Schema

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!