Replies: 3 comments 3 replies
-
I'm not 100% sure what the sample policy module is, but if its the policy-model extension, then it can be moved there. We created the CommonActionTypes to avoid magic strings in the :samples:demo-contract-framework extension, that creates policies, and the :data:protocols:ids:ids-core extension, that maps this policy to IDS. |
Beta Was this translation helpful? Give feedback.
-
Does the core need to understand what "ALL" is? That seems like an implementation detail of the framework implementation. Let's discuss. |
Beta Was this translation helpful? Give feedback.
-
I don't think the core should understand anything about the specifics of the contract (it's an engine, not a business layer). It simply needs to transport the contract representation higher up in the extension hierarchy where policies associated with the contract will be evaluated. The policy author can construct a policy that always evaluates to "enabled true", that gets moved by the core up the hierarchy, and the policy engine evaluates it. There could be multiple ways of expressing an always true outcome in policy; the core doesn't need to worry about it since the policy evaluator will take care of that. I don't see how this is introducing hidden dependencies. I may not be understanding the issue, so can you lay out a concrete example? I may just be misunderstanding the issue. |
Beta Was this translation helpful? Give feedback.
-
@DominikPinsel @denisneuling Can this be moved to the sample policy module? For example, would we expect all runtimes to support a set of policies?
Typing can be useful but why not at a higher level such as in the IDS modules?
If this should be this low in the hierarchy, shouldn't it go into the policy module then?
Beta Was this translation helpful? Give feedback.
All reactions