Skip to content

Commit

Permalink
docs(mgmt): document additional headers
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoweiss committed Dec 20, 2024
1 parent 24e2abe commit 22f2ace
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ maven/mavencentral/org.glassfish/jakarta.json/2.0.1, EPL-2.0 OR GPL-2.0-only wit
maven/mavencentral/org.hamcrest/hamcrest-core/1.3, BSD-2-Clause, approved, CQ11429
maven/mavencentral/org.hamcrest/hamcrest-core/2.2, BSD-3-Clause, approved, clearlydefined
maven/mavencentral/org.hamcrest/hamcrest/2.1, BSD-3-Clause, approved, clearlydefined
maven/mavencentral/org.hamcrest/hamcrest/2.2, None, restricted, #17677
maven/mavencentral/org.hamcrest/hamcrest/2.2, BSD-3-Clause, approved, #17677
maven/mavencentral/org.hdrhistogram/HdrHistogram/2.2.2, BSD-2-Clause AND CC0-1.0 AND CC0-1.0, approved, #14828
maven/mavencentral/org.jacoco/org.jacoco.agent/0.8.12, EPL-2.0, approved, CQ23285
maven/mavencentral/org.jacoco/org.jacoco.ant/0.8.12, EPL-2.0, approved, #1068
Expand Down
16 changes: 10 additions & 6 deletions docs/usage/management-api-walkthrough/01_assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ However, there it won't be styled as an `edc:asset` but as a `dcat:DataSet`. Add
add `properties` and `privateProperties` to the Asset. The former are exposed in the catalog to potential Data
Consumers.
Private properties, however, can only be seen by the Data Provider (for example via the /v3/assets/request endpoint)
along with the properties. There are conventions in the Catena-X Dataspace how Data Providers should set properties. This enables
Data Consumers to decide what Data Offers they want to negotiate for. This matters especially when the Data Consumer has to add URL-segements or
along with the properties. There are conventions in the Catena-X Dataspace how Data Providers should set properties.
This enables
Data Consumers to decide what Data Offers they want to negotiate for. This matters especially when the Data Consumer has
to add URL-segements or
HTTP bodies to its requests. The value entered as the Asset's `@id` will automatically be added as a redundant `edc:id`
property.

Expand Down Expand Up @@ -83,10 +85,12 @@ request will be manipulated by the Data Plane - to what degree depends on the co
"oauth2:clientSecretKey": "{{ _.sec_name_vault }}",
"proxyQueryParams": "true",
"proxyPath": "false",
"proxyMethod": "true"
"proxyMethod": "true",
"header:customHeaderKey": "custom-header-value"
}
}
```

The following table shall explain a selection of the parameters. There's a whole lot more in the source code but these
have proven to enable an integration that's quite complete from a functional view.

Expand All @@ -104,13 +108,13 @@ have proven to enable an integration that's quite complete from a functional vie
| `oauth2:tokenUrl` | If the backend is secured by an oauth2 authentication mechanism, the Data Plane will request an access token at this URL. | no | null |
| `oauth2:clientId` | This is the clientId of the (technical) user that the credential was created for by the backend application. | no | null |
| `oauth2:clientSecretKey` | The Data Provider must store his backend-issued client-secret in a Vault. The key under which the Data Plane can retrieve the secret's value is configured in this field. | no | null |
| `header:customHeaderKey` | If the Data Provider wants to attach a static header to the request that the Provider Data Plane forwards to the backend, this can be achieved using the header name prefixed with `header:` and the constant value as the value. | no | null |

For all URLs that are registered (like the `tokenUrl` and the `baseUrl`) it is advisable to set them to a domain
For all URLs that are registered (like the `tokenUrl` and the `baseUrl`) it is advisable to set them to a domain
controlled by the Data Provider himself. If the service is hosted by a Business Application Provider (like in a SaaS
scenario), that service should be redirected to through a proxy. That way, in a migration scenario, the existing Assets
scenario), that service should be redirected to through a proxy. That way, in a migration scenario, the existing Assets
can be preserved by reconfiguring the proxy to pointing to the new service.


## Notice

This work is licensed under the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode).
Expand Down

0 comments on commit 22f2ace

Please sign in to comment.