Hi. Cerbos has support for parent-child relationships for resource kinds, which we call
scoped policies. However, I think your question is more about relationships between particular instances of a resource. One way to model that would be using the
hierarchy functions. Basically, you need to tell Cerbos about the relationships (e.g. principal has access to tree
a.b
and the position of the resource in the tree is
a.b.c.d
) and the policy rules can be written using the hierarchy functions to determine whether that access is allowed.