@webex/plugin-encryption 3.12.0-next.80 → 3.12.0-next.81

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/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
 
7
7
  - [Install](#install)
8
8
  - [Usage](#usage)
9
+ - [KMS certificate validation](#kms-certificate-validation)
9
10
  - [API Docs and Sample App](#api-docs-and-sample-app)
10
11
  - [Sample Code](#sample-code)
11
12
  - [Contribute](#contribute)
@@ -37,6 +38,30 @@ In addition to the module consumption via NPMJS, this module can also be consume
37
38
 
38
39
  This is a plugin for the Cisco Webex JS SDK. Please see our [developer portal](https://developer.webex.com/) and the [API reference](https://webex.github.io/webex-js-sdk/plugin-encryption/) for full details.
39
40
 
41
+ ## KMS certificate validation
42
+
43
+ KMS certificate-chain validation is disabled by default. To enable it, set
44
+ `config.encryption.shouldValidateKMSCertificate` to `true`. For example, with
45
+ trusted CA roots supplied by your application:
46
+
47
+ ```js
48
+ const webex = Webex.init({
49
+ config: {
50
+ encryption: {
51
+ shouldValidateKMSCertificate: true,
52
+ caroots, // Array of raw base64-encoded CA root certificates.
53
+ },
54
+ },
55
+ credentials: {access_token},
56
+ });
57
+ ```
58
+
59
+ Supplying `caroots` alone does not enable validation. Once enabled, validation
60
+ fails closed if trusted roots cannot be loaded or the KMS certificate chain is
61
+ untrusted. If roots are not supplied, the SDK loads and verifies its signed CA
62
+ roots asset. See the [KMS configuration and asset-hosting guide](../internal-plugin-encryption/README.md#kms-certificate-validation)
63
+ for download configuration and offline deployments.
64
+
40
65
  ## API Docs and Sample App
41
66
 
42
67
  - API Reference: [https://webex.github.io/webex-js-sdk/plugin-encryption/](https://webex.github.io/webex-js-sdk/plugin-encryption/)
package/dist/webex.js CHANGED
@@ -21,7 +21,7 @@ const WebexCore = require('@webex/webex-core').default;
21
21
  const config = require('./webex-config');
22
22
  const Webex = WebexCore.extend({
23
23
  webex: true,
24
- version: `3.12.0-next.80`
24
+ version: `3.12.0-next.81`
25
25
  });
26
26
  Webex.init = function init(attrs = {}) {
27
27
  attrs.config = merge({}, config, attrs.config); // eslint-disable-line no-param-reassign
package/package.json CHANGED
@@ -40,8 +40,8 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@webex/internal-plugin-encryption": "3.12.0-next.80",
44
- "@webex/webex-core": "3.12.0-next.70"
43
+ "@webex/internal-plugin-encryption": "3.12.0-next.81",
44
+ "@webex/webex-core": "3.12.0-next.71"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.22.11",
@@ -51,7 +51,7 @@
51
51
  "@webex/eslint-config-legacy": "0.0.0",
52
52
  "@webex/jest-config-legacy": "0.0.0",
53
53
  "@webex/legacy-tools": "0.0.0",
54
- "@webex/test-helper-mock-webex": "3.12.0-next.12",
54
+ "@webex/test-helper-mock-webex": "3.12.0-next.13",
55
55
  "eslint": "^8.24.0",
56
56
  "jest-html-reporters": "3.0.11",
57
57
  "jest-junit": "13.0.0",
@@ -65,5 +65,5 @@
65
65
  "engines": {
66
66
  "node": ">=16"
67
67
  },
68
- "version": "3.12.0-next.80"
68
+ "version": "3.12.0-next.81"
69
69
  }