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

Add build TLS config from URI #98

Merged
merged 3 commits into from Jul 13, 2022
Merged

Add build TLS config from URI #98

merged 3 commits into from Jul 13, 2022

Conversation

reddec
Copy link
Contributor

@reddec reddec commented Jul 10, 2022

Add support for cacertfile, certfile, keyfile, server_name_indication from https://www.rabbitmq.com/uri-query-parameters.html

  • If cacertfile is not provided, system CA certificates will be used.
  • Mutual TLS (client auth) will be enabled only in case keyfile AND certfile provided.
  • If Config.TLSClientConfig is set, TLS parameters from URI will be ignored.

Add cacertfile, certfile, keyfile, server_name_indication from https://www.rabbitmq.com/uri-query-parameters.html
@reddec
Copy link
Contributor Author

reddec commented Jul 12, 2022

@michaelklishin

@michaelklishin
Copy link
Member

I don't spend much time on client libraries these days. I have asked folks who are now in charge of them to have a look.

Copy link
Contributor

@lukebakken lukebakken left a comment

Choose a reason for hiding this comment

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

Thank you very much for this contribution. I have made some small change requests.

uri_test.go Outdated Show resolved Hide resolved
connection.go Show resolved Hide resolved
connection.go Show resolved Hide resolved
connection.go Show resolved Hide resolved
@lukebakken lukebakken added this to the 1.4.0 milestone Jul 12, 2022
@lukebakken lukebakken self-assigned this Jul 12, 2022
@reddec reddec requested a review from lukebakken July 12, 2022 14:48
Copy link
Contributor

@lukebakken lukebakken left a comment

Choose a reason for hiding this comment

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

Thanks again, this is great. I just made a note for a couple more URI "corner cases" with regard to paths.

@lukebakken lukebakken merged commit ec9c17a into rabbitmq:main Jul 13, 2022
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.

None yet

3 participants