CCI-MOC / hil

Hardware Isolation Layer, formerly Hardware as a Service
Apache License 2.0
24 stars 54 forks source link

User should be able to inquire about public networks offered by HIL #1016

Open SahilTikale opened 6 years ago

SahilTikale commented 6 years ago

Current Scenario: HIL creates a network called "internet", and grants-access to all projects. Now if a user wishes to know what networks it has access to, only a HIL administrator can tell him/her. A user cannot find out themselves about the networks that are not owned by its project but have been granted-access to its project.

We need a call that lists all the networks that have been shared with its project.

hil project network list shared <project name> output:

List of networks...
Shared with project <project name>
naved001 commented 6 years ago

A regular user can do a GET /networks to see all public networks. Or GET /project/<project>/networks to see all networks that the project has access to. Looking at the code here, it only checks for access and not ownership. I think we had this discussion here earlier https://github.com/CCI-MOC/hil/pull/934