-
Feature Request
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
Opened this based on https://issues.redhat.com/browse/RHDHSUPP-250.
Problem Statement:
Currently, Red Hat Developer Hub (RHDH) only supports static `enabled: true/false` configuration for sidebar menu items in the `dynamicPlugins.frontend.<package_name>.menuItems` configuration. This approach either shows menu items to all users or hides them from everyone, but does not provide the ability to conditionally show/hide menu items based on individual user permissions or roles.
Current Limitation:
dynamicPlugins: frontend: my-plugin: menuItems: - text:"My Plugin" enabled: true # Static boolean - affects ALL users
Expected Behavior
Users should be able to configure menu items with permission-based visibility similar to how upstream Backstage handles route-level permissions.
Additional details
- RBAC and BulkImport plugins already use permissions in their exported SidebarItem components but that is not directly being used in RHDH
- Dynamic plugins can contribute custom SidebarItem components through `dynamicRoutes` configuration
- Upstream Backstage supports `RequirePermission` component for route-level access control