How to handle not-understood constraints #1054
Replies: 1 comment 7 replies
-
First of all, a Second, is it possible that the JSON excerpt for Third, at this level (catalog, serializing offers), we don't do any semantic policy interpretation. The provider merely serializes the contract policy and sends it over to the consumer, therefor the term "not-understood" is wrong, because no-one is attempting to understand anything here. The only thing iffy here is that the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is about the expected (default) behavior, how the connector should handle not-understood
Constraints
.At the time of writing not-understood constraints are ignored by the EDC connector.
For example assuming this is the
Asset
andContractDefinition
on data provider side.Asset
ConstractDefinition
Then the offer catalog of a random consuming connector looks like this:
I assume are are at least two cases of constraint validation, that probably need to be handled differently.
Constraints
that are part of the access policyConstraints
that are part of the contract policyFor the first case I assume nothing should be generated, if an access
Constraint
is not understood. Obviously theAsset
is protected in some way and should not be accessible for everyone. As its better to be safe than sorry I suggest creating no offers in this case.In the second case it is probably is ok for the connector to ignore unknown constraints, as they might describe complex usage control terms and are enforced by another system. But maybe some kind of configurable behavior is also an improvement, too.
In conclusion I would say the EDC should not create
ContractOffers
if the access policy contains a not-understoodAccess-Constraints
.If there are use cases/requirements for
Contract-Constraints
it might be necessary to change here something, too. But I would wait for these requirements before updating the code.Dominik Pinsel [email protected], Daimler TSS GmbH, legal info/Impressum
Beta Was this translation helpful? Give feedback.
All reactions