Evaluating authorization
Red Hat OpenShift Container Platform evaluates authorization by using:
- Identity
-
The user name and list of groups that the user belongs to.
- Action
-
The action you perform. In most cases, this consists of:
-
Project: The project you access. A project is a Kubernetes namespace with additional annotations that allows a community of users to organize and manage their content in isolation from other communities.
-
Verb : The action itself:
get,list,create,update,delete,deletecollection, orwatch. -
Resource name: The API endpoint that you access.
-
- Bindings
-
The full list of bindings, the associations between users or groups with a role.
Red Hat OpenShift Container Platform evaluates authorization by using the following steps:
-
The identity and the project-scoped action is used to find all bindings that apply to the user or their groups.
-
Bindings are used to locate all the roles that apply.
-
Roles are used to find all the rules that apply.
-
The action is checked against each rule to find a match.
-
If no matching rule is found, the action is then denied by default.
|
|
Remember that users and groups can be associated with, or bound to, multiple roles at the same time. |
Project administrators can use the CLI to view local roles and bindings, including a matrix of the verbs and resources each are associated with.
|
|
The cluster role bound to the project administrator is limited in a project through a local binding. It is not bound cluster-wide like the cluster roles granted to the cluster-admin or system:admin. Cluster roles are roles defined at the cluster level but can be bound either at the cluster level or at the project level. |