-
Notifications
You must be signed in to change notification settings - Fork 266
docs: dataspace context DR #5007
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
docs/developer/decision-records/2025-05-28-dataspace-profile-context/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Dataspace Profile Context | ||
|
||
## Decision | ||
|
||
We'll introduce the concept of "Dataspace profile context", which will enable a connector runtime to serve requests for multiple | ||
dataspaces with potentially different protocol versions, authentication, vocabulary and policies. | ||
|
||
## Rationale | ||
|
||
At the moment the EDC connector only supports multiple protocol versions at the same time, by having pluggable | ||
modules. | ||
|
||
The Dataspace Profile Ccontext is an higher-level concept that defines a set of: | ||
- wire protocol, version and binding | ||
- authentication protocol | ||
- policy functions | ||
- vocabulary (jsonld context) | ||
- scopes | ||
- identifier resolution | ||
|
||
## Approach | ||
|
||
A `DataspaceProfileContextRegistry` service will be in place, on which a `DataspaceProfileContext` can be registered. | ||
|
||
By default, there will be an hardcoded context that uses a particular combination of DSP, DSP, vocabulary and so on; such | ||
version will be useful for testing and samples, but for a production use the adopters must explicitly define and register | ||
the expected dataspace contexts by extension. | ||
|
||
So, for example, if a connector is supposed to support multiple DSP version, there will be the need to explicitly register | ||
one profile for every version, same will happen with multiple DCP version and so on. | ||
|
||
Every profile will be represented by a different protocol endpoint, and it will be advertised in the `.well-known/dspace.version` | ||
endpoint. | ||
|
||
### Additional Notes | ||
To be backward compatible, the `profile` information will be passed to management-api and stored as `protocol`, so out of | ||
the box the default profile name will be the DSP version. In the future this could be adapted and the `protocol` attribute/field | ||
could be renamed to `profile`, but there's no urgency to do that. | ||
|
||
To permit certain assets to be published only on certain profiles the `assetsSelector` field of the `ContractDefinition` | ||
can be used, no plans to have a strict correlation between Assets and Dataspace Profile Contexts at the moment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.