Skip to content

Commit 2a24611

Browse files
openshift-cherrypick-robotthemr0cAndrienkoAleksandrdzemanov
authored
[release-1.4] RHIDP-4490: Introduce pluginsWithPermission information (#823)
Co-authored-by: Fabrice Flore-Thébault <[email protected]> Co-authored-by: Oleksandr Andriienko <[email protected]> Co-authored-by: Dominika Zemanovicova <[email protected]> Co-authored-by: Dominika Zemanovicova <[email protected]>
1 parent edebdf1 commit 2a24611

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

modules/authorization/proc-enabling-the-rbac-plugin.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ permission:
3939
users:
4040
- name: user:default/__<your_policy_administrator_name>__
4141
----
42+
. In order for the {product-short} Web UI to display available permissions provided by installed plugins, add the corresponding plugin IDs to link:{configuring-book-url}[your custom `{my-app-config-file}` {product-short} configuration file].
43+
+
44+
To display available permissions in RBAC UI, edit your custom {product-short} ConfigMap, such as `app-config-rhdh`, and add following code to the `{my-app-config-file}` content:
45+
+
46+
.`{my-app-config-file}` fragment
47+
[source,yaml,subs=+quotes]
48+
----
49+
permission:
50+
enabled: true
51+
rbac:
52+
admin:
53+
users:
54+
- name: user:default/__<your_policy_administrator_name>__
55+
pluginsWithPermission:
56+
- catalog
57+
- scaffolder
58+
- permission
59+
----
4260

4361
.Verification
4462
. Sign out from the existing {product} session and log in again using the declared policy administrator account.

modules/authorization/proc-rbac-ui-create-role.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
You can create a role in the {product} using the Web UI.
55

66
.Prerequisites
7-
* You xref:enabling-and-giving-access-to-rbac[have enabled RBAC and have a policy administrator role in {product-short}].
7+
* You xref:enabling-and-giving-access-to-rbac[have enabled RBAC, have a policy administrator role in {product-short}, and have added plugins with permission].
88

99
.Procedure
1010

modules/authorization/proc-rbac-ui-edit-role.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The policies generated from a `policy.csv` or ConfigMap file cannot be edited or
99
====
1010

1111
.Prerequisites
12-
* You xref:enabling-and-giving-access-to-rbac[have enabled RBAC and have a policy administrator role in {product-short}].
12+
* You xref:enabling-and-giving-access-to-rbac[have enabled RBAC, have a policy administrator role in {product-short}, and have added plugins with permission].
1313
* The role that you want to edit is created in the {product-short}.
1414

1515
.Procedure

0 commit comments

Comments
 (0)