tenancy.treeModule 18Tenant tree and reach
Model resellers and their customers as a tree, and compute who can reach each branch from delegations instead of storing it.
tenancy.tree is the sub-tenant tree and the delegations on it. A tenant hangs off one parent, a principal holds read, operate or administer over a branch, and reach is worked out by walking the tree on every call. Suspending a tenant or revoking a delegation cuts everything beneath it.
