@webex/plugin-encryption 3.12.0-webex-services-ready.4 → 3.13.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/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,42 @@ 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
+
65
+ To observe a separate signed root bundle, set
66
+ `config.encryption.reportOnlyAssetsBaseUrl` to its asset directory. This option
67
+ has no default URL. It starts a background check after mandatory and enforced
68
+ validation succeed. Download, verification and chain failures report metrics
69
+ without delaying or rejecting setup. It works while enforcement is enabled,
70
+ including when `caroots` supplies a different enforced root set. The explicit URL
71
+ is honored in both browsers and Node.
72
+
73
+ Existing `carootsReportOnly` arrays retain their awaited behavior and take
74
+ precedence over the new report-only URL. See the configuration guide above for
75
+ asset filenames, verification, source caching and background-reporting limits.
76
+
40
77
  ## API Docs and Sample App
41
78
 
42
79
  - 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-webex-services-ready.4`
24
+ version: `3.13.0`
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-webex-services-ready.4",
44
- "@webex/webex-core": "3.12.0-webex-services-ready.4"
43
+ "@webex/internal-plugin-encryption": "3.13.0",
44
+ "@webex/webex-core": "3.13.0"
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-webex-services-ready.4",
54
+ "@webex/test-helper-mock-webex": "3.13.0",
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-webex-services-ready.4"
68
+ "version": "3.13.0"
69
69
  }