-
Notifications
You must be signed in to change notification settings - Fork 58
RHIDP-1848: Updates the setting up RBAC permission #906
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
Changes from 4 commits
b95b3f7
ef6eac1
f3372d2
5799bea
825e906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [id="configuring-guest-access-with-rbac-ui_{context}"] | ||
| = Configuring guest access with RBAC UI | ||
|
|
||
| Use guest access for the Role-Based Access Control (RBAC) frontend plugin only during initial testing and development, and not for production. To enable the guest access for the RBAC frontend, configure the backend plugin and set up the guest authentication provider. | ||
|
Check warning on line 4 in assemblies/assembly-configuring-guest-access-with-rbac-ui.adoc
|
||
|
|
||
|
|
||
| include::modules/authorization/proc-configuring-the-RBAC-backend-plugin.adoc[leveloffset=+1] | ||
|
|
||
| include::modules/authorization/proc-setting-up-the-guest-authentication-provider.adoc[leveloffset=+1] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| [id="configuring-the-rbac-backend-plugin_{context}"] | ||
| = Configuring the RBAC backend plugin | ||
|
|
||
| You can configure the RBAC backend plugin by updating the `app-config.yaml` file to enable the permission framework. | ||
|
|
||
| .Prerequisites | ||
| * You have installed the `@janus-idp/backstage-plugin-rbac` plugin in {product-short}. For more information, see link:{plugins-configure-book-url}[{plugins-configure-book-title}]. | ||
|
|
||
| .Procedure | ||
| * Update the `app-config.yaml` file to enable the permission framework as shown: | ||
|
|
||
| [source,yaml,subs=+quotes] | ||
| ---- | ||
| permission | ||
| enabled: true | ||
| rbac: | ||
| admin: | ||
| users: | ||
| - name: user:default/guest | ||
| pluginsWithPermission: | ||
| - catalog | ||
| - permission | ||
| - scaffolder | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| The `pluginsWithPermission` section of the `app-config.yaml` section includes only three plugins by default. Update the section as needed to include any additional plugins that also incorporate permissions. | ||
| ==== |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [id="setting-up-the-guest-authentication-provider_{context}"] | ||
| = Setting up the guest authentication provider | ||
|
|
||
| You can enable guest authentication and use it alongside the RBAC frontend plugin. | ||
|
|
||
| .Prerequisites | ||
| * You have installed the `@janus-idp/backstage-plugin-rbac` plugin in {product-short}. For more information, see link:{plugins-configure-book-url}[{plugins-configure-book-title}]. | ||
|
|
||
| .Procedure | ||
|
|
||
| * In the `app-config.yaml` file, add the user entity reference to resolve and enable the `dangerouslyAllowOutsideDevelopment` option, as shown in the following example: | ||
|
|
||
| [source,yaml,subs="+attributes,+quotes"] | ||
| ---- | ||
| auth: | ||
| environment: development | ||
| providers: | ||
| guest: | ||
| userEntityRef: user:default/guest | ||
| dangerouslyAllowOutsideDevelopment: true | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| You can use `user:default/guest` as the user entity reference to match the added user under the `permission.rbac.admin.users` section of the `app-config.yaml` file. | ||
| ==== |
Uh oh!
There was an error while loading. Please reload this page.