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

feat: add Authorization to the Public API (v2) #3966

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Mar 6, 2024

What this PR changes/adds

This PR adds a new PublicAPI Controller (available under the '/v2' path), that uses the DataPlaneAuthorizationService instead of the legacy
ConsumerPullDataPlaneProxyResolver.

Since the new public API is in its separate module, there is no breaking change and both APIs can be operated in parallel.

Why it does that

DataPlaneSignaling adoption

Further notes

  • The AccessTokenData object now has an additionalProperties field. Thus, the SQL module and tests were adapted.
  • adds deprecation warnings to the now-old DataPlanePublicApiController

Linked Issue(s)

Closes #3958

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

@paullatzelsperger paullatzelsperger added this to the Milestone 14 milestone Mar 6, 2024
@paullatzelsperger paullatzelsperger added enhancement New feature or request api Feature related to the (REST) api dpf Feature related to the Data Plane Framework labels Mar 6, 2024
@paullatzelsperger paullatzelsperger marked this pull request as ready for review March 6, 2024 11:41
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 73.88060% with 35 lines in your changes are missing coverage. Please review.

Project coverage is 73.32%. Comparing base (7f20ba5) to head (3e8e9cc).
Report is 122 commits behind head on main.

Files Patch % Lines
...tor/dataplane/api/DataPlanePublicApiExtension.java 0.00% 15 Missing ⚠️
...api/controller/DataPlanePublicApiV2Controller.java 83.67% 8 Missing ⚠️
...api/controller/ContainerRequestContextApiImpl.java 80.00% 2 Missing and 4 partials ⚠️
...tor/dataplane/api/DataPlanePublicApiExtension.java 0.00% 3 Missing ⚠️
...e/edc/connector/dataplane/spi/AccessTokenData.java 0.00% 3 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3966      +/-   ##
==========================================
+ Coverage   71.74%   73.32%   +1.57%     
==========================================
  Files         919      963      +44     
  Lines       18457    19389     +932     
  Branches     1037     1094      +57     
==========================================
+ Hits        13242    14217     +975     
+ Misses       4756     4708      -48     
- Partials      459      464       +5     

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

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.

🚀

@paullatzelsperger paullatzelsperger merged commit 159c01a into eclipse-edc:main Mar 6, 2024
17 checks passed
@paullatzelsperger paullatzelsperger deleted the feat/3958_add_authorization_to_public_api branch March 6, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Feature related to the (REST) api dpf Feature related to the Data Plane Framework enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DPS: Add Authorization to the Public API
4 participants