matt-deboer / kuill

A multitenant UI for kubernetes.
MIT License
37 stars 1 forks source link

Graceful degradation needed for users with limited permissions #46

Closed matt-deboer closed 7 years ago

matt-deboer commented 7 years ago

For users with read-only access (that doesn't include watch permission) an alternative refresh-on-interval method is needed to maintain a semi-realtime view of the cluster state. This decision/fallback needs to occur on a per-resource kind basis, for any case where the user is allowed to get the resource kind, but not watch it.

In addition, a fallback is also needed for cases where a user is authorized to list a resource kind, but cannot get individual instances of that resource (this might occur for Secret type resources).

On top of this, some users may not be allowed to issue watch/get/list at a global level, but will be permitted within some namespaces.

Related is the distinction for resources that a user would not be allowed to create/edit/delete ( #23 )--the user should see a "View" option as opposed to an "Edit" option for those resources, and should not be allowed to invoke the "Create" or "Delete" options at all.

Testing should be conducted against the following profiles:

matt-deboer commented 7 years ago

complete, as of v0.1-b15