Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Add options to configure producing events to a kerberized kafka #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,38 @@ Property: ``divolte.global.gcps.project_id``

.. _project id: https://support.google.com/cloud/answer/6158840?hl=en

It is also possible to configure divolte to work with a kerberized Kafka cluster the following configuration snippet shows how.


.. code-block:: none

divolte.global.kafka.producer = {
bootstrap.servers = ["server1:9092", "server2:9092", "server3:9092"]
client.id = divolte.collector

acks = 0
retries = 5

sasl.jaas.config = ""
sasl.jaas.config = ${?KAFKA_SASL_JAAS_CONFIG}

security.protocol = PLAINTEXT
security.protocol = ${?KAFKA_SECURITY_PROTOCOL}
sasl.mechanism = GSSAPI
sasl.kerberos.service.name = kafka
}

The :envvar:`KAFKA_SECURITY_PROTOCOL` can then be set to `SASL_PLAINTEXT` and the :envvar:`KAFKA_SASL_JAAS_CONFIG` can be set to something like:

.. code-block:: none

com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
storeKey=true
keyTab="/etc/security/keytabs/divolte.keytab"
principal="divolte/hostname.divolte.io";


Sources (``divolte.sources``)
-----------------------------

Expand All @@ -642,6 +674,7 @@ Each source has a type configured via a mandatory ``type`` property. Two types o

For example:


.. code-block:: none

divolte.sources {
Expand Down