Replies: 1 comment 3 replies
-
We need to be careful here of DDOS attacks. I think this is the correct behavior - EDC does not persist rejected agreements. We may want to influence the error sent back. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that currently the policy evaluation of a negotiation on the provider side is done in the
ContractNegotiationProtocolService.notifyRequested
, and the result is influencing the response sent to the consumer (ACK or ERROR).If the policy doesn't evaluate correctly, the negotiation doesn't get created at all on the provider side, but to me it would look more correct to have the negotiation in
REQUESTED
state, then asynchronously the policy can be evaluated by theContractNegotiationManager
and the negotiation could transition toAGREED
or, eventually,TERMINATED
.It would be a little change but that will open the door for a policy-driven manual negotiation approval (now it can be done by setting the
PendingGuard
, but to me it looks something that thePolicyEngine
should have control on).wdyt?
Beta Was this translation helpful? Give feedback.
All reactions