-
Notifications
You must be signed in to change notification settings - Fork 8
Implement code header for interactions through use of EDC #723
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
26 commits
Select commit
Hold shift + click to select a range
9caac48
Adds Authorization header to remote messages & sets up Docker example…
Sophietje 6e14338
Adds Authorization header to all messages, skip authorization for met…
Sophietje dcf3424
Added working (manual) example with edc integration
Sophietje 2e77a95
Small improvements to the edc example.
bnouwt a3ab594
Clean up log statements & avoid HTML response printed in logs
Sophietje d878f2e
Merge branch 'master' into add-authorization-header
bnouwt 1557f5a
Works until starting data transfer.
bnouwt de194b9
Got the edc-example working with automatic contract negotiations.
bnouwt 5ee3632
Remove quick 'n dirty path fix.
bnouwt 4dc87c6
Also remove environment variable from RemoteKerConnection prop file.
bnouwt 133fcc0
Made authorization optional and extended documentation of the EDC exa…
Sophietje 28ddf93
Refer to edc-example directory as examples/edc-example in README
Sophietje de64174
Fix merge conflicts from master
DaviddeBest-TNO ae3f1b8
Merge branch 'master' into add-authorization-header
DaviddeBest-TNO e609727
Merge branch 'master' into add-authorization-header
DaviddeBest-TNO 5f4af37
Add authorization header to remote ker request if EDC service is set
DaviddeBest-TNO a6a03ea
Change tests to use reasonerLevel instead of reasonerEnabled
DaviddeBest-TNO 573232e
Add TKE EDC manager library code to this repository, without Spring A…
DaviddeBest-TNO 16f0883
Add EDC config parameters to smart connector config and fix edc examp…
DaviddeBest-TNO 4fbdbb9
Remove tke-edc-manager as a dependency
DaviddeBest-TNO 2fcc4d2
Fix dependencies from tke-edc-manager
DaviddeBest-TNO c74b6d1
Fix for comments on merge request
DaviddeBest-TNO 1eaf6e8
Make sure edcConnectionUrl only shows up when non-null.
bnouwt 3c54f3c
Merge branch 'master' into add-authorization-header
DaviddeBest-TNO b139da0
Undo incorrect merge conflict solve'
DaviddeBest-TNO b8fae42
Undo another incorrect merge conflict solve'
DaviddeBest-TNO 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
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
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,90 @@ | ||
| # TKE-EDC Example | ||
| This example uses EDC-IDS Connectors for communication between two Knowledge Engine Runtimes (KERs). | ||
| All messages that are sent contain an authentication code. | ||
| If a message is received, the authentication code is validated unless it is a meta Knowledge Interaction. | ||
|
|
||
| ## Introduction to the Knowledge Engine | ||
| The Knowledge Engine is a system for seamlessly connecting data sources. | ||
| Each data source, which can provide and/or consume information, is also called a Knowledge Base. | ||
| Multiple Knowledge Bases that communicate together form a network. | ||
| To communicate with such a network, each Knowledge Base uses a component called a Smart Connector. | ||
| This Smart Connector takes care of all communication between a Knowledge Base and others in the network. | ||
| The Smart Connectors are part of the Knowledge Engine solution and should not be confused with the EDC-IDS Connectors. | ||
|
|
||
|
|
||
|  | ||
|
|
||
| Within a network, each Knowledge Base announces what information it wants to _receive_, and what information it can _provide_ through its Smart Connector. | ||
| The Knowledge Engine will determine who to contact for each information request. | ||
|
|
||
| There are 4 types of information requests, also called Knowledge Interactions, in the Knowledge Engine: Ask, Answer, Post, React. | ||
| Ask is to request information. An answer provides an Answer to a request for information, i.e. Ask. | ||
| Post is to announce information. | ||
| A React gives you the ability to subscribe to information and thus react to information that is announced through a Post. | ||
|
|
||
| These Knowledge Interactions are first registered at the Smart Connector. | ||
| After they have been registered, they can be executed. | ||
|
|
||
| For more information on the Knowledge Engine, check out the [documentation](https://docs.knowledge-engine.eu/). | ||
|
|
||
| ## About the Integration with EDC-IDS | ||
| The current integration between the Knowledge Engine and EDC-IDS focuses on the authentication of messages. | ||
| All messages that are sent contain an authentication code. | ||
| This authentication code is validated whenever the message is received. | ||
| This way we can be sure that the message was sent by the correct party, thus it establishes trust within the network. | ||
|
|
||
| We currently use the standard EDC-IDS Connector without any modifications. | ||
| We use the Connector to establish and check the identity of all parties in the network. | ||
| The communication between KERs is still direct, meaning that messages that are sent do not go through the Connector. | ||
|
|
||
| The authentication tokens are valid for a limited amount of time. | ||
| You can set the duration of validity of authentication tokens in the EDC Connector properties file (`edc.transfer.proxy.token.validity.seconds`). | ||
| While tokens can expire in the current implementation, there is not yet a mechanism to renew them. | ||
| That's why we currently advise you to set it to a high number. | ||
|
|
||
|
|
||
| ## Running the TKE-EDC example | ||
| This example uses 3 knowledge bases as depicted below. | ||
|
|
||
|  | ||
|
|
||
| One knowledge base asks for information and the other two provide an answer to the question. | ||
|
|
||
| ### Executing the example | ||
| Execute the following steps to run the example: | ||
| 1. In this project, execute a `mvn clean install`. | ||
| 2. In the `knowledge-directory` directory in this project, execute `docker build . -t testkd:1.3.3-SNAPSHOT`. | ||
| 3. In the `smart-connector-rest-dist` directory in this project, execute `docker build . -t testsc:1.3.3-SNAPSHOT`. | ||
| 4. In the `examples/edc-example` directory in this project, execute `docker compose build`. | ||
| 5. In the `examples/edc-example` directory in this project, execute `docker compose up -d tke-edc-one tke-edc-two tke-edc-three`. This starts three EDC-IDS Connectors. | ||
| 6. Wait around 10 seconds to give the EDC Connectors time to finish setting up. Then, execute `docker compose up -d` to start three KERs, three linked Knowledge Bases and a Knowledge Directory. | ||
|
|
||
| You can inspect the logs with `docker compose logs -f`. | ||
| After a moment (+-30 seconds), the logs will stabilise when the connectors have finished initiating the various data flows. | ||
| You can then see that one KER (`runtime-1`) asks for information, a second KER (`runtime-2`) answers with `http://example.org/Math, http://example.org/Science` and the third (`runtime-3`) answers with `http://example.org/Magazines, http://example.org/Books`. | ||
|
|
||
| To stop the example, execute `docker compose down`. | ||
|
|
||
| ## Adding another participant to the network | ||
| For each additional KER with an EDC-IDS Connector, we need the following files in the `examples/edc-example` directory: | ||
| - `connector/configuration/ker-configuration.properties` contains settings for the EDC-IDS Connector | ||
| - `connector/configuration/ker-vault.properties` contains a public key | ||
|
|
||
| The `docker-compose.yml` in `examples/edc-example/` should also be modified to include: | ||
| - An additional KER (currently named `runtime-1`, `runtime-2`, ...) | ||
| - The `image` setting refers to the image build in the execution steps of this document. | ||
| - The `depends_on` setting refers to the Docker component for the EDC-IDS Connector | ||
| - The `KE_RUNTIME_EXPOSED_URL` is a unique URL for the new KER. | ||
| - The EDC related environment variables are: | ||
| - `KE_RUNTIME_USE_EDC` -> Turn EDC functionality on or off. | ||
| - `KE_EDC_PROTOCOL_URL` -> URL of the protocal API of the associated EDC-IDS connector. | ||
| - `KE_EDC_MANAGEMENT_URL` -> URL of the management API of the associated EDC-IDS connector. | ||
| - `KE_EDC_DATAPLANE_CONTROL_URL` -> URL of the dataplane control API of the associated EDC-IDS connector. | ||
| - `KE_EDC_DATAPLANE_PUBLIC_URL` -> URL of the dataplane public API of the associated EDC-IDS connector. | ||
| - `KE_EDC_TOKEN_VALIDATION_ENDPOINT` -> URL of the token validation endpoint of the associated EDC-IDS connector. | ||
| - An additional EDC-IDS Connector (currently named `tke-edc-one`, `tke-edc-two`, ...) | ||
| - Requires 4 ports to be forwarded | ||
| - The `command` used to start this connector refers to the previously mentioned configuration files and thus the names of those files should be modified if you copy the command from another EDC-IDS Connector. | ||
| - The `hostname` is used in the properties files to refer to this entity | ||
| - An additional knowledge base (`kb1`, `kb2`, ...) | ||
| - The `KE_URL` refers to the `KE_RUNTIME_EXPOSED_URL` of the KER Docker component (`runtime-1`, `runtime-2`, ...) | ||
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,21 @@ | ||
| -----BEGIN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Urdor0PyElhkULjkOXUrSIsdBrfWrwLTkelE8NK3tb5ZG8KPzD9Jy | ||
| +NwEPPr9d+iHkUkM7EFWw/cl56wka9ryBb97RI7DqbO6/j6OXHMk4GByxKv7DSIR | ||
| IvF9/Dw20qytajtaHV0pluFcOBuFc0NfiDvCaQlbTsfjzbc6UmZWbOi9YOJl3VQ/ | ||
| g3h+15GuzbsSzOCOEYOT | ||
| -----END CERTIFICATE----- |
Binary file not shown.
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,28 @@ | ||
| -----BEGIN PRIVATE KEY----- | ||
| MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDBl6XaJnXTL+6D | ||
| Wip3aBhU+MzmY4d1V9hbTm1tiZ3gE0VbUrvGO3LoYaxpPv6zFmsg3uJv6JxVAde7 | ||
| EddidN0ITHB9cQNdAfdUJ5njmsGSPbdQuOQTHw0aG7/QvTI/nsvfEE6e0lbV/0e7 | ||
| DHacZT/+OztBH1RwkG2ymM94Hf8HI6x7q6yfRTAZOqeOMrPCYTcluAgE9NskoPvj | ||
| X5qASakBtXISKIsOU84N0/2HDN3WEGMXvoHUQu6vrij6BwiwxKaw1AKwWENKoga7 | ||
| 75bPXN3M+JTSaIKE7dZbKzvx0Zi0h5X+bxc3BJi3Z/CsUBCzE+Y0SFetOiYmyl/2 | ||
| YmnneYoVAgMBAAECggEBAJHXiN6bctAyn+DcoHlsNkhtVw+Jk5bXIutGXjHTJtiU | ||
| K//siAGC78IZMyXmi0KndPVCdBwShROVW8xWWIiXuZxy2Zvm872xqX4Ah3JsN7/Q | ||
| NrXdVBUDo38zwIGkxqIfIz9crZ4An+J/eq5zaTfRHzCLtswMqjRS2hFeBY5cKrBY | ||
| 4bkSDGTP/c5cP7xS/UwaiTR2Ptd41f4zTyd4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6a3 | ||
| Z3pC+KTdoHSKeA2FyAGnSUpD | ||
| -----END PRIVATE KEY----- |
25 changes: 25 additions & 0 deletions
25
examples/edc-example/connector/configuration/consumer-configuration.properties
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,25 @@ | ||
| edc.participant.id=http://runtime-2:8081 | ||
| # communication between the docker containers using the hostname of the container | ||
| edc.dsp.callback.address=http://two:29194/protocol | ||
| web.http.port=29191 | ||
| web.http.path=/api | ||
| web.http.management.port=29193 | ||
| web.http.management.path=/management | ||
| web.http.protocol.port=29194 | ||
| web.http.protocol.path=/protocol | ||
|
|
||
| # use: host.docker.internal if the docker container needs access localhost | ||
| edc.receiver.http.endpoint=http://runtime-2:8081/token | ||
| edc.public.key.alias=public-key | ||
| edc.transfer.dataplane.token.signer.privatekey.alias=1 | ||
| edc.transfer.proxy.token.signer.privatekey.alias=1 | ||
| edc.transfer.proxy.token.verifier.publickey.alias=public-key | ||
| web.http.public.port=29291 | ||
| web.http.public.path=/public | ||
| web.http.control.port=29192 | ||
| web.http.control.path=/control | ||
| edc.dataplane.token.validation.endpoint=http://two:29192/control/token | ||
|
|
||
| # authCode token expiration in seconds | ||
| edc.transfer.proxy.token.validity.seconds=999999 | ||
| #edc.transfer.proxy.token.validity.seconds=120 |
1 change: 1 addition & 0 deletions
1
examples/edc-example/connector/configuration/consumer-vault.properties
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 @@ | ||
| public-key=-----BEGIN CERTIFICATE-----\r\nMIIDazCCAlOgAwIBAgIUZ3/sZXYzW4PjmOXKrZn6WBmUJ+4wDQYJKoZIhvcNAQEL\r\nBQAwRTELMAkGA1U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\nIvF9/Dw20qytajtaHV0pluFcOBuFc0NfiDvCaQlbTsfjzbc6UmZWbOi9YOJl3VQ/\r\ng3h+15GuzbsSzOCOEYOT\r\n-----END CERTIFICATE----- |
25 changes: 25 additions & 0 deletions
25
examples/edc-example/connector/configuration/provider-configuration.properties
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,25 @@ | ||
| edc.participant.id=http://runtime-1:8081 | ||
| # communication between the docker containers using the hostname of the container | ||
| edc.dsp.callback.address=http://one:19194/protocol | ||
| web.http.port=19191 | ||
| web.http.path=/api | ||
| web.http.management.port=19193 | ||
| web.http.management.path=/management | ||
| web.http.protocol.port=19194 | ||
| web.http.protocol.path=/protocol | ||
|
|
||
| # use: host.docker.internal if the docker container needs access localhost | ||
| edc.receiver.http.endpoint=http://runtime-1:8081/token | ||
| edc.public.key.alias=public-key | ||
| edc.transfer.dataplane.token.signer.privatekey.alias=1 | ||
| edc.transfer.proxy.token.signer.privatekey.alias=1 | ||
| edc.transfer.proxy.token.verifier.publickey.alias=public-key | ||
| web.http.public.port=19291 | ||
| web.http.public.path=/public | ||
| web.http.control.port=19192 | ||
| web.http.control.path=/control | ||
| edc.dataplane.token.validation.endpoint=http://one:19192/control/token | ||
|
|
||
| # authCode token expiration in seconds | ||
| edc.transfer.proxy.token.validity.seconds=999999 | ||
| #edc.transfer.proxy.token.validity.seconds=120 |
1 change: 1 addition & 0 deletions
1
examples/edc-example/connector/configuration/provider-vault.properties
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 @@ | ||
| public-key=-----BEGIN CERTIFICATE-----\r\nMIIDazCCAlOgAwIBAgIUZ3/sZXYzW4PjmO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UkM7EFWw/cl56wka9ryBb97RI7DqbO6/j6OXHMk4GByxKv7DSIR\r\nIvF9/Dw20qytajtaHV0pluFcOBuFc0NfiDvCaQlbTsfjzbc6UmZWbOi9YOJl3VQ/\r\ng3h+15GuzbsSzOCOEYOT\r\n-----END CERTIFICATE----- |
25 changes: 25 additions & 0 deletions
25
examples/edc-example/connector/configuration/three-configuration.properties
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,25 @@ | ||
| edc.participant.id=http://runtime-3:8081 | ||
| # communication between the docker containers using the hostname of the container | ||
| edc.dsp.callback.address=http://three:39194/protocol | ||
| web.http.port=39191 | ||
| web.http.path=/api | ||
| web.http.management.port=39193 | ||
| web.http.management.path=/management | ||
| web.http.protocol.port=39194 | ||
| web.http.protocol.path=/protocol | ||
|
|
||
| # use: host.docker.internal if the docker container needs access localhost | ||
| edc.receiver.http.endpoint=http://runtime-3:8081/token | ||
| edc.public.key.alias=public-key | ||
| edc.transfer.dataplane.token.signer.privatekey.alias=1 | ||
| edc.transfer.proxy.token.signer.privatekey.alias=1 | ||
| edc.transfer.proxy.token.verifier.publickey.alias=public-key | ||
| web.http.public.port=39291 | ||
| web.http.public.path=/public | ||
| web.http.control.port=39192 | ||
| web.http.control.path=/control | ||
| edc.dataplane.token.validation.endpoint=http://three:39192/control/token | ||
|
|
||
| # authCode token expiration in seconds | ||
| edc.transfer.proxy.token.validity.seconds=999999 | ||
|
|
1 change: 1 addition & 0 deletions
1
examples/edc-example/connector/configuration/three-vault.properties
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 @@ | ||
| public-key=-----BEGIN CERTIFICATE-----\r\nMIIDazCCAl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KPzD9Jy\r\n+NwEPPr9d+iHkUkM7EFWw/cl56wka9ryBb97RI7DqbO6/j6OXHMk4GByxKv7DSIR\r\nIvF9/Dw20qytajtaHV0pluFcOBuFc0NfiDvCaQlbTsfjzbc6UmZWbOi9YOJl3VQ/\r\ng3h+15GuzbsSzOCOEYOT\r\n-----END CERTIFICATE----- |
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include configuration environment variables that used to be in
edc.properties.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done