spiffe / tornjak

Tornjak is a UI and management layer used for brokering human access to one or more SPIRE deployments
Apache License 2.0
74 stars 32 forks source link

Refactor Is_manager logic #451

Open mamy-CS opened 2 months ago

mamy-CS commented 2 months ago

Currently IsManager logic is intertwined into the main logic of most components, however, each of the individual components don't necessarily need to know if it is in manager mode or not if the dataset presented to it is filtered.

This is issue is around moving the use of IsManager to a abstraction where most of the UI components don't need to know whether it is running as a manager. For example, agent list doesn't need to know if its a manager, it just needs to be given the right dataset.