Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Project related CLI calls #995

Open
SahilTikale opened this issue Apr 12, 2018 · 4 comments
Open

Project related CLI calls #995

SahilTikale opened this issue Apr 12, 2018 · 4 comments

Comments

@SahilTikale
Copy link
Contributor

SahilTikale commented Apr 12, 2018

Following calls are required for project.
Should list resources allocated to the project like <node>, <networks>, <users>
For Networks it should show which the project owns versus which are shared with the project
For Users it should show which are admin vs which are regular

This call should be accessed by administrator and by any user that belongs to the <project>

hil project show <project_name>

For Administrator: Following call should list all projects.
For Users: Following call should list all the projects that the user is part of.

hil project list 
@zenhack
Copy link
Contributor

zenhack commented Apr 12, 2018

adding a project show sounds good to me.

The admin_only variant of the project list call already exists. I don't like things that have different behavior (besides allow/deny) based on the identity of the caller, so I'm not a fan of extending it for the user case. But we can just get that info from the user show call you suggest in #994, which can either require admin access or being the user in question. I'm vaguely uncomfortable with that design, since we don't otherwise use user as the unit of authentication, just project, but maybe it's okay if it's scoped to the user based auth backend anyway (the call would just not exist when we're not doing users). Not sure how I feel about that.

@xuhang57
Copy link
Contributor

#949

@zenhack
Copy link
Contributor

zenhack commented Apr 26, 2018

Okay, yeah, looks like this is just a duplicate of #949; I'm going to close it to centralize the discussion.

@zenhack zenhack closed this as completed Apr 26, 2018
@zenhack
Copy link
Contributor

zenhack commented Apr 26, 2018

Ack, no, it's not quite the same, reopening. Still waking up :/...

@zenhack zenhack reopened this Apr 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants