Skip to content

Commit

Permalink
fix(rbac): update the RBAC frontend plugin readme (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
debsmita1 authored Feb 2, 2024
1 parent 5a8b27d commit 8db80b9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions plugins/rbac/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,34 @@ The sections below are relevant for static plugins. If the plugin is expected to

#### Prerequisites

Follow the RBAC backend plugin [README](https://github.com/janus-idp/backstage-plugins/tree/main/plugins/rbac-backend) to integrate rbac in your Backstage instance
Follow the RBAC backend plugin [README](https://github.com/janus-idp/backstage-plugins/blob/main/plugins/rbac-backend/README.md) to integrate rbac in your Backstage instance.

---

**NOTE**

To enable create role button on Administration -> RBAC roles list page, the role associated with your user should have the following permission policies associated with it. Add the following in your permission policies configuration file:
- For non-admin users, to enable create role button on Administration -> RBAC roles list page, the role associated with your user should have the following permission policies associated with it. Add the following in your permission policies configuration file:

```CSV
p, role:default/team_a, catalog-entity, read, allow
p, role:default/team_a, policy-entity, create, allow
g, user:default/<login-id/user-name>, role:default/team_a
```

- To fetch the permissions from other plugins like `Kubernetes` and `Jenkins` in the Role Form as mentioned [here](https://github.com/janus-idp/backstage-plugins/blob/main/plugins/rbac-backend/docs/permissions.md), add the following configuration in your `app-config.yaml`:

```yaml title="app-config.yaml"
permission:
enabled: true
rbac:
pluginsWithPermission:
- kubernetes
- jenkins
admin:
users:
- name: user:default/<user-name>
```
---
#### Procedure
Expand Down

0 comments on commit 8db80b9

Please sign in to comment.