Skip to content

Commit

Permalink
feat: enable tlsUseSystemCA by default MONGOSH-1852 (#2119)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Aug 9, 2024
1 parent 0cd7db6 commit b5e7e30
Show file tree
Hide file tree
Showing 24 changed files with 384 additions and 134 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ variable. For detailed instructions for each of our supported platforms, please
--tlsCertificateSelector [arg] TLS Certificate in system store (Windows and macOS only)
--tlsCRLFile [arg] Specifies the .pem file that contains the Certificate Revocation List
--tlsDisabledProtocols [arg] Comma separated list of TLS protocols to disable [TLS1_0,TLS1_1,TLS1_2]
--tlsUseSystemCA Load the operating system trusted certificate list
--tlsFIPSMode Enable the system TLS library's FIPS mode

API version options:
Expand Down Expand Up @@ -123,7 +122,7 @@ variable. For detailed instructions for each of our supported platforms, please
### Requirements
- Node.js v16.x
- Node.js v20.x
### Install
Expand Down
7 changes: 5 additions & 2 deletions config/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ module.exports = {
// only provide features that Node.js also provides out of the box.
browserslist: path.resolve(__dirname, '..', 'scripts', 'dummy-browserslist.js'),
tr46: path.resolve(__dirname, '..', 'scripts', 'tr46-stub.js'),
// Optional native-addon dependencies of ssh2
'cpu-features': false,
'./crypto/build/Release/sshcrypto.node': false,
}
},

externals: {
"node:crypto": "commonjs2 crypto",
electron: "commonjs2 electron" // optional dep of the OIDC plugin
'node:crypto': 'commonjs2 crypto',
electron: 'commonjs2 electron', // Optional dep of the OIDC plugin
},

optimization: {
Expand Down
Loading

0 comments on commit b5e7e30

Please sign in to comment.