KafkaSaslSslSettings¶
- pydantic model safir.kafka.KafkaSaslSslSettings¶
Subset of settings required for SASL PLAINTEXT auth.
- Parameters:
data (
Any
)
Show JSON schema
{ "title": "KafkaSaslSslSettings", "description": "Subset of settings required for SASL PLAINTEXT auth.", "type": "object", "properties": { "bootstrap_servers": { "title": "Bootstrap Servers", "type": "string" }, "security_protocol": { "enum": [ "SASL_PLAINTEXT", "SASL_SSL" ], "title": "Security Protocol", "type": "string" }, "sasl_mechanism": { "$ref": "#/$defs/KafkaSaslMechanism", "default": "SCRAM-SHA-512" }, "sasl_username": { "title": "Sasl Username", "type": "string" }, "sasl_password": { "format": "password", "title": "Sasl Password", "type": "string", "writeOnly": true }, "cluster_ca_path": { "anyOf": [ { "format": "file-path", "type": "string" }, { "type": "null" } ], "title": "Cluster Ca Path" } }, "$defs": { "KafkaSaslMechanism": { "description": "Kafka SASL mechanisms.", "enum": [ "PLAIN", "SCRAM-SHA-256", "SCRAM-SHA-512" ], "title": "KafkaSaslMechanism", "type": "string" } }, "required": [ "bootstrap_servers", "security_protocol", "sasl_username", "sasl_password", "cluster_ca_path" ] }
- Fields:
- field bootstrap_servers: str [Required]¶
- field cluster_ca_path: FilePath | None [Required]¶
- field sasl_mechanism: KafkaSaslMechanism = KafkaSaslMechanism.SCRAM_SHA_512¶
- field sasl_password: SecretStr [Required]¶
- field sasl_username: str [Required]¶
- field security_protocol: Literal[KafkaSecurityProtocol.SASL_PLAINTEXT, KafkaSecurityProtocol.SASL_SSL] [Required]¶
- property aiokafka_params: AIOKafkaParams¶
- property faststream_params: FastStreamBrokerParams¶
- property ssl_context: SSLContext¶
An SSL context for connecting to Kafka.