@backstage-community/plugin-rbac-node 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,73 @@
1
+ ## @backstage-community/plugin-rbac-node [1.4.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.3.1...@backstage-community/plugin-rbac-node@1.4.0) (2024-07-26)
2
+
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 019f010: Migrated from [janus-idp/backstage-plugins](https://github.com/janus-idp/backstage-plugins).
8
+
9
+ ## 1.8.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 8244f28: chore(deps): update to backstage 1.32
14
+
15
+ ## 1.7.0
16
+
17
+ ### Minor Changes
18
+
19
+ - d9551ae: feat(deps): update to backstage 1.31
20
+
21
+ ### Patch Changes
22
+
23
+ - d9551ae: upgrade to yarn v3
24
+
25
+ ### Features
26
+
27
+ - **deps:** update to backstage 1.29 ([#1900](https://github.com/janus-idp/backstage-plugins/issues/1900)) ([f53677f](https://github.com/janus-idp/backstage-plugins/commit/f53677fb02d6df43a9de98c43a9f101a6db76802))
28
+
29
+ ## @backstage-community/plugin-rbac-node [1.3.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.3.0...@backstage-community/plugin-rbac-node@1.3.1) (2024-07-24)
30
+
31
+ ### Bug Fixes
32
+
33
+ - **deps:** rollback unreleased plugins ([#1951](https://github.com/janus-idp/backstage-plugins/issues/1951)) ([8b77969](https://github.com/janus-idp/backstage-plugins/commit/8b779694f02f8125587296305276b84cdfeeaebe))
34
+
35
+ ## @backstage-community/plugin-rbac-node [1.3.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.2.0...@backstage-community/plugin-rbac-node@1.3.0) (2024-07-23)
36
+
37
+ ### Features
38
+
39
+ - **deps:** update to backstage 1.28 ([#1891](https://github.com/janus-idp/backstage-plugins/issues/1891)) ([1ba1108](https://github.com/janus-idp/backstage-plugins/commit/1ba11088e0de60e90d138944267b83600dc446e5))
40
+
41
+ ## @backstage-community/plugin-rbac-node [1.2.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.1.2...@backstage-community/plugin-rbac-node@1.2.0) (2024-06-13)
42
+
43
+ ### Features
44
+
45
+ - **deps:** update to backstage 1.27 ([#1683](https://github.com/janus-idp/backstage-plugins/issues/1683)) ([a14869c](https://github.com/janus-idp/backstage-plugins/commit/a14869c3f4177049cb8d6552b36c3ffd17e7997d))
46
+
47
+ ## @backstage-community/plugin-rbac-node [1.1.2](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.1.1...@backstage-community/plugin-rbac-node@1.1.2) (2024-06-04)
48
+
49
+ ## @backstage-community/plugin-rbac-node [1.1.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.1.0...@backstage-community/plugin-rbac-node@1.1.1) (2024-05-09)
50
+
51
+ ## @backstage-community/plugin-rbac-node [1.1.0](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.0.6...@backstage-community/plugin-rbac-node@1.1.0) (2024-04-15)
52
+
53
+ ### Features
54
+
55
+ - checkPluginVersion.sh bump plugins for 1.2.0 release ([#1511](https://github.com/janus-idp/backstage-plugins/issues/1511)) ([73c6588](https://github.com/janus-idp/backstage-plugins/commit/73c6588adb7e8c20907b06f2a8ef248cfd4332e4))
56
+
57
+ ## @backstage-community/plugin-rbac-node [1.0.6](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.0.5...@backstage-community/plugin-rbac-node@1.0.6) (2024-04-09)
58
+
59
+ ## @backstage-community/plugin-rbac-node [1.0.5](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.0.4...@backstage-community/plugin-rbac-node@1.0.5) (2024-04-08)
60
+
61
+ ## @backstage-community/plugin-rbac-node [1.0.4](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.0.3...@backstage-community/plugin-rbac-node@1.0.4) (2024-03-29)
62
+
63
+ ## @backstage-community/plugin-rbac-node [1.0.3](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.0.2...@backstage-community/plugin-rbac-node@1.0.3) (2024-03-04)
64
+
65
+ ## @backstage-community/plugin-rbac-node [1.0.2](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.0.1...@backstage-community/plugin-rbac-node@1.0.2) (2024-02-27)
66
+
67
+ ## @backstage-community/plugin-rbac-node [1.0.1](https://github.com/janus-idp/backstage-plugins/compare/@backstage-community/plugin-rbac-node@1.0.0...@backstage-community/plugin-rbac-node@1.0.1) (2024-02-21)
68
+
69
+ ## @backstage-community/plugin-rbac-node 1.0.0 (2024-02-08)
70
+
71
+ ### Features
72
+
73
+ - add support for the new backend system to the `rbac-backend` plugin ([#1179](https://github.com/janus-idp/backstage-plugins/issues/1179)) ([d625cb2](https://github.com/janus-idp/backstage-plugins/commit/d625cb2470513862027e048c70944275043ce70a))
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # @backstage/plugin-rbac-node
2
+
3
+ Welcome to the Node.js library package for the rbac plugin!
4
+
5
+ For more information about RBAC plugin, see the [RBAC plugin documentation](https://github.com/backstage/community-plugins/tree/main/workspaces/rbac/plugins/rbac-backend) on GitHub.
6
+
7
+ ## Version bump history
8
+
9
+ - Bumped to 1.0.6 to re-release changes meant for 1.0.5, which failed due to timeout - see https://github.com/janus-idp/backstage-plugins/issues/1467
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var backendPluginApi = require('@backstage/backend-plugin-api');
4
+
5
+ const pluginIdProviderExtensionPoint = backendPluginApi.createExtensionPoint({
6
+ id: "permission.rbac.pluginIdProvider"
7
+ });
8
+ const rbacProviderExtensionPoint = backendPluginApi.createExtensionPoint({
9
+ id: "permission.rbac.rbacProvider"
10
+ });
11
+
12
+ exports.pluginIdProviderExtensionPoint = pluginIdProviderExtensionPoint;
13
+ exports.rbacProviderExtensionPoint = rbacProviderExtensionPoint;
14
+ //# sourceMappingURL=extensions.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createExtensionPoint } from '@backstage/backend-plugin-api';\n\nimport { PluginIdProvider, RBACProvider } from './types';\n\n/**\n * An extension point the exposes the ability to configure additional PluginIDProviders.\n *\n * @public\n */\nexport const pluginIdProviderExtensionPoint =\n createExtensionPoint<PluginIdProviderExtensionPoint>({\n id: 'permission.rbac.pluginIdProvider',\n });\n\n/**\n * The interface for {@link pluginIdProviderExtensionPoint}.\n *\n * @public\n */\nexport type PluginIdProviderExtensionPoint = {\n addPluginIdProvider(pluginIdProvider: PluginIdProvider): void;\n};\n\nexport const rbacProviderExtensionPoint =\n createExtensionPoint<RBACProviderExtensionPoint>({\n id: 'permission.rbac.rbacProvider',\n });\n\nexport type RBACProviderExtensionPoint = {\n addRBACProvider(\n ...providers: Array<RBACProvider | Array<RBACProvider>>\n ): void;\n};\n"],"names":["createExtensionPoint"],"mappings":";;;;AAwBO,MAAM,iCACXA,qCAAqD,CAAA;AAAA,EACnD,EAAI,EAAA,kCAAA;AACN,CAAC,EAAA;AAWI,MAAM,6BACXA,qCAAiD,CAAA;AAAA,EAC/C,EAAI,EAAA,8BAAA;AACN,CAAC;;;;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var extensions = require('./extensions.cjs.js');
4
+
5
+
6
+
7
+ exports.pluginIdProviderExtensionPoint = extensions.pluginIdProviderExtensionPoint;
8
+ exports.rbacProviderExtensionPoint = extensions.rbacProviderExtensionPoint;
9
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,39 @@
1
+ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
+
3
+ /**
4
+ * Used to provide a list of pluginIDs on which a permission well-known endpoint is to be searched.
5
+ * @public
6
+ */
7
+ interface PluginIdProvider {
8
+ getPluginIds: () => string[];
9
+ }
10
+ interface RBACProvider {
11
+ getProviderName(): string;
12
+ connect(connection: RBACProviderConnection): Promise<void>;
13
+ refresh(): Promise<void>;
14
+ }
15
+ interface RBACProviderConnection {
16
+ applyRoles(roles: string[][]): Promise<void>;
17
+ applyPermissions(permissions: string[][]): Promise<void>;
18
+ }
19
+
20
+ /**
21
+ * An extension point the exposes the ability to configure additional PluginIDProviders.
22
+ *
23
+ * @public
24
+ */
25
+ declare const pluginIdProviderExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<PluginIdProviderExtensionPoint>;
26
+ /**
27
+ * The interface for {@link pluginIdProviderExtensionPoint}.
28
+ *
29
+ * @public
30
+ */
31
+ type PluginIdProviderExtensionPoint = {
32
+ addPluginIdProvider(pluginIdProvider: PluginIdProvider): void;
33
+ };
34
+ declare const rbacProviderExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<RBACProviderExtensionPoint>;
35
+ type RBACProviderExtensionPoint = {
36
+ addRBACProvider(...providers: Array<RBACProvider | Array<RBACProvider>>): void;
37
+ };
38
+
39
+ export { type PluginIdProvider, type PluginIdProviderExtensionPoint, type RBACProvider, type RBACProviderConnection, type RBACProviderExtensionPoint, pluginIdProviderExtensionPoint, rbacProviderExtensionPoint };
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@backstage-community/plugin-rbac-node",
3
+ "description": "Node.js library for the rbac plugin",
4
+ "version": "1.8.1",
5
+ "main": "dist/index.cjs.js",
6
+ "types": "dist/index.d.ts",
7
+ "license": "Apache-2.0",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "types": "dist/index.d.ts"
12
+ },
13
+ "backstage": {
14
+ "role": "node-library",
15
+ "supported-versions": "1.32.5",
16
+ "pluginId": "rbac",
17
+ "pluginPackages": [
18
+ "@backstage-community/plugin-rbac",
19
+ "@backstage-community/plugin-rbac-backend",
20
+ "@backstage-community/plugin-rbac-common",
21
+ "@backstage-community/plugin-rbac-node"
22
+ ]
23
+ },
24
+ "scripts": {
25
+ "build": "backstage-cli package build",
26
+ "tsc": "tsc",
27
+ "prettier:check": "prettier --ignore-unknown --check .",
28
+ "prettier:fix": "prettier --ignore-unknown --write .",
29
+ "lint:check": "backstage-cli package lint",
30
+ "lint:fix": "backstage-cli package lint --fix",
31
+ "test": "backstage-cli package test --passWithNoTests --coverage",
32
+ "clean": "backstage-cli package clean",
33
+ "prepack": "backstage-cli package prepack",
34
+ "postpack": "backstage-cli package postpack"
35
+ },
36
+ "devDependencies": {
37
+ "@backstage/cli": "0.28.2",
38
+ "@spotify/prettier-config": "^15.0.0",
39
+ "prettier": "3.3.3"
40
+ },
41
+ "files": [
42
+ "dist"
43
+ ],
44
+ "dependencies": {
45
+ "@backstage/backend-plugin-api": "^1.0.1"
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "https://github.com/backstage/community-plugins",
50
+ "directory": "workspaces/rbac/plugins/rbac-node"
51
+ },
52
+ "maintainers": [
53
+ "@PatAKnight"
54
+ ],
55
+ "author": "Red Hat",
56
+ "homepage": "https://red.ht/rhdh",
57
+ "bugs": "https://github.com/backstage/community-plugins/issues",
58
+ "keywords": [
59
+ "support:production",
60
+ "lifecycle:active"
61
+ ]
62
+ }