@backstage-community/plugin-vault-node 0.1.11

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,208 @@
1
+ # @backstage-community/plugin-vault-node
2
+
3
+ ## 0.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 193a2a3: Migrated from the [backstage/backstage](https://github.com/backstage/backstage) monorepo.
8
+
9
+ ## 0.1.10
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - @backstage/backend-plugin-api@0.6.17
15
+
16
+ ## 0.1.10-next.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @backstage/backend-plugin-api@0.6.17-next.1
22
+
23
+ ## 0.1.10-next.0
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+ - @backstage/backend-plugin-api@0.6.17-next.0
29
+
30
+ ## 0.1.9
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies
35
+ - @backstage/backend-plugin-api@0.6.16
36
+
37
+ ## 0.1.8
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies
42
+ - @backstage/backend-plugin-api@0.6.15
43
+
44
+ ## 0.1.7
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies
49
+ - @backstage/backend-plugin-api@0.6.14
50
+
51
+ ## 0.1.7-next.2
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies
56
+ - @backstage/backend-plugin-api@0.6.14-next.2
57
+
58
+ ## 0.1.7-next.1
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies
63
+ - @backstage/backend-plugin-api@0.6.14-next.1
64
+
65
+ ## 0.1.6-next.0
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies
70
+ - @backstage/backend-plugin-api@0.6.13-next.0
71
+
72
+ ## 0.1.3
73
+
74
+ ### Patch Changes
75
+
76
+ - 8472188: Added or fixed the `repository` field in `package.json`.
77
+ - Updated dependencies
78
+ - @backstage/backend-plugin-api@0.6.10
79
+
80
+ ## 0.1.3-next.3
81
+
82
+ ### Patch Changes
83
+
84
+ - 8472188: Added or fixed the `repository` field in `package.json`.
85
+ - Updated dependencies
86
+ - @backstage/backend-plugin-api@0.6.10-next.3
87
+
88
+ ## 0.1.3-next.2
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies
93
+ - @backstage/backend-plugin-api@0.6.10-next.2
94
+
95
+ ## 0.1.3-next.1
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies
100
+ - @backstage/backend-plugin-api@0.6.10-next.1
101
+
102
+ ## 0.1.3-next.0
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies
107
+ - @backstage/backend-plugin-api@0.6.10-next.0
108
+
109
+ ## 0.1.2
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies
114
+ - @backstage/backend-plugin-api@0.6.9
115
+
116
+ ## 0.1.2-next.2
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies
121
+ - @backstage/backend-plugin-api@0.6.9-next.2
122
+
123
+ ## 0.1.2-next.1
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies
128
+ - @backstage/backend-plugin-api@0.6.9-next.1
129
+
130
+ ## 0.1.2-next.0
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies
135
+ - @backstage/backend-plugin-api@0.6.9-next.0
136
+
137
+ ## 0.1.1
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies
142
+ - @backstage/backend-plugin-api@0.6.8
143
+
144
+ ## 0.1.1-next.3
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies
149
+ - @backstage/backend-plugin-api@0.6.8-next.3
150
+
151
+ ## 0.1.1-next.2
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies
156
+ - @backstage/backend-plugin-api@0.6.8-next.2
157
+
158
+ ## 0.1.1-next.1
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies
163
+ - @backstage/backend-plugin-api@0.6.8-next.1
164
+
165
+ ## 0.1.1-next.0
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies
170
+ - @backstage/backend-plugin-api@0.6.8-next.0
171
+
172
+ ## 0.1.0
173
+
174
+ ### Minor Changes
175
+
176
+ - 7a41bcf2af: Initial version of the `plugin-vault-node`` package. It contains the extension point definitions
177
+ for the vault backend, as well as some types that will be deprecated in the backend plugin.
178
+
179
+ ### Patch Changes
180
+
181
+ - Updated dependencies
182
+ - @backstage/backend-plugin-api@0.6.7
183
+
184
+ ## 0.1.0-next.2
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies
189
+ - @backstage/backend-plugin-api@0.6.7-next.2
190
+
191
+ ## 0.1.0-next.1
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies
196
+ - @backstage/backend-plugin-api@0.6.7-next.1
197
+
198
+ ## 0.1.0-next.0
199
+
200
+ ### Minor Changes
201
+
202
+ - 7a41bcf2af: Initial version of the `plugin-vault-node`` package. It contains the extension point definitions
203
+ for the vault backend, as well as some types that will be deprecated in the backend plugin.
204
+
205
+ ### Patch Changes
206
+
207
+ - Updated dependencies
208
+ - @backstage/backend-plugin-api@0.6.7-next.0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @backstage-community/plugin-vault-node
2
+
3
+ Houses types and utilities for building the vault modules
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var backendPluginApi = require('@backstage/backend-plugin-api');
4
+
5
+ const vaultExtensionPoint = backendPluginApi.createExtensionPoint({
6
+ id: "vault.configuration"
7
+ });
8
+
9
+ exports.vaultExtensionPoint = vaultExtensionPoint;
10
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["/*\n * Copyright 2023 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 */\n\nimport { createExtensionPoint } from '@backstage/backend-plugin-api';\nimport { VaultApi } from './api';\n\n/**\n * Extension point for vault.\n *\n * @public\n */\nexport interface VaultExtensionPoint {\n setClient(vaultClient: VaultApi): void;\n}\n\n/**\n * Extension point for vault.\n *\n * @public\n */\nexport const vaultExtensionPoint = createExtensionPoint<VaultExtensionPoint>({\n id: 'vault.configuration',\n});\n"],"names":["createExtensionPoint"],"mappings":";;;;AAiCO,MAAM,sBAAsBA,qCAA0C,CAAA;AAAA,EAC3E,EAAI,EAAA,qBAAA;AACN,CAAC;;;;"}
@@ -0,0 +1,52 @@
1
+ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
+
3
+ /**
4
+ * Object containing the secret name and some links
5
+ * @public
6
+ */
7
+ type VaultSecret = {
8
+ name: string;
9
+ path: string;
10
+ showUrl: string;
11
+ editUrl: string;
12
+ };
13
+ /**
14
+ * Interface for the Vault API
15
+ * @public
16
+ */
17
+ interface VaultApi {
18
+ /**
19
+ * Returns the URL to access the Vault UI with the defined config.
20
+ */
21
+ getFrontendSecretsUrl(): string;
22
+ /**
23
+ * Returns a list of secrets used to show in a table.
24
+ * @param secretPath - The path where the secrets are stored in Vault
25
+ * @param options - Additional options to be passed to the Vault API, allows to override vault default settings in app config file
26
+ */
27
+ listSecrets(secretPath: string, options?: {
28
+ secretEngine?: string;
29
+ }): Promise<VaultSecret[]>;
30
+ /**
31
+ * Optional, to renew the token used to list the secrets. Throws an
32
+ * error if the token renewal went wrong.
33
+ */
34
+ renewToken?(): Promise<void>;
35
+ }
36
+
37
+ /**
38
+ * Extension point for vault.
39
+ *
40
+ * @public
41
+ */
42
+ interface VaultExtensionPoint {
43
+ setClient(vaultClient: VaultApi): void;
44
+ }
45
+ /**
46
+ * Extension point for vault.
47
+ *
48
+ * @public
49
+ */
50
+ declare const vaultExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<VaultExtensionPoint>;
51
+
52
+ export { type VaultApi, type VaultExtensionPoint, type VaultSecret, vaultExtensionPoint };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@backstage-community/plugin-vault-node",
3
+ "version": "0.1.11",
4
+ "description": "Node.js library for the vault plugin",
5
+ "backstage": {
6
+ "role": "node-library"
7
+ },
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "types": "dist/index.d.ts"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/backstage/community-plugins",
16
+ "directory": "workspaces/vault/plugins/vault-node"
17
+ },
18
+ "license": "Apache-2.0",
19
+ "main": "dist/index.cjs.js",
20
+ "types": "dist/index.d.ts",
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "build": "backstage-cli package build",
26
+ "clean": "backstage-cli package clean",
27
+ "lint": "backstage-cli package lint",
28
+ "prepack": "backstage-cli package prepack",
29
+ "postpack": "backstage-cli package postpack",
30
+ "test": "backstage-cli package test"
31
+ },
32
+ "dependencies": {
33
+ "@backstage/backend-plugin-api": "^0.6.17"
34
+ },
35
+ "devDependencies": {
36
+ "@backstage/cli": "^0.26.3"
37
+ }
38
+ }