@bedrock/kms-http 14.2.1 → 14.3.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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # bedrock-kms-http ChangeLog
2
2
 
3
+ ## 14.3.0 - 2022-05-16
4
+
5
+ ### Added
6
+ - Add debug logging for keystore config cache busting.
7
+
3
8
  ## 14.2.1 - 2022-05-13
4
9
 
5
10
  ### Fixed
package/lib/middleware.js CHANGED
@@ -11,6 +11,7 @@ import {
11
11
  defaultDocumentLoader as documentLoader,
12
12
  defaultModuleManager as moduleManager
13
13
  } from '@bedrock/kms';
14
+ import {logger} from './logger.js';
14
15
  import {reportOperationUsage} from './metering.js';
15
16
  const require = createRequire(import.meta.url);
16
17
  const {
@@ -166,6 +167,10 @@ async function getKeystoreController({req}) {
166
167
  }
167
168
 
168
169
  if(!keyId) {
170
+ logger.debug(
171
+ 'No verification method found in zcap when trying to bust keystore ' +
172
+ 'config cache.');
173
+
169
174
  // no verification method to check, use cached keystore controller
170
175
  return req.webkms.keystore.controller;
171
176
  }
@@ -181,6 +186,7 @@ async function getKeystoreController({req}) {
181
186
  });
182
187
  const {config: keystore} = configRecord;
183
188
  req.webkms = {keystore, configRecord};
189
+ logger.debug('Forced fresh keystore config retrieval during zcap check.');
184
190
  }
185
191
 
186
192
  return req.webkms.keystore.controller;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/kms-http",
3
- "version": "14.2.1",
3
+ "version": "14.3.0",
4
4
  "type": "module",
5
5
  "description": "Bedrock KMS HTTP API",
6
6
  "main": "./lib/index.js",