How do you grant a user permissions to manage resources within a project using RBAC?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

How do you grant a user permissions to manage resources within a project using RBAC?

Explanation:
RBAC grants access by linking what a user can do with who they are. To let a user manage resources in a project, you define a Role that lists the allowed actions on the resources within that namespace (or a ClusterRole for cluster-wide permissions), and then attach that role to the user using a RoleBinding in the namespace (or a ClusterRoleBinding for cluster-wide access). This is the standard way to give project-scoped permissions in OpenShift: create the role with the needed rules and bind it to the user in the project, or use a cluster-wide role bound at the cluster level if broader access is required. Using a SecurityContextConstraints is not for general RBAC permissions, and a ConfigMap is just for storing configuration data, not access control.

RBAC grants access by linking what a user can do with who they are. To let a user manage resources in a project, you define a Role that lists the allowed actions on the resources within that namespace (or a ClusterRole for cluster-wide permissions), and then attach that role to the user using a RoleBinding in the namespace (or a ClusterRoleBinding for cluster-wide access). This is the standard way to give project-scoped permissions in OpenShift: create the role with the needed rules and bind it to the user in the project, or use a cluster-wide role bound at the cluster level if broader access is required. Using a SecurityContextConstraints is not for general RBAC permissions, and a ConfigMap is just for storing configuration data, not access control.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy