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

fix: only return dataset with valid offers #4490

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

ronjaquensel
Copy link
Contributor

What this PR changes/adds

Adds a check to the DatasetResolverImpl to only return a dataset if it has an offer attached.

Why it does that

To avoid exposing sensitive information (asset metadata) if the requesting participant is not authorized to see it.

Further notes

Also adds a check for query and getById to immediately return if no valid contract definitions exist for the requesting participant, as then no offers would be returned anyway, so it doesn't make sense to query and evaluate the assets in that case.

@ronjaquensel ronjaquensel added the bug Something isn't working label Sep 25, 2024
@ronjaquensel ronjaquensel self-assigned this Sep 25, 2024
@ndr-brt ndr-brt merged commit d379052 into eclipse-edc:main Sep 25, 2024
21 checks passed
ndr-brt pushed a commit to Think-iT-Labs/edc-connector that referenced this pull request Sep 25, 2024
* fix: only return dataset with valid offers

* test: add additional test
ndr-brt added a commit that referenced this pull request Sep 25, 2024
* fix: only return dataset with valid offers (#4490)

* fix: only return dataset with valid offers

* test: add additional test

* dependencies

---------

Co-authored-by: Ronja Quensel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants