@itentialopensource/adapter-utils 5.9.2 → 5.9.4
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 +16 -0
- package/lib/authenticationHandler.js +5 -1
- package/lib/connectorRest.js +2 -2
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 5.9.4 [10-14-2024]
|
|
3
|
+
|
|
4
|
+
* Fix ssl conditional
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapter-utils!308
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 5.9.3 [10-10-2024]
|
|
11
|
+
|
|
12
|
+
* add sts region
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapter-utils!307
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 5.9.2 [10-07-2024]
|
|
3
19
|
|
|
4
20
|
* add token logs
|
|
@@ -122,7 +122,7 @@ class AuthenticationHandler {
|
|
|
122
122
|
sessionToken: this.allProps.authentication.aws_session_token,
|
|
123
123
|
accessKeyId: this.allProps.authentication.aws_access_key,
|
|
124
124
|
secretAccessKey: this.allProps.authentication.aws_secret_key,
|
|
125
|
-
region:
|
|
125
|
+
region: options.region
|
|
126
126
|
};
|
|
127
127
|
// Add optional config items (ssl, endpoint, proxy)
|
|
128
128
|
if (this.allProps.authentication.aws_sts) {
|
|
@@ -132,6 +132,9 @@ class AuthenticationHandler {
|
|
|
132
132
|
if (this.allProps.authentication.aws_sts.endpoint) {
|
|
133
133
|
configObj.endpoint = this.allProps.authentication.aws_sts.endpoint;
|
|
134
134
|
}
|
|
135
|
+
if (this.allProps.authentication.aws_sts.region) {
|
|
136
|
+
configObj.region = this.allProps.authentication.aws_sts.region;
|
|
137
|
+
}
|
|
135
138
|
if (this.allProps.authentication.aws_sts.proxy) {
|
|
136
139
|
configObj.httpOptions = {
|
|
137
140
|
proxy: this.allProps.authentication.aws_sts.proxy
|
|
@@ -144,6 +147,7 @@ class AuthenticationHandler {
|
|
|
144
147
|
}
|
|
145
148
|
// set the original AWS access information (from properties)
|
|
146
149
|
AWS.config.update(configObj);
|
|
150
|
+
log.debug(`STS OPTIONS: ${JSON.stringify(configObj)}`);
|
|
147
151
|
|
|
148
152
|
// use STS to get the AWS access information for the user defined in STWS Params
|
|
149
153
|
const sts = new AWS.STS();
|
package/lib/connectorRest.js
CHANGED
|
@@ -4617,7 +4617,7 @@ class ConnectorRest {
|
|
|
4617
4617
|
return callback(false);
|
|
4618
4618
|
}
|
|
4619
4619
|
}
|
|
4620
|
-
if (sslEnabled && !sslAcceptInvalid && (!sslCAFile
|
|
4620
|
+
if (sslEnabled && !sslAcceptInvalid && (!sslCAFile && !sslCAFileContent)) {
|
|
4621
4621
|
log.error(`${origin}: FAILED TO LOAD - missing required CA File`);
|
|
4622
4622
|
return callback(false);
|
|
4623
4623
|
}
|
|
@@ -4661,7 +4661,7 @@ class ConnectorRest {
|
|
|
4661
4661
|
return callback(false);
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
|
-
if (sslEnabled && !sslAcceptInvalid && (!sslCAFile
|
|
4664
|
+
if (sslEnabled && !sslAcceptInvalid && (!sslCAFile && !sslCAFileContent)) {
|
|
4665
4665
|
log.error(`${origin}: FAILED TO LOAD - missing required CA File`);
|
|
4666
4666
|
return callback(false);
|
|
4667
4667
|
}
|
package/package.json
CHANGED
|
Binary file
|