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

[stable/yoga] Support checking service ports with ssl connection #898

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

dosaboy
Copy link
Contributor

@dosaboy dosaboy commented Apr 22, 2024

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
(cherry picked from commit 0071e27) (cherry picked from commit f991233) (cherry picked from commit 4a65a1b) (cherry picked from commit 2869ac5)

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
(cherry picked from commit 0071e27)
(cherry picked from commit f991233)
(cherry picked from commit 4a65a1b)
(cherry picked from commit 2869ac5)
@ajkavanagh ajkavanagh changed the title Support checking service ports with ssl connection [stable/yoga] Support checking service ports with ssl connection Apr 22, 2024
@ajkavanagh ajkavanagh merged commit f401a3c into juju:stable/yoga Apr 22, 2024
3 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.

2 participants