Handlers

MySQL

The MySQL handler authenticates incoming connections for a particular listener.

Handler in alpha - not suitable for production

Credentials

  • host
    Required
    Host name of the MySQL server

  • port
    Required
    Port of the MySQL server

  • username
    Required
    Username of the MySQL account to connect as

  • password
    Required
    Password of the MySQL account to connect with

Examples

Listening on a network address

listeners:
  - name: mysql_listener
    protocol: mysql
    address: 0.0.0.0:3306

handlers:
  - name: mysql_handler
    listener: mysql_listener
    credentials:
      - name: host
        provider: literal
        id: mysql.my-service.internal
      - name: port
        provider: literal
        id: 3306
      - name: username
        provider: literal
        id: my-service
      - name: password
        provider: env
        id: MYSQL_PASSWORD

Listening on a Unix-domain socket

listeners:
  - name: mysql_listener
    protocol: mysql
    socket: /sock/mysql.sock

handlers:
  - name: mysql_handler
    listener: mysql_listener
    credentials:
      - name: host
        provider: literal
        id: mysql.my-service.internal
      - name: port
        provider: literal
        id: 3306
      - name: username
        provider: literal
        id: my-service
      - name: password
        provider: env
        id: MYSQL_PASSWORD

Ready to use Secretless Broker in your Kubernetes environment? Check out our Kubernetes tutorial or our deployment guides!