Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support checking service ports with ssl connection #881

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

dosaboy
Copy link
Contributor

@dosaboy dosaboy commented Mar 12, 2024

Related-Bug: #1920770

@dosaboy dosaboy force-pushed the bug/1920770 branch 3 times, most recently from bd09435 to 70a0059 Compare March 13, 2024 13:27
@dosaboy dosaboy force-pushed the bug/1920770 branch 2 times, most recently from 8ac0bca to 5ba196e Compare March 20, 2024 17:00
@dosaboy dosaboy marked this pull request as ready for review March 20, 2024 17:02
Copy link
Contributor

@mkalcok mkalcok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Overall LGTM, but I left few suggestions in-line.

charmhelpers/contrib/network/ip.py Outdated Show resolved Hide resolved
charmhelpers/contrib/network/ip.py Outdated Show resolved Hide resolved
charmhelpers/contrib/openstack/utils.py Outdated Show resolved Hide resolved
@dosaboy dosaboy force-pushed the bug/1920770 branch 7 times, most recently from 22ef771 to c97b780 Compare April 12, 2024 09:36
Copy link
Contributor

@mkalcok mkalcok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the updates.

By default netcat is used to check if a service is
listening on a port. This is generally ok except
for services expecting SSL connections which need
to be properly closed and netcat can't do that. So
here we add support for optionally using the python
ssl library to create an ssl connection to the port
and close it properly once finished.

Related-Bug: #1920770
@javacruft javacruft merged commit 807f705 into juju:master Apr 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants