Double-checking the expected behavior with rego policy & passthrough enabled #1352
-
The following is what I'm seeing using Ratify v1.1 (Helm chart v1.12.0):
To be clear, the primary value I am currently finding with passthrough mode is to be able to expose the error message(s) as a part of Gatekeeper denial instead of needing to parse / view the logs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@cmaclaughlin yes your observations are inline with expected behavior based on current implementation. The primary purpose of Rego policy on its own without pass through is crucial for non K8s scenarios where GK is out of the picture. |
Beta Was this translation helpful? Give feedback.
@cmaclaughlin yes your observations are inline with expected behavior based on current implementation. The primary purpose of
passthroughEnabled
property on the rego policy provider is to decide exactly where the rego policy is applied to determine the overall verification of the result. If pass through is enabled, the rego provided to Ratify directly (via the policy CRD) is ignored because it's assumed Gatekeeper will apply more involved rego (constraint template) to parse the verifier reports to determine the overall result on its own. You're right that if you try to use Gatekeeper with pass through enabled, then the GK constraint template can bubble up errors/policy violations more cle…