Behind the scenes of Team Roles
Team Roles can be configured in the Practice Shaper by modelling the relationship between a System Type and RBAC roles.
This is an example configuration:
apiVersion: witboost.com/v2
kind: SystemType
metadata:
name: dataproduct
displayName: Data Product
description: A data product is a set of data and related assets that are designed, developed, and managed to provide specific value to its users. It is treated as a product with its own lifecycle, from inception and development to deployment and maintenance
spec:
resourceTypeId: dataproduct
belongsTo: taxonomy:default/data-mesh-taxonomy
partOfDomain: domaintype:default/business-domain
property: value
isOwnedBy:
assigneeRbacRole: DP_OWNER
limitedAssigneeRbacRole: DP_OWNER_LIMITED
dataAccessGrantedBy:
assigneeRbacRole: DP_DATA_ACCESS_MANAGER
lifecycleManagedBy:
assigneeRbacRole: DP_LIFECYCLE_MANAGER
What we are declaring here is that:
- All Data Products in Witboost (i.e. instances of the Data Product System Type) can now manage Team Roles. Hence, you are enabling the Team Roles panel for Data Product owners.
- The user who is assigned to the Owner team role will be granted the
DP_OWNERRBAC role with project scope - The user who is assigned as Limited Owner team role will be granted the
DP_OWNER_LIMITEDRBAC role with project scope - The user who is assigned to the Data Access Manager team role will be granted the
DP_DATA_ACCESS_MANAGERRBAC role with project scope - The user who is assigned to the Lifecycle Manager team role will be granted the
DP_LIFECYLE_MANAGERRBAC role with project scope - Data Access Manager and Lifecycle Manager team roles have limited assignees disabled i.e. Project Owners cannot assign users in limited mode in the Team Roles panel.
The RBAC roles themselves are not enough, because every Team Role full assignee or limited assignee is determined by the presence of a specific permission. This will be clearer in the next section.
How Witboost determines who holds a Team Role
When Witboost needs to know “who is the owner of project X?” (or e.g. the Data Access Manager), it follows a resolution process.
To understand this properly, you first need to understand how assignment works, because the two mechanisms are not symmetrical: a team role is assigned via an RBAC role, but who fills that role is resolved by searching for a specific RBAC permission.
- When assigning a team role to a subject, Witboost grants them an RBAC role (e.g.,
DP_OWNER) with a specific scope (e.g., project X). The RBAC role granted is the one configured in the example YAML above. - When resolving who holds a team role, Witboost does not look for said RBAC role but instead looks for who possesses a specific RBAC permission (e.g.,
control-plane.project.team-roles.manage) for that project.
In other words: the RBAC role is the vehicle through which the permission is granted, but it is the permission that determines who is the Owner (or any other Team Role). This means that, when configuring Team Roles as you will see later, if the RBAC role DP_OWNER does not contain the permission control-plane.project.team-roles.manage, the user will NOT appear as Owner even if they have the role.
Available Team Roles
As of now, Witboost defines 3 team roles that can be enabled on your instance:
| Team Role | Practice Shaper Relation | Full Assignee RBAC Permission | Limited Assignee RBAC Permission |
|---|---|---|---|
| Owner | isOwnedBy | control-plane.project.team-roles.manage | control-plane.project.team-roles.limited-manage |
| Data Access Manager | dataAccessGrantedBy | control-plane.project.manage-access | control-plane.project.limited-manage-access |
| Lifecycle Manager | lifecycleManagedBy | control-plane.project.manage-lifecycle | control-plane.project.limited-manage-lifecycle |
All non-Owner roles, i.e. dataAccessGrantedBy and lifecycleManagedBy relations, require isOwnedBy to also be defined in the System Type spec. You cannot configure these roles without first configuring an Owner for the same System Type.
These 3 roles are not extensible. What the platform team configures is which of these roles are active for each SystemType and how they map to specific RBAC roles.
Each Team Role comes with:
- A full assignee RBAC permission (identifies who holds the role as full assignee)
- A limited assignee RBAC permission (identifies who holds the role as limited assignee)
- A Practice Shaper relation (the field in the SystemType's
spec)
Then when you assign someone to a Team Role from the Team Roles panel, Witboost grants them the RBAC role configured in the SystemType with the scope of that project. This way, when someone is assigned as, for example, Owner for a project, they get the DP_OWNER RBAC role with scope of that project, which contains the control-plane.project.team-roles.manage permission that makes them appear as Owner when Witboost determines who is the Owner for that project (known as the Resolution process, as explained below).