-
Notifications
You must be signed in to change notification settings - Fork 769
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
chore: adding FAQs for multi-engine #3761
Conversation
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
|
||
<details> | ||
|
||
<summary>Do all engines in a ConstraintTemplate are evaluated? Is there a fallback among engines?</summary> |
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.
<summary>Do all engines in a ConstraintTemplate are evaluated? Is there a fallback among engines?</summary> | |
<summary>Do all engines in a ConstraintTemplate get evaluated? Is there a fallback among engines?</summary> |
<details> | ||
|
||
<summary>Do all engines in a ConstraintTemplate are evaluated? Is there a fallback among engines?</summary> | ||
Only one engine is evaluated for each ConstraintTemplate. K8sNativeValidation engine hold higher priority than Rego engine. There is no fallback mechanism between engines, hence a logical/syntactical error in policy logic is treated as violation depending on the enforcement action set of the Constraints created for ConstraintTemplate. |
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.
Only one engine is evaluated for each ConstraintTemplate. K8sNativeValidation engine hold higher priority than Rego engine. There is no fallback mechanism between engines, hence a logical/syntactical error in policy logic is treated as violation depending on the enforcement action set of the Constraints created for ConstraintTemplate. | |
Only one engine is evaluated for each ConstraintTemplate. `K8sNativeValidation` engine holds a higher priority than the `Rego` engine. There is no fallback mechanism between engines, hence a logical/syntactical error in the policy logic is treated as violation depending on the enforcement action specified in the Constraint. |
|
||
<details> | ||
|
||
<summary>If I have a template with Rego and CEL, which policy logic will be used in evaluating resources?</summary> |
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.
<summary>If I have a template with Rego and CEL, which policy logic will be used in evaluating resources?</summary> | |
<summary>If I have a template with Rego and CEL, which policy engine will be used when evaluating resources?</summary> |
|
||
<summary>If I have a template with Rego and CEL, which policy logic will be used in evaluating resources?</summary> | ||
|
||
K8sNativeValidation engine hold higher priority than Rego engine, so with a ConstraintTemplate that has both Rego and CEL. Policy logic written in CEL will get evaluated. |
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.
K8sNativeValidation engine hold higher priority than Rego engine, so with a ConstraintTemplate that has both Rego and CEL. Policy logic written in CEL will get evaluated. | |
K8sNativeValidation engine holds a higher priority than the Rego engine, so with a ConstraintTemplate that has both Rego and CEL. Policy logic written in CEL will get evaluated by the K8sNativeValidation engine. |
<details> | ||
<summary>Can I change the priority of engines per ConstraintTemplate? | ||
</summary> | ||
Engine priority cannot be set per ConstraintTemplate. |
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.
Engine priority cannot be set per ConstraintTemplate. | |
No, engine priority cannot be modified. |
Removing "per ConstraintTemplate" since it makes it look like it can be done but just not per CT.
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.
Makes sense
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
<details> | ||
|
||
<summary>Do all engines in a ConstraintTemplate get evaluated? Is there a fallback among engines?</summary> | ||
Only one engine is evaluated for each ConstraintTemplate. `K8sNativeValidation` engine holds a higher priority than the `Rego` engine. There is no fallback mechanism between engines, hence a logical/syntactical error in the policy logic is treated as violation depending on the enforcement action specified in the Constraint. |
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.
Only one engine is evaluated for each ConstraintTemplate. `K8sNativeValidation` engine holds a higher priority than the `Rego` engine. There is no fallback mechanism between engines, hence a logical/syntactical error in the policy logic is treated as violation depending on the enforcement action specified in the Constraint. | |
Only one engine is evaluated for each ConstraintTemplate. The `K8sNativeValidation` engine holds a higher priority than the `Rego` engine. There is no fallback mechanism between engines, hence a logical/syntactical error in the policy logic is treated as a violation depending on the enforcement action specified in the Constraint. |
|
||
<summary>If I have a template with Rego and CEL, which policy engine will be used when evaluating resources?</summary> | ||
|
||
K8sNativeValidation engine holds a higher priority than the Rego engine, so with a ConstraintTemplate that has both Rego and CEL. Policy logic written in CEL will get evaluated by the K8sNativeValidation engine. |
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.
K8sNativeValidation engine holds a higher priority than the Rego engine, so with a ConstraintTemplate that has both Rego and CEL. Policy logic written in CEL will get evaluated by the K8sNativeValidation engine. | |
The K8sNativeValidation engine holds a higher priority than the Rego engine. If a ConstraintTemplate has both Rego and CEL, then the policy logic written in CEL will get evaluated by the K8sNativeValidation engine. |
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.
just few nits. otherwise LGTM
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.
LGTM
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #
Special notes for your reviewer: