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

Add a Configuration field to PolicyReport #117

Closed anusha94 closed 1 year ago

anusha94 commented 1 year ago

Some scale issues identified for PolicyReport can be found in this thread - https://github.com/open-policy-agent/gatekeeper/issues/2394

One option to tackle this issue is for the PolicyReport API to provide some kind of contract between PolicyReport generators and consumers. The proposal here is to add a Configuration field to the API -

configuration:
  limits:
    maxResults: 100
    statusFilter: ["FAIL", "WARN"]

This defines the max number of reports that will be stored. Also, provide a way to store only reports that the user may be interested in - the statusFilter allows to filter based on different status values - pass, fail, error, warn, skip. The setting of these values should be exposed via the PolicyReport generator (for example, policy engines). The PolicyReport API should provide sane defaults for these fields

basit9958 commented 1 year ago

/assign

anusha94 commented 1 year ago

@basit9958 Are you going to work on this issue?

kumar-mallikarjuna commented 1 year ago

/assign