saie-ch opened a new pull request, #2754:
URL: https://github.com/apache/iggy/pull/2754
The Python getting-started examples connection settings has no way to
configure TLS, authentication credentials.
What changed?
The producer and consumer examples only supported a basic
--tcp-server-address argument.
Both examples now accept --tls, --tls-ca-file, --username, and --password
arguments, and use IggyClient.from_connection_string() to build a connection
string with optional TLS parameters.
Local Execution : Passed
Pre-commit hooks ran
- Tested locally against iggy server on 127.0.0.1:8090 without TLS:
python examples/python/getting-started/producer.py --tcp-server-address
127.0.0.1:8090
python examples/python/getting-started/consumer.py --tcp-server-address
127.0.0.1:8090
Producer sent 5 batches of 10 messages (50 total), consumer consumed all
50 messages successfully.
- Tested on manged server with --tls , --tls-ca-file, username, password.
examples/python/getting-started/producer.py \
--tls \
--tcp-server-address xxxxxxxx \
--username xxxx \
--password xxxxxx \
--tls-ca-file xxxxx
- Python SDK tests: 18/18 passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]