Simple Authentication and Security Layer (SASL)
This authentication method is commonly used with an EventHub such as Kafka.
Synopsis
SASL/PLAIN
To use the SASL/PLAIN authentication method,
set the mechanism
field to PLAIN
.
SASL/SCRAM
To use the SASL/SCRAM authentication method,
set the mechanism
field to SCRAM-SHA-256
or SCRAM-SHA-512
.
Using SSL/TLS
Using SASL for authentication alone doesn’t mean the resulting connection between Armory and the EventHub is encrypted.
To enable SSL/TLS, you need to define the sslConf
property in accordance with your particular situation.
Using the default CA
In the most simple case, define sslConf
with an enabled: true
property:
This is enough when:
- the server doesn’t require additional authentication from the client (through a client certificate),
- the server’s certificate can be validated with the
ca-certificates
package included in Kannika Armor’s image,
Server authentication
If the server’s certificate needs to be validated with a custom CA (self-signed certificate),
then use the caCertificatePemFrom
field to reference a secret in PEM format.
Client authentication
In some rare cases, the server may require TLS authentication from the client.
In this situation, load the certificate and key in a secret and configure sslConf
accordingly:
- explicitly set using a secret in PEM format with
caCertificatePemFrom
.