Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-1.4] RHIDP-4490: Introduce pluginsWithPermission information #823

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions modules/authorization/proc-enabling-the-rbac-plugin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@ permission:
users:
- name: user:default/__<your_policy_administrator_name>__
----
. 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].
+
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:
+
.`{my-app-config-file}` fragment
[source,yaml,subs=+quotes]
----
permission:
enabled: true
rbac:
admin:
users:
- name: user:default/__<your_policy_administrator_name>__
pluginsWithPermission:
- catalog
- scaffolder
- permission
----

.Verification
. Sign out from the existing {product} session and log in again using the declared policy administrator account.
Expand Down
2 changes: 1 addition & 1 deletion modules/authorization/proc-rbac-ui-create-role.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
You can create a role in the {product} using the Web UI.

.Prerequisites
* You xref:enabling-and-giving-access-to-rbac[have enabled RBAC and have a policy administrator role in {product-short}].
* 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].

.Procedure

Expand Down
2 changes: 1 addition & 1 deletion modules/authorization/proc-rbac-ui-edit-role.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The policies generated from a `policy.csv` or ConfigMap file cannot be edited or
====

.Prerequisites
* You xref:enabling-and-giving-access-to-rbac[have enabled RBAC and have a policy administrator role in {product-short}].
* 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].
* The role that you want to edit is created in the {product-short}.

.Procedure
Expand Down
Loading