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

documentation and test for using client certificates #890

Merged
merged 5 commits into from
Jul 19, 2021

Conversation

jarrodconnolly
Copy link
Contributor

As discussed in #842 I have added a test and documentation for using client certificate authentication with undici.

Let me know if this is the right direction.

@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2021

Codecov Report

Merging #890 (af08a3c) into main (104be9c) will decrease coverage by 0.18%.
The diff coverage is n/a.

❗ Current head af08a3c differs from pull request most recent head ba9f8c6. Consider uploading reports for the commit ba9f8c6 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #890      +/-   ##
==========================================
- Coverage   99.81%   99.62%   -0.19%     
==========================================
  Files          26       26              
  Lines        2121     2126       +5     
==========================================
+ Hits         2117     2118       +1     
- Misses          4        8       +4     
Impacted Files Coverage Δ
lib/handler/redirect.js 96.87% <0.00%> (-1.38%) ⬇️
lib/client.js 99.61% <0.00%> (-0.39%) ⬇️
lib/agent.js 98.03% <0.00%> (-0.04%) ⬇️
lib/pool.js 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 104be9c...ba9f8c6. Read the comment docs.

Copy link
Member

@ronag ronag left a comment

Choose a reason for hiding this comment

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

LGTM with one comment

Co-authored-by: Robert Nagy <ronagy@icloud.com>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@ronag ronag merged commit 91d87ac into nodejs:main Jul 19, 2021
@RaisinTen RaisinTen mentioned this pull request Feb 6, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
* test: client certificate usage

* docs: add best practices section for using client certificates

* Update docs/best-practices/client-certificate.md

Co-authored-by: Robert Nagy <ronagy@icloud.com>

* test: pass connection options through `connect`

* Update docs/best-practices/client-certificate.md

Co-authored-by: Robert Nagy <ronagy@icloud.com>

Co-authored-by: Robert Nagy <ronagy@icloud.com>
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

4 participants