rabbitmq / rabbitmq-stream-rust-client

A client library for RabbitMQ streams
Other
156 stars 15 forks source link

tls support improvements, added trust to hostname and ca certificate #182

Closed DanielePalaia closed 1 year ago

DanielePalaia commented 1 year ago

This PR replaces tokio-native-tls with tokio::rusttls.

This was due because with tokio-native-tls certificate authentication wasn't working properly.

Comparing to previous release it also supports now certificate authentication and it adds an example

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 7.40% and project coverage change: +0.13% :tada:

Comparison is base (613261d) 87.22% compared to head (31a6213) 87.35%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #182 +/- ## ========================================== + Coverage 87.22% 87.35% +0.13% ========================================== Files 68 68 Lines 5517 5503 -14 ========================================== - Hits 4812 4807 -5 + Misses 705 696 -9 ``` | [Files Changed](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/182?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq) | Coverage Δ | | |---|---|---| | [src/client/mod.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/182?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-c3JjL2NsaWVudC9tb2QucnM=) | `88.04% <0.00%> (-4.16%)` | :arrow_down: | | [src/error.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/182?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-c3JjL2Vycm9yLnJz) | `6.25% <ø> (ø)` | | | [src/environment.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/182?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-c3JjL2Vudmlyb25tZW50LnJz) | `60.52% <11.11%> (-16.46%)` | :arrow_down: | | [src/client/options.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/182?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-c3JjL2NsaWVudC9vcHRpb25zLnJz) | `45.94% <50.00%> (-1.43%)` | :arrow_down: | ... and [13 files with indirect coverage changes](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/182/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.