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

admin: allow the creation and management of roles #285

Open
diegodelemos opened this issue Sep 21, 2020 · 0 comments
Open

admin: allow the creation and management of roles #285

diegodelemos opened this issue Sep 21, 2020 · 0 comments

Comments

@diegodelemos
Copy link
Member

Currently, the admin user is just a hardcoded UUID.

$ rg ADMIN_USER_ID
reana-server/reana_server/reana_admin.py
29:from reana_server.config import ADMIN_EMAIL, ADMIN_USER_ID, REANA_HOSTNAME
69:@click.option("-i", "--id", "id_", default=ADMIN_USER_ID)
214:        admin = User.query.filter_by(id_=ADMIN_USER_ID).one_or_none()
279:        admin = User.query.filter_by(id_=ADMIN_USER_ID).one_or_none()

reana-server/reana_server/utils.py
38:from reana_server.config import ADMIN_USER_ID, REANA_GITLAB_URL
75:    admin = Session.query(User).filter_by(id_=ADMIN_USER_ID).one_or_none()
94:        admin = Session.query(User).filter_by(id_=ADMIN_USER_ID).one_or_none()
116:    admin = User.query.filter_by(id_=ADMIN_USER_ID).one_or_none()
136:    admin = User.query.filter_by(id_=ADMIN_USER_ID).one_or_none()

reana-server/reana_server/config.py
30:ADMIN_USER_ID = "00000000-0000-0000-0000-000000000000"

If we would like to extend REANA so to delegate quota management to subgroups (for example, an experiment spokesperson would be responsible for this) we would need real roles.

With these roles, we would be able to create an admin dashboard and show the quota information which reana-admin CLI shows on a web dashboard see reanahub/reana-ui#130.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant