Handlers

PostgreSQL

The PostgreSQL handler authenticates incoming connections for a particular listener.

WARNING: Handler in alpha - not suitable for production

Credentials

  • address
    Required
    Connection string of the form host[:port][/dbname]

  • username
    Required
    Username of the PostgreSQL account to connect as

  • password
    Required
    Password of the PostgreSQL account to connect with

Examples

Listening on a network address

listeners:
  - name: pg_listener
    protocol: pg
    address: 0.0.0.0:5432

handlers:
  - name: pg_handler
    listener: pg_listener
    credentials:
      - name: address
        provider: literal
        id: postgres.my-service.internal:5432
      - name: username
        provider: literal
        id: my-service
      - name: password
        provider: env
        id: PG_PASSWORD

Listening on a Unix-domain socket

listeners:
  - name: pg_listener
    protocol: pg
    socket: /sock/.s.PGSQL.5432

handlers:
  - name: pg_handler
    listener: pg_listener
    credentials:
      - name: address
        provider: literal
        id: postgres.my-service.internal:5432
      - name: username
        provider: literal
        id: my-service
      - name: password
        provider: env
        id: PG_PASSWORD

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