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

refactor: moved security checks in protocol service layer #3668

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Nov 29, 2023

What this PR changes/adds

Implements the refactor outlined in DR #3665

Why it does that

Decoupling the net protocol from the security checksm which are now delegated to the protocol service layer.

This also will allow use to attach contextual information to the verification process.

Further notes

In this PR since we are pushing here the invocation of the IdentityService we don't know the audience here/ The audience removal will be tackle in subsequent PRs.

IdentityService that relies on this parameter would not work for the time being.

Linked Issue(s)

Closes #3667

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@wolf4ood wolf4ood self-assigned this Nov 29, 2023
@wolf4ood wolf4ood added the refactoring Cleaning up code and dependencies label Nov 29, 2023
@wolf4ood wolf4ood force-pushed the refactor/3667_protocol_services branch 2 times, most recently from 987a239 to a55deff Compare November 29, 2023 10:28
@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2023

Codecov Report

Attention: 73 lines in your changes are missing coverage. Please review.

Comparison is base (ad100a6) 71.68% compared to head (87a1ffd) 4.46%.
Report is 1 commits behind head on main.

❗ Current head 87a1ffd differs from pull request most recent head 3d36175. Consider uploading reports for the commit 3d36175 to get more accurate results

Files Patch % Lines
...iation/ContractNegotiationProtocolServiceImpl.java 0.00% 24 Missing ⚠️
...ferprocess/TransferProcessProtocolServiceImpl.java 0.00% 17 Missing ⚠️
...or/service/catalog/CatalogProtocolServiceImpl.java 0.00% 16 Missing ⚠️
...onnector/service/protocol/BaseProtocolService.java 0.00% 9 Missing ⚠️
...dc/protocol/dsp/message/DspRequestHandlerImpl.java 0.00% 4 Missing ⚠️
...nnector/service/ControlPlaneServicesExtension.java 0.00% 1 Missing ⚠️
...eclipse/edc/protocol/dsp/DspHttpCoreExtension.java 0.00% 1 Missing ⚠️
...on/api/controller/DspNegotiationApiController.java 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #3668       +/-   ##
============================================
- Coverage     71.68%   4.46%   -67.22%     
- Complexity        0     236      +236     
============================================
  Files           916     917        +1     
  Lines         18415   18413        -2     
  Branches       1043    1041        -2     
============================================
- Hits          13200     823    -12377     
- Misses         4757   17573    +12816     
+ Partials        458      17      -441     

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

@wolf4ood wolf4ood force-pushed the refactor/3667_protocol_services branch from 87a1ffd to 3d36175 Compare November 29, 2023 16:54
Copy link
Member

@ndr-brt ndr-brt left a comment

Choose a reason for hiding this comment

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

🚀

@wolf4ood wolf4ood merged commit c6fb970 into eclipse-edc:main Nov 30, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protocol Service refactoring
4 participants