@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 +5 -0
- package/lib/middleware.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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;
|