dragonflyoss / Dragonfly2

Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
https://d7y.io
Apache License 2.0
2.3k stars 293 forks source link

feat: add self-signed certs for mTLS #3583

Closed gaius-qi closed 1 month ago

gaius-qi commented 1 month ago

Description

Related Issue

Motivation and Context

Screenshots (if appropriate)

Types of changes

Checklist

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 36.31%. Comparing base (5ab6450) to head (84ac6b3). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
scheduler/resource/standard/seed_peer.go 50.00% 1 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583/graphs/tree.svg?width=650&height=150&src=pr&token=PUICJYSAT7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) ```diff @@ Coverage Diff @@ ## main #3583 +/- ## ========================================== - Coverage 36.44% 36.31% -0.14% ========================================== Files 335 335 Lines 31129 31112 -17 ========================================== - Hits 11346 11299 -47 - Misses 18951 18974 +23 - Partials 832 839 +7 ``` | [Flag](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | `36.31% <88.88%> (-0.14%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [scheduler/config/config.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?src=pr&el=tree&filepath=scheduler%2Fconfig%2Fconfig.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL2NvbmZpZy9jb25maWcuZ28=) | `87.57% <ø> (-0.98%)` | :arrow_down: | | [scheduler/resource/standard/peer.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?src=pr&el=tree&filepath=scheduler%2Fresource%2Fstandard%2Fpeer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3N0YW5kYXJkL3BlZXIuZ28=) | `71.84% <100.00%> (-0.14%)` | :arrow_down: | | [scheduler/resource/standard/resource.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?src=pr&el=tree&filepath=scheduler%2Fresource%2Fstandard%2Fresource.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3N0YW5kYXJkL3Jlc291cmNlLmdv) | `63.63% <100.00%> (ø)` | | | [scheduler/service/service\_v1.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?src=pr&el=tree&filepath=scheduler%2Fservice%2Fservice_v1.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3NlcnZpY2Uvc2VydmljZV92MS5nbw==) | `79.28% <100.00%> (ø)` | | | [scheduler/service/service\_v2.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?src=pr&el=tree&filepath=scheduler%2Fservice%2Fservice_v2.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3NlcnZpY2Uvc2VydmljZV92Mi5nbw==) | `78.75% <100.00%> (-0.13%)` | :arrow_down: | | [scheduler/resource/standard/seed\_peer.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583?src=pr&el=tree&filepath=scheduler%2Fresource%2Fstandard%2Fseed_peer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3N0YW5kYXJkL3NlZWRfcGVlci5nbw==) | `25.00% <50.00%> (-0.69%)` | :arrow_down: | ... and [5 files with indirect coverage changes](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3583/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)