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 how the proxy connects to the backend for capturing metadata (topics, consumer groups, and so on).

The backend cluster supports multiple authentication methods and can mediate authentication between clients and backend clusters. See Virtual cluster authentication to learn more.

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.
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

Set up a backend cluster

Schema

Something wrong?

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!