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

Tls client certificate #191

Merged
merged 13 commits into from
Sep 12, 2023
Merged

Tls client certificate #191

merged 13 commits into from
Sep 12, 2023

Conversation

DanielePalaia
Copy link
Contributor

This PR add support for client certifications and the possibility to trust the certificates with a trust_certificates method.

I will add tests when #185 will be ready.

@DanielePalaia DanielePalaia marked this pull request as draft August 22, 2023 08:25
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Patch coverage: 88.43% and project coverage change: +1.37% 🎉

Comparison is base (ec2794f) 86.83% compared to head (bf67535) 88.21%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #191      +/-   ##
==========================================
+ Coverage   86.83%   88.21%   +1.37%     
==========================================
  Files          68       68              
  Lines        5501     5625     +124     
==========================================
+ Hits         4777     4962     +185     
+ Misses        724      663      -61     
Files Changed Coverage Δ
src/environment.rs 78.66% <69.76%> (+18.14%) ⬆️
src/client/mod.rs 93.84% <96.00%> (+5.80%) ⬆️
src/client/options.rs 50.00% <100.00%> (+4.05%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/client/mod.rs Outdated Show resolved Hide resolved
@DanielePalaia
Copy link
Contributor Author

Let's wait for this #185 to be integrated in order to write a couple of tests here before integrating.

@Gsantomaggio
Copy link
Member

FYI: the #185 has been replaced by #192

test to validate the TLS connection.

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
with the wrong certificate

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
@Gsantomaggio Gsantomaggio marked this pull request as ready for review September 11, 2023 17:42
@Gsantomaggio
Copy link
Member

@DanielePalaia @wolf4ood ready for review.

test
Recreate the certificates

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
test
Recreate the certificates

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Copy link
Contributor

@wolf4ood wolf4ood left a comment

Choose a reason for hiding this comment

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

LGTM

@Gsantomaggio Gsantomaggio merged commit ce38461 into main Sep 12, 2023
4 checks passed
@Gsantomaggio Gsantomaggio deleted the tls_client_certificate branch September 12, 2023 06:36
@Gsantomaggio Gsantomaggio mentioned this pull request Sep 12, 2023
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.

3 participants