Skip to main content

Redpanda


Redpanda

Introduction

In this guide, you will learn how to connect to Redpanda from Zilla. You can get started with a fully working config exampleopen in new window.

Redpanda Parameters

A brief explanation of replaceable values from the config examples below:

ValueDescription
SASL_USERNAMEThe SASL username for Redpanda
SASL_PASSWORDThe SASL password for Redpanda
BOOTSTRAP_SERVER_HOSTNAMETarget Redpanda hostname
BOOTSTRAP_SERVER_PORTTarget Redpanda port number

Configure Zilla

zilla.yaml
bindings:
  kafka_client:
    type: kafka
    kind: client
    options:
      sasl:
        mechanism: scram-sha-256
        username: SASL_USERNAME
        password: SASL_PASSWORD
    exit: tls_client
  tls_client:
    type: tls
    kind: client
    options:
      trustcacerts: true
      sni:
      - BOOTSTRAP_SERVER_HOSTNAME
    exit: tcp_client
  tcp_client:
    type: tcp
    kind: client
    options:
      host: BOOTSTRAP_SERVER_HOSTNAME
      port: BOOTSTRAP_SERVER_PORT
    routes:
      - when:
        - cidr: 0.0.0.0/0

NOTE

SNI adds the domain name to the TLS handshake process so that the Zilla process reaches the right domain name and receives the correct SSL certificate.

To test the above SASL config you can follow instructions in the README from the exampleopen in new window.