Support Harness expressions in OPA policies
complete
D
Driving Mockingbird
Currently, Harness does not support Harness expressions in OPA policies, which limits the ability to differentiate between a manual run and a rerun within the policy itself. It would be beneficial to have this support to enhance policy differentiation capabilities.
Log In
a
abhijit.pujare
marked this post as
complete
a
abhijit.pujare
There is now a field "input.actionContext.rerun" which allows you to differentiate whether a pipeline run is a rerun or not. This field is exposed to the OPA payload.
We also now have the capability to run an OPA policy in your own environment as detailed here: https://developer.harness.io/docs/platform/governance/policy-as-code/run-policies-in-your-environment. For policies that are configured in such a way, expressions can be used within OPA policies.
Sudarshan Purohit
marked this post as
planned
a
abhijit.pujare
Thank you for sending over this feature request. We have added this to our backlog for now.
P
Pranay Kaikini
Dear customer, Can you please provide the use cases where you would need to use expressions in a OPA Policy?
D
Driving Mockingbird
Pranay Kaikini,
Pranay, Please find the details of the problem explained in the below support ticket: https://support.harness.io/hc/en-us/requests/80911