SaslPlaintextSettings¶
- pydantic model safir.kafka.SaslPlaintextSettings¶
Subset of settings required for SASL SSLauth.
- Parameters:
data (
Any
)
Show JSON schema
{ "title": "SaslPlaintextSettings", "description": "Subset of settings required for SASL SSLauth.", "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/SaslMechanism", "default": "SCRAM-SHA-512" }, "sasl_username": { "title": "Sasl Username", "type": "string" }, "sasl_password": { "format": "password", "title": "Sasl Password", "type": "string", "writeOnly": true } }, "$defs": { "SaslMechanism": { "description": "Kafka SASL mechanisms.", "enum": [ "PLAIN", "SCRAM-SHA-256", "SCRAM-SHA-512" ], "title": "SaslMechanism", "type": "string" } }, "required": [ "bootstrap_servers", "security_protocol", "sasl_username", "sasl_password" ] }
- Fields:
- field bootstrap_servers: str [Required]¶
- field sasl_mechanism: SaslMechanism = SaslMechanism.SCRAM_SHA_512¶
- field sasl_password: SecretStr [Required]¶
- field sasl_username: str [Required]¶
- field security_protocol: Literal[SecurityProtocol.SASL_PLAINTEXT, SecurityProtocol.SASL_SSL] [Required]¶
- to_aiokafka_params()¶
- Return type:
- to_faststream_params()¶
- Return type: