@itentialopensource/adapter-utils 4.48.4 → 4.48.6
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/CHANGELOG.md +18 -0
- package/lib/connectorRest.js +15 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
## 4.48.6 [01-03-2023]
|
|
3
|
+
|
|
4
|
+
* Add passphrase as a ssl option
|
|
5
|
+
|
|
6
|
+
Closes ADAPT-2449
|
|
7
|
+
|
|
8
|
+
See merge request itentialopensource/adapter-utils!245
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 4.48.5 [12-29-2022]
|
|
13
|
+
|
|
14
|
+
* Update file package.json - update jsonwebtoken version
|
|
15
|
+
|
|
16
|
+
See merge request itentialopensource/adapter-utils!244
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
2
20
|
## 4.48.4 [10-25-2022]
|
|
3
21
|
|
|
4
22
|
* Clean xml string sent into the adapter task and troubleshoot openstack_nova adapter
|
package/lib/connectorRest.js
CHANGED
|
@@ -78,6 +78,7 @@ let sslCAFile = null;
|
|
|
78
78
|
let sslKeyFile = null;
|
|
79
79
|
let sslCertFile = null;
|
|
80
80
|
let sslCiphers = null;
|
|
81
|
+
let sslPassphrase = null;
|
|
81
82
|
let secureProtocol = null;
|
|
82
83
|
let proxyEnabled = false;
|
|
83
84
|
let proxyHost = null;
|
|
@@ -1902,6 +1903,9 @@ function buildTokenRequest(reqPath, reqBody, callProperties, callback) {
|
|
|
1902
1903
|
if (sslCiphers) {
|
|
1903
1904
|
options.ciphers = sslCiphers;
|
|
1904
1905
|
}
|
|
1906
|
+
if (sslPassphrase) {
|
|
1907
|
+
options.passphrase = sslPassphrase;
|
|
1908
|
+
}
|
|
1905
1909
|
if (secureProtocol) {
|
|
1906
1910
|
options.secureProtocol = secureProtocol;
|
|
1907
1911
|
}
|
|
@@ -3662,6 +3666,11 @@ class ConnectorRest {
|
|
|
3662
3666
|
sslCiphers = props.ssl.ciphers;
|
|
3663
3667
|
}
|
|
3664
3668
|
|
|
3669
|
+
// set the ssl passphrase (optional - default is null)
|
|
3670
|
+
if (typeof props.ssl.passphrase === 'string') {
|
|
3671
|
+
sslPassphrase = props.ssl.passphrase;
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3665
3674
|
// set the ssl ciphers (optional - default is null)
|
|
3666
3675
|
if (typeof props.ssl.secure_protocol === 'string') {
|
|
3667
3676
|
secureProtocol = props.ssl.secure_protocol;
|
|
@@ -3949,6 +3958,9 @@ class ConnectorRest {
|
|
|
3949
3958
|
if (sslCiphers) {
|
|
3950
3959
|
options.ciphers = sslCiphers;
|
|
3951
3960
|
}
|
|
3961
|
+
if (sslPassphrase) {
|
|
3962
|
+
options.passphrase = sslPassphrase;
|
|
3963
|
+
}
|
|
3952
3964
|
if (secureProtocol) {
|
|
3953
3965
|
options.secureProtocol = secureProtocol;
|
|
3954
3966
|
}
|
|
@@ -4133,6 +4145,9 @@ class ConnectorRest {
|
|
|
4133
4145
|
if (sslCiphers) {
|
|
4134
4146
|
options.ciphers = sslCiphers;
|
|
4135
4147
|
}
|
|
4148
|
+
if (sslPassphrase) {
|
|
4149
|
+
options.passphrase = sslPassphrase;
|
|
4150
|
+
}
|
|
4136
4151
|
if (secureProtocol) {
|
|
4137
4152
|
options.secureProtocol = secureProtocol;
|
|
4138
4153
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-utils",
|
|
3
|
-
"version": "4.48.
|
|
3
|
+
"version": "4.48.6",
|
|
4
4
|
"description": "Itential Adapter Utility Libraries",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node utils/setup.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"https-proxy-agent": "^2.2.1",
|
|
36
36
|
"json-query": "^2.2.2",
|
|
37
37
|
"jsontoxml": "^1.0.1",
|
|
38
|
-
"jsonwebtoken": "^
|
|
38
|
+
"jsonwebtoken": "^9.0.0",
|
|
39
39
|
"mongodb": "^3.3.3",
|
|
40
40
|
"querystring": "^0.2.0",
|
|
41
41
|
"readline-sync": "^1.4.10",
|