Global tenant filter in Cockpit

Hi community folk,

I have a special case of custom “multi-tenancy”:

  • given a Single Process Engine with Tenant Identifiers (using Spring Boot)
  • process definitions are tenant independent
  • process instances run under the authority of a tenant
  • we implemented a variable based Tenant ID provider in order to achieve that
  • tenant check is disabled due to some other business reasons

Everything is fine with that and it just works as expected. Only one thing is missing:

  • The administrator in Camunda Cockpit sees all processes from all tenants - which is what we want
  • But: the administrator currently has no option to set a tenant ID filter on global level.

I’m thinking about a plugin where the administrator can choose the current tenant and afterwards all data in all views (statistics / heatmap on process definition level, process instances) are prefiltered with that tenant.

The UI part for setting such a filter (via a menu / modal / …) should’nt be that complicated. The question is:

  • Is there a chance to set an active tenant ID that then will be considered with all Cockpit internal REST endpoint calls? How would you do that (without rewriting all views)? Remember, the administrator is allowed to see everything, we just want a filter for him which can be changed actively. Any idea?

Thanks in advance
Gunnar