Skip to content

Commit 6a80337

Browse files
authored
Merge pull request #39993 from sayjadha/JIRA-OSDOCS2850
JIRA-OSDOCS2850: Added procedure to revoke access to ROSA clusters using OCM console
2 parents 93d8792 + 3ad442d commit 6a80337

File tree

5 files changed

+41
-19
lines changed

5 files changed

+41
-19
lines changed

_topic_maps/_topic_map_rosa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Topics:
7676
File: rosa-sts-accessing-cluster
7777
- Name: Configuring identity providers using the OCM console
7878
File: rosa-sts-config-identity-providers
79-
- Name: Deleting access to a ROSA cluster
79+
- Name: Revoking access to a ROSA cluster
8080
File: rosa-sts-deleting-access-cluster
8181
- Name: Deleting a ROSA cluster
8282
File: rosa-sts-deleting-cluster

modules/rosa-delete-cluster-admins.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
[id="rosa-delete-cluster-admins"]
8-
= Revoking `cluster-admin` access
8+
= Revoking `cluster-admin` access using the `rosa` CLI
99
Only the user who created the cluster can revoke access for `cluster-admin` users.
1010

1111
.Prerequisites
@@ -16,16 +16,16 @@ Only the user who created the cluster can revoke access for `cluster-admin` user
1616

1717
.Procedure
1818

19-
. Revoke the user `cluster-admin` privileges:
19+
. Enter the following command to revoke the `cluster-admin` access of a user:
2020
+
2121
[source,terminal]
2222
----
23-
$ rosa revoke user --cluster=<cluster_name> --cluster-admins=<idp_user_name>
23+
$ rosa revoke user cluster-admins --user=myusername --cluster=mycluster
2424
----
2525
+
26-
. Verify your user is no longer listed as a `cluster-admin`:
26+
. Enter the following command to verify that the user no longer has `cluster-admin` access. The output does not list the revoked user.
2727
+
2828
[source,terminal]
2929
----
30-
$ rosa list users --cluster=<cluster_name>
30+
$ oc get groups cluster-admins
3131
----

modules/rosa-delete-dedicated-admins.adoc

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66

77
[id="rosa-delete-dedicated-admins"]
8-
= Revoking `dedicated-admin` access
9-
Only the user who created the cluster can revoke access for a `dedicated-admin` users.
8+
= Revoking `dedicated-admin` access using the `rosa` CLI
9+
You can revoke access for a `dedicated-admin` user if you are the user who created the cluster, the organization administrator user, or the super administrator user.
1010

1111
.Prerequisites
1212

@@ -16,21 +16,16 @@ Only the user who created the cluster can revoke access for a `dedicated-admin`
1616

1717
.Procedure
1818

19-
. Enter the following command to revoke access for a `dedicated-admin`:
19+
. Enter the following command to revoke the `dedicated-admin` access of a user:
2020
+
2121
[source,terminal]
2222
----
2323
$ rosa revoke user dedicated-admin --user=<idp_user_name> --cluster=<cluster_name>
2424
----
2525
+
26-
. Enter the following command to verify that your user no longer has `dedicated-admin` access. The user will not be listed in the output.
26+
. Enter the following command to verify that your user no longer has `dedicated-admin` access. The output does not list the revoked user.
2727
+
2828
[source,terminal]
2929
----
3030
$ oc get groups dedicated-admins
3131
----
32-
+
33-
[NOTE]
34-
====
35-
A `Forbidden` error displays if user without `dedicated-admin` privileges runs this command.
36-
====

modules/rosa-delete-users.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
// Module included in the following assemblies:
3+
//
4+
// getting_started_rosa/rosa-creating-cluster.adoc
5+
6+
7+
[id="rosa-delete-users"]
8+
= Revoking administrator access using the OCM console
9+
You can revoke the `dedicated-admin` or `cluster-admin` access of users through the OpenShift Cluster Manager (OCM) console. Users will be able to access the cluster without administrator privileges.
10+
11+
.Prerequisites
12+
13+
* You have added an Identity Provider (IDP) to your cluster.
14+
* You have the IDP user name for the user whose privileges you are revoking.
15+
* You are logged in to the OCM console using the OCM account that you used to create the cluster, the organization administrator user, or the super administrator user.
16+
17+
.Procedure
18+
19+
. On the *Clusters* tab of the OCM console, select the name of your cluster to view the cluster details.
20+
. Select *Access control* > *Cluster Roles and Access*.
21+
. For the user that you want to remove, click the *Options* menu {kebab} to the right of the user and group combination and click *Delete*.
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
include::modules/attributes-openshift-dedicated.adoc[]
22
[id="rosa-sts-deleting-access-cluster"]
3-
= Deleting access to a ROSA cluster
3+
= Revoking access to a ROSA cluster
44
:context: rosa-sts-deleting-access-cluster
55

66
toc::[]
77

8-
Delete access to a {product-title} (ROSA) cluster using the `rosa` command-line.
8+
An identity provider (IDP) controls access to a {product-title} (ROSA) cluster. To revoke access of a user to a cluster, you must configure that within the IDP that was set up for authentication.
99

10-
include::modules/rosa-delete-dedicated-admins.adoc[leveloffset=+1]
10+
[id="rosa-revoke-admin-access"]
11+
== Revoking administrator access using the `rosa` CLI
12+
You can revoke the administrator access of users so that they can access the cluster without administrator privileges. To remove the administrator access for a user, you must revoke the `dedicated-admin` or `cluster-admin` privileges. You can revoke the administrator privileges using the `rosa` command-line utility or using the OpenShift Cluster Manager (OCM) console.
1113

12-
include::modules/rosa-delete-cluster-admins.adoc[leveloffset=+1]
14+
include::modules/rosa-delete-dedicated-admins.adoc[leveloffset=+2]
15+
16+
include::modules/rosa-delete-cluster-admins.adoc[leveloffset=+2]
17+
18+
include::modules/rosa-delete-users.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)