Authorizing users for IBM z/OS Connect by using
role-based access control (RBAC)
How to authorize users for IBM® z/OS Connect in
an OCI-compliant container platform by using role-based access control (RBAC).
Before you begin
zosConnect-3.0 Applies to zosConnect-3.0.
About this task
Note: This task is applicable to the Red Hat® OpenShift® only.
Before you install z/OS Connect API image, prepare your
Red Hat OpenShift container platform environment by
granting role-based access control (RBAC) authorization.
Authorization in Red Hat OpenShift container
platform can be achieved through identity providers and groups. The identity provider defines how
users can be created and grants access to the Red Hat OpenShift container platform cluster. These
users can be assigned to groups in Red Hat OpenShift
container platform and assigned roles to access specific resources.
For Application Developers to deploy z/OS Connect API
images to Red Hat OpenShift container platform, you
must configure the following RBAC (role-based access control). For more information about RBAC, see Using-RBAC.
User-level access is restricted in several ways. A simple and effective strategy is to separate
users by Role.
cluster-admin - Admin users who need access to prepare and manage the cluster
for deploying z/OS Connect APIs. For more information, see Creating a cluster admin in the Red Hat OpenShift container platform documentation.
zcon-user - Users who are bound to the zcon-user Group who
need access to deploy and manage z/OS Connect APIs.
The following procedure demonstrates how an existing cluster-admin Role can
create the zcon-user Role and the zcon-users Group in the Red Hat OpenShift Container Platform. A RoleBinding is
added to the zcon-users Group that applies the zcon-user Role to
the defined users of the group.
Procedure
Log in as cluster-admin to the Red Hat OpenShift container platform web console, and
ensure that you are using the Administrator perspective by using the left
navigation.
Create the zcon-userClusterRole.
Click User Management > Roles in the left navigation.
Click Create Role in the upper right of the Roles
page.
The Group > Group details page is opened for the
zcon-usersGroup.
Binding the zcon-userClusterRole to the zcon-usersGroup with ClusterRoleBinding.
Go to the Group details page for the zcon-usersGroup. Figure 1. Create RoleBindings for
zcon-users Group
Click the RoleBindings tab.
Click the Create binding that opens the Create
RoleBinding form.
Complete the form as follows:
Select Cluster-wide role binding(ClusterRoleBinding) for
BindingType.
Enter zcon-user-clusterrolebindingName for RoleBinding.
Select zcon-userRole name for Role.
Click Create.
The RoleBindings > ClusterRoleBinding details page is opened for the
zcon-user-clusterrolebindingClusterRoleBinding.
Results
The zcon-user Role and zcon-usersGroup are added to the Red Hat OpenShift container platform. The
zcon-userRole is applied to all users in the zcon-usersGroup.
Users are added and removed from the Group by
cluster-admin.
The Red Hat OpenShift container platform
cluster is configured with Role Based Access-Control (RBAC) ready for the deployment of z/OS Connect APIs.