Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-crypto/kms-keyring

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/kms-keyring - npm Package Compare versions

Comparing version 0.1.0-preview.3 to 0.1.0-preview.4

27

build/main/kms_keyring.js

@@ -66,3 +66,3 @@ "use strict";

.setUnencryptedDataKey(dataKey.Plaintext, trace)
.addEncryptedDataKey(helpers_1.kmsResponseToEncryptedDataKey(dataKey), material_management_1.KeyringTraceFlag.WRAPPING_KEY_ENCRYPTED_DATA_KEY);
.addEncryptedDataKey(helpers_1.kmsResponseToEncryptedDataKey(dataKey), material_management_1.KeyringTraceFlag.WRAPPING_KEY_ENCRYPTED_DATA_KEY | material_management_1.KeyringTraceFlag.WRAPPING_KEY_SIGNED_ENC_CTX);
}

@@ -76,3 +76,3 @@ else if (generatorKeyId) {

*/
const unencryptedDataKey = material.getUnencryptedDataKey();
const unencryptedDataKey = material_management_1.unwrapDataKey(material.getUnencryptedDataKey());
const flags = material_management_1.KeyringTraceFlag.WRAPPING_KEY_ENCRYPTED_DATA_KEY | material_management_1.KeyringTraceFlag.WRAPPING_KEY_SIGNED_ENC_CTX;

@@ -107,2 +107,3 @@ for (const kmsKey of keyIds) {

});
let cmkErrors = [];
for (const edk of decryptableEDKs) {

@@ -114,6 +115,7 @@ let dataKey = false;

catch (e) {
// there should be some debug here? or wrap?
// Failures decrypt should not short-circuit the process
// If the caller does not have access they may have access
// through another Keyring.
/* Failures onDecrypt should not short-circuit the process
* If the caller does not have access they may have access
* through another Keyring.
*/
cmkErrors.push(e);
}

@@ -133,2 +135,13 @@ /* Check for early return (Postcondition): clientProvider may not return a client. */

}
/* Postcondition: A CMK must provide a valid data key or KMS must not have raised any errors.
* If I have a data key,
* decrypt errors can be ignored.
* However, if I was unable to decrypt a data key AND I have errors,
* these errors should bubble up.
* Otherwise, the only error customers will see is that
* the material does not have an unencrypted data key.
* So I return a concatenated Error message
*/
material_management_1.needs(material.hasValidKey() || (!material.hasValidKey() && !cmkErrors.length), cmkErrors
.reduce((m, e, i) => `${m} Error #${i + 1} \n ${e.stack} \n`, 'Unable to decrypt data key and one or more KMS CMKs had an error. \n '));
return material;

@@ -141,2 +154,2 @@ }

exports.KmsKeyringClass = KmsKeyringClass;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia21zX2tleXJpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMva21zX2tleXJpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7O0dBYUc7O0FBT0gseUVBV3dDO0FBQ3hDLHVDQUE2RztBQUM3Ryx1RUFBK0Q7QUE0Qi9ELFNBQWdCLGVBQWUsQ0FDN0IsV0FBb0M7SUFFcEMsTUFBTSxVQUFXLFNBQVEsV0FBVztRQU9sQyxZQUFhLEVBQUUsY0FBYyxFQUFFLGNBQWMsRUFBRSxNQUFNLEdBQUcsRUFBRSxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQTJCO1lBQzNHLEtBQUssRUFBRSxDQUFBO1lBQ1AsdUdBQXVHO1lBQ3ZHLDJCQUFLLENBQUMsSUFBSSxDQUFDLFdBQVcsS0FBSyxVQUFVLEVBQUUsK0JBQStCLENBQUMsQ0FBQTtZQUN2RSxxREFBcUQ7WUFDckQsMkJBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLElBQUksQ0FBQyxjQUFjLElBQUksQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLEVBQUUsdURBQXVELENBQUMsQ0FBQTtZQUNsSCxrRkFBa0Y7WUFDbEYsMkJBQUssQ0FBQyxDQUFDLENBQUMsU0FBUyxJQUFJLENBQUMsY0FBYyxJQUFJLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ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ENBQUMsQ0FBQyxRQUFRLENBQUMsV0FBVyxFQUFFLElBQUksQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLEVBQzFFLFNBQVM7aUJBQ1IsTUFBTSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLEdBQUcsQ0FBQyxXQUFXLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDLEtBQUssS0FBSyxFQUMxRCx1RUFBdUUsQ0FBQyxDQUFDLENBQUE7WUFFL0UsT0FBTyxRQUFRLENBQUE7UUFDakIsQ0FBQztLQUNGO0lBQ0Qsb0NBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQTtJQUMxQixPQUFPLFVBQVUsQ0FBQTtBQUNuQixDQUFDO0FBdEtELDBDQXNLQyJ9

@@ -17,3 +17,3 @@ /*

KeyringTraceFlag, // eslint-disable-line no-unused-vars
immutableClass, readOnlyProperty } from '@aws-crypto/material-management';
immutableClass, readOnlyProperty, unwrapDataKey } from '@aws-crypto/material-management';
import { KMS_PROVIDER_ID, generateDataKey, encrypt, decrypt, kmsResponseToEncryptedDataKey } from './helpers';

@@ -67,3 +67,3 @@ import { regionFromKmsKeyArn } from './region_from_kms_key_arn';

.setUnencryptedDataKey(dataKey.Plaintext, trace)
.addEncryptedDataKey(kmsResponseToEncryptedDataKey(dataKey), KeyringTraceFlag.WRAPPING_KEY_ENCRYPTED_DATA_KEY);
.addEncryptedDataKey(kmsResponseToEncryptedDataKey(dataKey), KeyringTraceFlag.WRAPPING_KEY_ENCRYPTED_DATA_KEY | KeyringTraceFlag.WRAPPING_KEY_SIGNED_ENC_CTX);
}

@@ -77,3 +77,3 @@ else if (generatorKeyId) {

*/
const unencryptedDataKey = material.getUnencryptedDataKey();
const unencryptedDataKey = unwrapDataKey(material.getUnencryptedDataKey());
const flags = KeyringTraceFlag.WRAPPING_KEY_ENCRYPTED_DATA_KEY | KeyringTraceFlag.WRAPPING_KEY_SIGNED_ENC_CTX;

@@ -108,2 +108,3 @@ for (const kmsKey of keyIds) {

});
let cmkErrors = [];
for (const edk of decryptableEDKs) {

@@ -115,6 +116,7 @@ let dataKey = false;

catch (e) {
// there should be some debug here? or wrap?
// Failures decrypt should not short-circuit the process
// If the caller does not have access they may have access
// through another Keyring.
/* Failures onDecrypt should not short-circuit the process
* If the caller does not have access they may have access
* through another Keyring.
*/
cmkErrors.push(e);
}

@@ -134,2 +136,13 @@ /* Check for early return (Postcondition): clientProvider may not return a client. */

}
/* Postcondition: A CMK must provide a valid data key or KMS must not have raised any errors.
* If I have a data key,
* decrypt errors can be ignored.
* However, if I was unable to decrypt a data key AND I have errors,
* these errors should bubble up.
* Otherwise, the only error customers will see is that
* the material does not have an unencrypted data key.
* So I return a concatenated Error message
*/
needs(material.hasValidKey() || (!material.hasValidKey() && !cmkErrors.length), cmkErrors
.reduce((m, e, i) => `${m} Error #${i + 1} \n ${e.stack} \n`, 'Unable to decrypt data key and one or more KMS CMKs had an error. \n '));
return material;

@@ -141,2 +154,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia21zX2tleXJpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMva21zX2tleXJpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7R0FhRztBQU9ILE9BQU8sRUFDTCxLQUFLLEVBS1MscUNBQXFDO0FBQ25ELGdCQUFnQixFQUNFLHFDQUFxQztBQUN2RCxjQUFjLEVBQ2QsZ0JBQWdCLEVBQ2pCLE1BQU0saUNBQWlDLENBQUE7QUFDeEMsT0FBTyxFQUFFLGVBQWUsRUFBRSxlQUFlLEVBQUUsT0FBTyxFQUFFLE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLFdBQVcsQ0FBQTtBQUM3RyxPQUFPLEVBQUUsbUJBQW1CLEVB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UFFLEVBQUUsQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQyxLQUFLLEtBQUssRUFDMUQsdUVBQXVFLENBQUMsQ0FBQyxDQUFBO1lBRS9FLE9BQU8sUUFBUSxDQUFBO1FBQ2pCLENBQUM7S0FDRjtJQUNELGNBQWMsQ0FBQyxVQUFVLENBQUMsQ0FBQTtJQUMxQixPQUFPLFVBQVUsQ0FBQTtBQUNuQixDQUFDIn0=

@@ -6,2 +6,19 @@ # Change Log

# [0.1.0-preview.4](/compare/@aws-crypto/kms-keyring@0.1.0-preview.3...@aws-crypto/kms-keyring@0.1.0-preview.4) (2019-09-20)
### Bug Fixes
* Better error messageing (#212) 7198100, closes #212 #152
* KeyringTraceFlag requirements and data key caching (#210) 7dfa1ae, closes #210
### Features
* Suport Node.js crypto KeyObjects (#200) 77ad031, closes #200 #74
# [0.1.0-preview.3](/compare/@aws-crypto/kms-keyring@0.1.0-preview.2...@aws-crypto/kms-keyring@0.1.0-preview.3) (2019-08-08)

@@ -8,0 +25,0 @@

{
"name": "@aws-crypto/kms-keyring",
"version": "0.1.0-preview.3",
"version": "0.1.0-preview.4",
"scripts": {

@@ -19,3 +19,3 @@ "prepublishOnly": "npm run build",

"dependencies": {
"@aws-crypto/material-management": "^0.2.0-preview.3",
"@aws-crypto/material-management": "^0.2.0-preview.4",
"tslib": "^1.9.3"

@@ -51,3 +51,3 @@ },

},
"gitHead": "698180f30c85ef77a5739ebadd676d4b41ad441f"
"gitHead": "b3e278777e164258f0f40f5ec5d260f1c0d21a9b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc