I am working on writing new rego policies.
I have few rules defined in single policy file which I want to break into sub policy and import it.
Something like this:
A.rego
package com.example
import com.example.B.evaluate
default allow:= false
allow {
evaluate
}
B.rego
package com.example
default evaluate:= false
evaluate {
input.role != "admin" # some condition
}
How to achieve this policy configuration? It's like implementing policySet from authzforce having multiple sub-policies.
Thanks in advance! Please pardon my knowledge of OPA