catlin icon indicating copy to clipboard operation
catlin copied to clipboard

Exploration: use rego for defining rules

Open vdemeester opened this issue 1 year ago • 0 comments

As of today, "rules" in catlin are hardcoded in go code. Ideally, we should be able to extend / modify rules based independently of the code. One idea would be to use rego and possibly opa as a library to be able to define rules "dynamically".

  • Catlin would ship with a default set of rules (embedded)
  • A user could override or add new rules with a configuration (in the repository, or global)

See, for example, https://github.com/enterprise-contract/ec-policies/blob/main/policy/lib/bundles.rego

vdemeester avatar Jan 19 '24 09:01 vdemeester