Skip to content

Commit

Permalink
Add SASL_PLAINTEXT and SASL_SSL to valid values in security protocol …
Browse files Browse the repository at this point in the history
…documentation. (#768)
  • Loading branch information
pawelrubin committed Aug 25, 2021
1 parent 04ca511 commit 9eb6379
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/768.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add SASL_PLAINTEXT and SASL_SSL to valid values in security protocol attribute.
3 changes: 2 additions & 1 deletion aiokafka/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ class AIOKafkaClient:
If set to 'auto', will attempt to infer the broker version by
probing various APIs. Default: auto
security_protocol (str): Protocol used to communicate with brokers.
Valid values are: PLAINTEXT, SSL. Default: PLAINTEXT.
Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL.
Default: PLAINTEXT.
ssl_context (ssl.SSLContext): pre-configured SSLContext for wrapping
socket connections. For more information see :ref:`ssl_auth`.
Default: None.
Expand Down
3 changes: 2 additions & 1 deletion aiokafka/consumer/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ class AIOKafkaConsumer:
If set to 'auto', will attempt to infer the broker version by
probing various APIs. Default: auto
security_protocol (str): Protocol used to communicate with brokers.
Valid values are: PLAINTEXT, SSL. Default: PLAINTEXT.
Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL.
Default: PLAINTEXT.
ssl_context (ssl.SSLContext): pre-configured SSLContext for wrapping
socket connections. Directly passed into asyncio's
`create_connection`_. For more information see :ref:`ssl_auth`.
Expand Down
3 changes: 2 additions & 1 deletion aiokafka/producer/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class AIOKafkaProducer:
If set to 'auto', will attempt to infer the broker version by
probing various APIs. Default: auto
security_protocol (str): Protocol used to communicate with brokers.
Valid values are: PLAINTEXT, SSL. Default: PLAINTEXT.
Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL.
Default: PLAINTEXT.
ssl_context (ssl.SSLContext): pre-configured SSLContext for wrapping
socket connections. Directly passed into asyncio's
`create_connection`_. For more information see :ref:`ssl_auth`.
Expand Down

0 comments on commit 9eb6379

Please sign in to comment.