Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Admin mode #428

Open
sergiimk opened this issue Sep 15, 2024 · 0 comments
Open

Improved Admin mode #428

sergiimk opened this issue Sep 15, 2024 · 0 comments
Assignees
Labels
epic A major chunk of work composed out of smaller tasks

Comments

@sergiimk
Copy link
Member

sergiimk commented Sep 15, 2024

Background

Currently we have admin role in the auth system, but it's very limited. We often find ourselves in a situation where we as admins cannot debug or investigate some situation with datasets of another user.

This epic is to review and improve the model for "admin" privileges.

Requirements

  • Admins accounts can view all datasets within the node, including private
  • Admins have access to dataset flows and settings as if they were owners of that dataset
  • It should be possible to toggle admin privileges ON and OFF in UI to see things as an ordinary user
  • When Admin user logs in this toggle should be OFF by default
    • This guard should also prevent us from navigating to admin-only views by direct links
  • There should be a clear indication for actions that use admin privileges. Datasets, tabs, and settings that would've been not available to the user if they were not an admin should be clearly marked, to make admins think twice before making any changes using their elevated privileges
  • Admin user should have a link to view ALL flows in the system
  • Flows can be additionally filtered by outcome (success / failed)

Design

For example, if I login under admin account and open someone else's dataset, the "Flows" and "Settings" tabs could show this mini-badge under them to indicate that I only see them because I'm admin:

Image

Technical details

  • TBD
  • We need to make sure that the back-end authorizer logic corresponds to this design

Related tickets

#432 Admin user should be possible to toggle admin privileges

@sergiimk sergiimk added the epic A major chunk of work composed out of smaller tasks label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic A major chunk of work composed out of smaller tasks
Projects
None yet
Development

No branches or pull requests

2 participants