Kafka_securitySourceSecurity transport configuration shared by producer and consumer.
type protocol = [ | `PlaintextNo encryption or authentication. Local dev default.
*)| `SslTLS encryption, no SASL authentication.
*)| `Sasl_plaintextSASL authentication, no TLS encryption.
*)| `Sasl_sslSASL authentication over TLS. Production default.
*) ]Plaintext. Use for local dev and unit tests. Do not use in production — requires explicit Ssl or Sasl_ssl.
Parse a finite Kafka security protocol value. Accepted values are "plaintext", "ssl", "sasl_plaintext", and "sasl_ssl", case insensitively.
Build from environment variables:
KAFKA_SECURITY_PROTOCOL — "plaintext" | "ssl" | "sasl_plaintext" | "sasl_ssl" (default: "plaintext", unknown values return Error)KAFKA_SSL_CA_LOCATION — path to CA cert bundleKAFKA_SASL_MECHANISM — "PLAIN" | "SCRAM-SHA-256" | "SCRAM-SHA-512"KAFKA_SASL_USERNAMEKAFKA_SASL_PASSWORDSet librdkafka security.protocol, ssl.ca.location, and sasl.* keys on conf. Returns Error msg if any key is rejected by librdkafka. SASL credentials are required by the Sasl_plaintext and Sasl_ssl constructors. Called internally by producer and consumer conf_of_config; not part of the public API.