confluentinc / confluent-docker-utils

Common Python utils for testing Confluent's Docker images
Apache License 2.0
3 stars 3 forks source link

ST-1532: Add https connectivity options for cub *-ready scripts #37

Closed dragosvictor closed 2 years ago

dragosvictor commented 2 years ago

Allows cub [sr,connect,kr,ksql-server,control-center]-ready scripts to connect to TLS enabled endpoints. Tested against cp-demo setup (modified to skip MDS authentication, since cub does not allow usernames and passwords yet):

./cub.py control-center-ready localhost 9022 5 --secure --ignore_cert && \
./cub.py kr-ready localhost 8086 5 --secure --ignore_cert && \
./cub.py sr-ready localhost 8085 5 --secure --ignore_cert && \
./cub.py connect-ready localhost 8083 5 --secure --ignore_cert && \
./cub.py ksql-server-ready localhost 8089 5 --secure --ignore_cert && \
echo "success"
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1006: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
success