Delegated tokens authentication

Use delegated tokens generated in Kafka to authenticate the Kafka Log plugin.

Environment variables

  • KAFKA_TOPIC: The name of your Kafka topic.

  • TOKEN_ID: The tokenID for your delegated token.

  • TOKEN_HMAC: The token-hmac for your delegated token.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: kafka-log
    config:
      topic: ${{ env "DECK_KAFKA_TOPIC" }}
      authentication:
        strategy: sasl
        mechanism: SCRAM-SHA-256
        user: ${{ env "DECK_TOKEN_ID" }}
        password: ${{ env "DECK_TOKEN_HMAC" }}
        tokenauth: true
Copied to clipboard!

Did this doc help?

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!