1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/admin
Nuno Góis 7e9069e390
refactor: token permissions, drop admin-like permissions (#4050)
https://linear.app/unleash/issue/2-1155/refactor-permissions

- Our `rbac-middleware` now supports multiple OR permissions;
- Drops non-specific permissions (e.g. CRUD API token permissions
without specifying the token type);
- Makes our permission descriptions consistent;
- Drops our higher-level permissions that basically mean ADMIN (e.g.
ADMIN token permissions) in favor of `ADMIN` permission in order to
avoid privilege escalations;

This PR may help with
https://linear.app/unleash/issue/2-1144/discover-potential-privilege-escalations
as it may prevent privilege escalations altogether.

There's some UI permission logic around this, but in the future
https://linear.app/unleash/issue/2-1156/adapt-api-tokens-creation-ui-to-new-permissions
could take it a bit further by adapting the creation of tokens as well.

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-06-22 08:35:54 +01:00
..
apiToken refactor: token permissions, drop admin-like permissions (#4050) 2023-06-22 08:35:54 +01:00
auth fix: add confirmation to disable password login (#3829) 2023-05-23 15:56:34 +01:00
billing fix: add trial expired warning for enterprise (#3997) 2023-06-16 13:35:24 +02:00
cors clear warnings (#3053) 2023-02-07 08:41:23 +01:00
groups feat: use new role components in project access (#4018) 2023-06-21 08:16:37 +01:00
instance-admin fix: ensure rel=noreferrer on target=_blank (#3755) 2023-05-12 09:51:33 +01:00
invoice feat: dark theme v1 (#3298) 2023-03-22 16:37:40 +02:00
maintenance refactor: light theme colors (#3252) 2023-03-06 12:58:36 +02:00
menu feat: roles unification (#3999) 2023-06-19 09:41:40 +01:00
network fix: dark theme UI fixes (#3423) 2023-03-30 16:57:35 +01:00
roles refactor: token permissions, drop admin-like permissions (#4050) 2023-06-22 08:35:54 +01:00
serviceAccounts feat: use new role components in project access (#4018) 2023-06-21 08:16:37 +01:00
users feat: use new role components in project access (#4018) 2023-06-21 08:16:37 +01:00
Admin.tsx feat: roles unification (#3999) 2023-06-19 09:41:40 +01:00
AdminRedirect.tsx
LazyAdmin.tsx
LazyAdminExport.tsx