kubernetes-sigs / wg-policy-prototypes

A place for policy work group related proposals and prototypes.
Apache License 2.0
64 stars 39 forks source link

Policy Engine identifier for the PolicyReport #116

Closed anusha94 closed 1 year ago

anusha94 commented 1 year ago

Currently, we have the source field in the PolicyReportResult struct. This is used to specify the policy engine managing this report.

We do not anticipate a case where different policy engines will govern different policies, thereby creating policy reports from engines A and B. Move the source field to the top level PolicyReport schema

gparvin commented 1 year ago

We actually have 2 different engines that use this field as you describe. Our Insights client creates results with this source: source: insights and our governance engine creates results in the same PolicyReport with this source: source: grc

anusha94 commented 1 year ago

/assign

anusha94 commented 1 year ago

Per this slack discussion, I will proceed with adding the source field at the top level, while keeping the existing field as is. Both these fields will be optional.