@bedrock/kms-http 14.3.1 → 15.0.0

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 DELETED
@@ -1,374 +0,0 @@
1
- # bedrock-kms-http ChangeLog
2
-
3
- ## 14.3.1 - 2022-05-16
4
-
5
- ### Fixed
6
- - Use `@digitalbazaar/webkms-switch@10.2` to ensure that pre-cached `webkms`
7
- request meta data is not overwritten and that a custom `getRootController`
8
- function is used (to enable cache busting on KMS operations).
9
-
10
- ## 14.3.0 - 2022-05-16
11
-
12
- ### Added
13
- - Add debug logging for keystore config cache busting.
14
-
15
- ## 14.2.1 - 2022-05-13
16
-
17
- ### Fixed
18
- - Fix cache busting for invoked delegated zcap cases.
19
-
20
- ## 14.2.0 - 2022-05-13
21
-
22
- ### Changed
23
- - Be more resilient to keystore config controller changes. When a keystore
24
- is new and KMS operations are performed on it that could cause false-positive
25
- fail authz errors, fetch a fresh version of the config to ensure that the
26
- controller has not changed.
27
-
28
- ## 14.1.0 - 2022-05-12
29
-
30
- ### Added
31
- - Include full error as non-public `cause` in `onError` handler.
32
-
33
- ## 14.0.0 - 2022-04-29
34
-
35
- ### Changed
36
- - **BREAKING**: Update peer deps:
37
- - `@bedrock/core@6`
38
- - `@bedrock/app-identity@3`
39
- - `@bedrock/express@8`
40
- - `@bedrock/kms@10`
41
- - `@bedrock/meter-usage-reporter@7`
42
- - `@bedrock/validation@7`
43
- - `@bedrock/zcap-storage@7`.
44
-
45
- ## 13.0.0 - 2022-04-05
46
-
47
- ### Changed
48
- - **BREAKING**: Rename package to `@bedrock/kms-http`.
49
- - **BREAKING**: Convert to module (ESM).
50
- - **BREAKING**: Remove default export.
51
- - **BREAKING**: Require node 14.x.
52
-
53
- ## 12.1.0 - 2022-03-29
54
-
55
- ### Changed
56
- - Update peer deps:
57
- - `bedrock@4.5`
58
- - `bedrock-express@6.4.1`
59
- - `bedrock-kms@8.3.0`
60
- - `bedrock-validation@5.6.3`
61
- - `bedrock-zcap-storage@5.2`.
62
- - Update internals to use esm style and use `esm.js` to
63
- transpile to CommonJS.
64
-
65
- ### Removed
66
- - Remove unused peer deps:
67
- - `bedrock-server`
68
- - `bedrock-jsonld-document-loader`
69
- - `bedrock-mongodb`.
70
-
71
- ## 12.0.1 - 2022-03-03
72
-
73
- ### Fixed
74
- - Use `@digitalbazaar/webkms-switch@10` to be consistent with
75
- `@digitalbazaar/ezcap-express@6` and other breaking changes
76
- in this major version.
77
-
78
- ## 12.0.0 - 2022-03-01
79
-
80
- ### Changed
81
- - **BREAKING**: Move zcap revocations to `/zcaps/revocations` to better
82
- future proof.
83
- - **BREAKING**: Use `@digitalbazaar/ezcap-express@6`.
84
- - **BREAKING**: This version is compatible with
85
- `@digitalbazaar/webkms-client@10`.
86
-
87
- ## 11.3.1 - 2022-02-12
88
-
89
- ### Changed
90
- - Improve internal implementation of JSON schema validators.
91
-
92
- ## 11.3.0 - 2022-02-10
93
-
94
- ### Changed
95
- - Use `bedrock-validation@5.4` with better schema compilation.
96
-
97
- ## 11.2.0 - 2022-02-08
98
-
99
- ### Added
100
- - Allow KMS operations to be configured via config system and
101
- set defaults to allow long-lived zcaps.
102
-
103
- ## 11.1.1 - 2022-01-20
104
-
105
- ### Fixed
106
- - Do not expose details from errors that aren't marked public.
107
-
108
- ## 11.1.0 - 2022-01-14
109
-
110
- ### Added
111
- - Use webkms-switch@9.1 to enable passing `zcapInvocation` to KMS
112
- modules. This enables KMS modules to disallow key operations based
113
- on zcap invocation information, if desired.
114
-
115
- ## 11.0.0 - 2022-01-11
116
-
117
- ### Changed
118
- - **BREAKING**: Use ezcap-express@5 and webkms-switch@9. These changes
119
- include major breaking simplifications to ZCAP (zcap@7).
120
-
121
- ## 10.2.0 - 2021-12-11
122
-
123
- ### Added
124
- - Add tests and update `README.md`.
125
-
126
- ### Changed
127
- - Require ezcap-express 4.3.x.
128
-
129
- ## 10.1.3 - 2021-12-10
130
-
131
- ### Fixed
132
- - Combined duplicate error code paths to simplify; the relevant code ensures
133
- that when a client sends a keystore config with an ID that does not match
134
- the config ID in the request URL, an exception will be thrown.
135
-
136
- ## 10.1.2 - 2021-12-09
137
-
138
- ### Fixed
139
- - Load keystore config for a particular request only once to create more
140
- consistent behavior. Multiple retrievals of the same keystore config during
141
- the lifetime of a request may result in loading different configs without
142
- this patch. This patch makes behavior more consistent by reusing the same
143
- loaded keystore config for the entire request. Note that there is a change
144
- to an assertion in a test on a returned error, however, that error was
145
- not going to be consistent in previous versions regardless. This fix makes
146
- it more consistent.
147
-
148
- ## 10.1.1 - 2021-11-24
149
-
150
- ### Fixed
151
- - Fix bug in meter usage aggregation.
152
-
153
- ## 10.1.0 - 2021-11-23
154
-
155
- ### Added
156
- - Do not allow zcap revocations to be stored if the meter associated with
157
- a keystore has been disabled. Storage of zcap revocations is permitted if
158
- there is no available storage to prevent potential security issues, however,
159
- the meter MUST not be disabled to make use of this feature. Very robust
160
- rate limiting MUST be applied to the revocation submission endpoint in
161
- a deployment to avoid significant storage overflow.
162
-
163
- ## 10.0.0 - 2021-10-07
164
-
165
- ### Changed
166
- - **BREAKING**: Use `webkms-switch@8` which changes the way key IDs are
167
- generated. See the [changelog](https://github.com/digitalbazaar/webkms-switch/blob/main/CHANGELOG.md).
168
-
169
- ## 9.0.0 - 2021-09-02
170
-
171
- ### Changed
172
- - **BREAKING**: Use bedrock-meter-usage-reporter@4. This new version now
173
- requires bedrock-app-identity to configure the identity for webkms
174
- applications.
175
-
176
- ## 8.0.1 - 2021-09-01
177
-
178
- ### Fixed
179
- - Do not allow meter ID to be changed when updating keystore config as
180
- the keystore controller has insufficient authority to do so. This
181
- may be enabled in the future by requiring the root zcap controller
182
- to be the meter controller when changing the meter ID.
183
-
184
- ## 8.0.0 - 2021-08-31
185
-
186
- ### Changed
187
- - **BREAKING**: Use bedrock-meter-usage-reporter@3. This new version simplifies
188
- meter usage zcap management by eliminating the need for a delegated zcap
189
- to allow reporting meter usage. Instead, the KMS service is the root
190
- controller for the meter usage endpoint for any meter that is specifically
191
- created and coupled to it.
192
- - **BREAKING**: Creating a keystore now requires sending only the full URL
193
- `meterId` for a meter, not a meter capability. The meter will be presumed
194
- to be coupled to the KMS service -- and this will be confirmed via a call
195
- to retrieve the meter information.
196
-
197
- ## 7.1.0 - 2021-08-26
198
-
199
- ### Changed
200
- - Use ezcap-express@4.2 to provide zcap revocation authorization implementation.
201
- Remove dependencies that are no longer needed because of this upgrade.
202
-
203
- ## 7.0.1 - 2021-08-18
204
-
205
- ### Fixed
206
- - Ensure promise settles before returning key description.
207
-
208
- ## 7.0.0 - 2021-08-17
209
-
210
- ### Changed
211
- - **BREAKING**: Updated to work with bedrock-meter-usage-reporter 2.x. This
212
- new version enables applications to bundle the webkms service with other
213
- services instead of requiring a microservices deployment architecture.
214
-
215
- ## 6.1.0 - 2021-07-23
216
-
217
- ### Changed
218
- - Update peer dependencies; use bedrock-did-io@4.
219
-
220
- ## 6.0.0 - 2021-07-22
221
-
222
- ### Added
223
- - **BREAKING** - Add storage and operation metering support. A meter capability
224
- must be provided to create a new keystore. This capability will be used to
225
- report keystore storage and operation usage to the associated meter.
226
-
227
- ### Changed
228
- - **BREAKING**: Require `expires` to be set on delegated zcaps.
229
- - **BREAKING**: Use updated bedrock-kms.
230
- - **BREAKING**: Simplify zcap revocation model. Now any party that has been delegated a zcap can
231
- send it to a revocation address: `<keystoreId>/revocations/<zcap ID>` without needing to have an
232
- additional zcap delegated to that party. The party must invoke the root zcap for that endpoint,
233
- which will be dynamically generated and use the delegator of the zcap as the controller, i.e., the
234
- delegator must invoke this root zcap to revoke the zcap they delegated.
235
-
236
- ### Removed
237
- - **BREAKING**: Remove `did-io`, `did-method-key`, and
238
- `did-veres-one` from deps and use `bedrock-did-io`.
239
- - **BREAKING**: Remove query endpoint. It was unused and a new design would need to
240
- be introduced in the future that properly handles authz.
241
-
242
- ## 5.0.0 - 2021-05-20
243
-
244
- ### Changed
245
- - **BREAKING**: Remove `ed25519-signature-2018` signature suite and use
246
- `ed25519-signature-2020`.
247
- - Remove `did-io`, `did-method-key`, and `did-veres-one` from deps and use
248
- `bedrock-did-io`.
249
- - Update peerDeps and deps
250
- - [@digitalbazaar/ed25519-signature-2020@2.1.0](https://github.com/digitalbazaar/ed25519-signature-2020/blob/main/CHANGELOG.md)
251
- - [@digitalbazaar/ezcap-express@3.0.1](https://github.com/digitalbazaar/ezcap-express/blob/main/CHANGELOG.md)
252
- - [@digitalbazaar/zcapld@4.0.0](https://github.com/digitalbazaar/zcapld/blob/main/CHANGELOG.md)
253
- - [http-signature-zcap-verify@7.1.0](https://github.com/digitalbazaar/http-signature-zcap-verify/blob/main/CHANGELOG.md)
254
- - [jsonld-signatures@9.0.2](https://github.com/digitalbazaar/jsonld-signatures/blob/master/CHANGELOG.md)
255
- - [webkms-switch@5.0.0](https://github.com/digitalbazaar/webkms-switch/blob/main/CHANGELOG.md)
256
- - [bedrock-kms@6.0.0](https://github.com/digitalbazaar/bedrock-kms/blob/master/CHANGELOG.md)
257
- - [bedrock-did-io@2.0.0](https://github.com/digitalbazaar/bedrock-did-io/blob/main/CHANGELOG.md)
258
- - Update test deps
259
-
260
- ### Added
261
- - Keystore configurations may now include an optional `ipAllowList` array. If
262
- specified, the KMS system will only execute requests originating from IPs
263
- listed in `ipAllowList`. This applies to key operations for all keys in the
264
- keystore as well as modification of the configuration itself.
265
-
266
- ## 4.0.0 - 2021-03-02
267
-
268
- ### Added
269
- - **BREAKING**: Implement ZCAP authz on the keystore config update API.
270
-
271
- ### Changed
272
- - **BREAKING**: Drop Node 10.x support.
273
- - **BREAKING**: Change data model and validation of keystore configs. Configs
274
- no longer include `invoker` or `delegator` properties.
275
-
276
- ## 3.2.0 - 2021-02-10
277
-
278
- ### Added
279
- - Added validators to `keystore`, `keystores`, `authorizations`, and
280
- `zcaps` endpoints.
281
- - Improve test coverage.
282
-
283
- ## 3.1.0 - 2021-01-12
284
-
285
- ### Changed
286
- - Update bedrock-account@5.0
287
-
288
- ## 3.0.0 - 2020-09-22
289
-
290
- ### Changed
291
- - **BREAKING**: Do not look up zcaps in authorizations collection;
292
- full zcap chain must be submitted. A future feature may involve
293
- ensuring that zcaps for certain keys are present in the
294
- authorizations collection as an added security measure, but
295
- those zcaps would still need to be submitted at invocation.
296
-
297
- ## 2.3.0 - 2020-06-30
298
-
299
- ### Changed
300
- - Update peerDependencies to include bedrock-account@4.
301
- - Update test deps.
302
- - Update CI workflow.
303
-
304
- ## 2.2.0 - 2020-06-19
305
-
306
- ### Added
307
- - Improve test coverage.
308
-
309
- ### Changed
310
- - Update peer deps.
311
- - Improve error handling in `_verifyHost` helper.
312
-
313
- ## 2.1.0 - 2020-05-15
314
-
315
- ### Added
316
- - Add CORS support for key ops.
317
-
318
- ### Changed
319
- - Use bedrock-kms@2.1.0.
320
-
321
- ## 2.0.0 - 2020-04-02
322
-
323
- ### Added
324
- - Create expectedRootCapability for revocations.
325
-
326
- ### Changed
327
- - **BREAKING**: Use webkms-switch@2.
328
- - **BREAKING**: Use http-signature-zcap-verify@3.
329
-
330
- ## 1.2.1 - 2020-02-27
331
-
332
- ### Fixed
333
- - Fix syntax error/typo.
334
-
335
- ## 1.2.0 - 2020-02-26
336
-
337
- ### Added
338
- - Revocations API.
339
-
340
- ### Changed
341
- - Use jsonld-signatures@5.
342
-
343
- ## 1.1.3 - 2020-01-22
344
-
345
- ### Fixed
346
- - Add missing jsonld-sigatures dep.
347
-
348
- ## 1.1.2 - 2020-01-12
349
-
350
- ### Fixed
351
- - Ensure local zcap storage is checked for invoked zcaps.
352
-
353
- ## 1.1.1 - 2020-01-12
354
-
355
- ### Fixed
356
- - Ensure local zcap storage is checked for parent zcaps.
357
-
358
- ## 1.1.0 - 2020-01-11
359
-
360
- ### Added
361
- - Support delegation by non-root controllers provided that `delegator`
362
- is set in the zcap.
363
-
364
- ## 1.0.1 - 2019-12-20
365
-
366
- ### Fixed
367
- - Fixed typo in module import.
368
-
369
- ## 1.0.0 - 2019-12-20
370
-
371
- ### Added
372
- - Added core files.
373
-
374
- - See git history for changes.
@@ -1,9 +0,0 @@
1
- {
2
- "env": {
3
- "mocha": true
4
- },
5
- "globals": {
6
- "assertNoError": true,
7
- "should": true
8
- }
9
- }