Skip to Content
Learn OpenShift
book

Learn OpenShift

by Denis Zuev, Artemii Kropachev, Aleksey Usov
July 2018
Intermediate to advanced
504 pages
11h 34m
English
Packt Publishing
Content preview from Learn OpenShift

Authorization and role-based access control

Authorization in OpenShift is built around the following concepts:

  • Rules: Sets of actions allowed to be performed on specific resources.
  • Roles: Collections of rules that allow them to be applied to a user according to a specific usage profile. Roles can be applied either at the cluster or project level.
  • Role bindings: Associations between users/groups and roles. A given user or group can be associated with multiple roles.

Let's return to our MiniShift environment. To see a list of all available cluster roles, run the following command:

$ oc get clusterroleNAMEadminbasic-usercluster-admin
...<output omitted>...view

Use the describe command to understand what rules are in a particular role:

$ oc ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating OpenShift

Operating OpenShift

Rick Rackow, Manuel Dewald
OpenShift for Developers, 2nd Edition

OpenShift for Developers, 2nd Edition

Joshua Wood, Brian Tannous
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower

Publisher Resources

ISBN: 9781788992329Supplemental Content