Skip to content

Commit b5e7e30

Browse files
feat: enable tlsUseSystemCA by default MONGOSH-1852 (#2119)
* feat: enable tlsUseSystemCA by default MONGOSH-1852 * fix: make ssh2 external * Update config/webpack.base.config.js Co-authored-by: Anna Henningsen <[email protected]> * Update config/webpack.base.config.js Co-authored-by: Anna Henningsen <[email protected]> * fix: webpack * fix: WebAssembly * chore: bump devtools-connect * refactor: remove noDeprecation true * test: change name * fixup: bump devtools-connect to 3.2.2, fix snapshot support test * fixup: bump system-ca + macos/win certificate store addons * fixup: bump macos-export-certificate-and-key again * fixup: bump macos-export-certificate-and-key again for CodeQL ... * fixup: apply lazy-webpack-modules check with slashes after path normalization * fixup: un-.only() ... --------- Co-authored-by: Anna Henningsen <[email protected]> Co-authored-by: Anna Henningsen <[email protected]>
1 parent 0cd7db6 commit b5e7e30

File tree

24 files changed

+384
-134
lines changed

24 files changed

+384
-134
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ variable. For detailed instructions for each of our supported platforms, please
6767
--tlsCertificateSelector [arg] TLS Certificate in system store (Windows and macOS only)
6868
--tlsCRLFile [arg] Specifies the .pem file that contains the Certificate Revocation List
6969
--tlsDisabledProtocols [arg] Comma separated list of TLS protocols to disable [TLS1_0,TLS1_1,TLS1_2]
70-
--tlsUseSystemCA Load the operating system trusted certificate list
7170
--tlsFIPSMode Enable the system TLS library's FIPS mode
7271

7372
API version options:
@@ -123,7 +122,7 @@ variable. For detailed instructions for each of our supported platforms, please
123122
124123
### Requirements
125124
126-
- Node.js v16.x
125+
- Node.js v20.x
127126
128127
### Install
129128

config/webpack.base.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ module.exports = {
2222
// only provide features that Node.js also provides out of the box.
2323
browserslist: path.resolve(__dirname, '..', 'scripts', 'dummy-browserslist.js'),
2424
tr46: path.resolve(__dirname, '..', 'scripts', 'tr46-stub.js'),
25+
// Optional native-addon dependencies of ssh2
26+
'cpu-features': false,
27+
'./crypto/build/Release/sshcrypto.node': false,
2528
}
2629
},
2730

2831
externals: {
29-
"node:crypto": "commonjs2 crypto",
30-
electron: "commonjs2 electron" // optional dep of the OIDC plugin
32+
'node:crypto': 'commonjs2 crypto',
33+
electron: 'commonjs2 electron', // Optional dep of the OIDC plugin
3134
},
3235

3336
optimization: {

0 commit comments

Comments
 (0)