bloq / cloud-cli

☁️💻
MIT License
0 stars 0 forks source link

Adds admin auth for list and remove commands #184

Closed raiseerco closed 2 years ago

raiseerco commented 2 years ago

This PR will add and authentication level for admins, they will be able to list any other existing clusters.

Screenshots:

image

This is the testing local table with only two records: I logged in as Admin (user user-0000000...) and will execute:

image

With no modifiers, bcl clusters list will show my own started clusters only. Let's test with the --all modifier, in order to get the stopped clusters of my own:

image

Now will execute with --allUsers in order to get all other clusters, not only mine, but marked as started:

image

And let's execute with both modifiers --all and --allUsers to get every cluster, started and stopped:

image

And finally, this is the execution result with another user profile, with no admin rights:

image

Closes #183