From 31142ff91048f15ce09e1f9a0b549e118f84dd3e Mon Sep 17 00:00:00 2001 From: Yi Cai Date: Tue, 30 Jan 2024 09:48:31 -0500 Subject: [PATCH] feat(rbac): add rbac dynamic plugin Signed-off-by: Yi Cai --- app-config.dynamic-plugins.yaml | 12 ++++++++++++ dynamic-plugins.default.yaml | 18 ++++++++++++++++++ dynamic-plugins/imports/package.json | 1 + 3 files changed, 31 insertions(+) diff --git a/app-config.dynamic-plugins.yaml b/app-config.dynamic-plugins.yaml index 13b007c769..8a03546692 100644 --- a/app-config.dynamic-plugins.yaml +++ b/app-config.dynamic-plugins.yaml @@ -252,6 +252,18 @@ dynamicPlugins: anyOf: - hasAnnotation: backstage.io/kubernetes-id - hasAnnotation: backstage.io/kubernetes-namespace + janus-idp.backstage-plugin-rbac: + appIcons: + - name: AdminPanelSettingsOutlinedIcon + module: RbacPlugin + importName: AdminPanelSettingsOutlinedIcon + dynamicRoutes: + - path: /rbac + importName: RbacPage + module: RbacPlugin + menuItem: + icon: AdminPanelSettingsOutlinedIcon + text: Administration roadiehq.backstage-plugin-argo-cd: mountPoints: - mountPoint: entity.page.overview/cards diff --git a/dynamic-plugins.default.yaml b/dynamic-plugins.default.yaml index 30308ca916..9ffbaaedca 100644 --- a/dynamic-plugins.default.yaml +++ b/dynamic-plugins.default.yaml @@ -499,6 +499,24 @@ plugins: - package: ./dynamic-plugins/dist/janus-idp-backstage-scaffolder-backend-module-regex-dynamic + - package: ./dynamic-plugins/dist/janus-idp-plugin-rbac + disabled: true + pluginConfig: + dynamicPlugins: + frontend: + janus-idp.backstage-plugin-rbac: + appIcons: + - name: AdminPanelSettingsOutlinedIcon + module: RbacPlugin + importName: AdminPanelSettingsOutlinedIcon + dynamicRoutes: + - path: /rbac + importName: RbacPage + module: RbacPlugin + menuItem: + icon: AdminPanelSettingsOutlinedIcon + text: Administration + - package: ./dynamic-plugins/dist/janus-idp-backstage-scaffolder-backend-module-servicenow-dynamic disabled: true pluginConfig: diff --git a/dynamic-plugins/imports/package.json b/dynamic-plugins/imports/package.json index c64c5d9d52..7adc45f561 100644 --- a/dynamic-plugins/imports/package.json +++ b/dynamic-plugins/imports/package.json @@ -26,6 +26,7 @@ "@janus-idp/backstage-plugin-ocm": "3.6.0", "@janus-idp/backstage-plugin-ocm-backend": "3.4.11", "@janus-idp/backstage-plugin-quay": "1.5.0", + "@janus-idp/backstage-plugin-rbac": "1.11.1", "@janus-idp/backstage-plugin-tekton": "3.4.1", "@janus-idp/backstage-plugin-topology": "1.17.3", "@janus-idp/backstage-scaffolder-backend-module-quay": "1.2.6",