Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@itentialopensource/adapter-utils

Package Overview
Dependencies
Maintainers
0
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itentialopensource/adapter-utils - npm Package Compare versions

Comparing version 5.7.1 to 5.7.2

8

CHANGELOG.md
## 5.7.2 [09-06-2024]
* Update lock file
See merge request itentialopensource/adapter-utils!301
---
## 5.7.1 [09-06-2024]

@@ -3,0 +11,0 @@

36

lib/authenticationHandler.js

@@ -120,4 +120,4 @@ /* @copyright Itential, LLC 2023 */

// set the original AWS access information (from properties)
AWS.config.update({
// set up the config object
const configObj = {
sessionToken: this.allProps.authentication.aws_session_token,

@@ -127,4 +127,24 @@ accessKeyId: this.allProps.authentication.aws_access_key,

region: this.allProps.region
});
};
// Add optional config items (ssl, endpoint, proxy)
if (this.allProps.authentication.aws_sts) {
if (this.allProps.authentication.aws_sts.sslEnable === false) {
configObj.sslEnabled = false;
}
if (this.allProps.authentication.aws_sts.endpoint) {
configObj.endpoint = this.allProps.authentication.aws_sts.endpoint;
}
if (this.allProps.authentication.aws_sts.proxy) {
configObj.httpOptions = {
proxy: this.allProps.authentication.aws_sts.proxy
};
if (this.allProps.authentication.aws_sts.proxyagent) {
configObj.httpOptions.agent = this.allProps.authentication.aws_sts.proxyagent;
}
}
}
// set the original AWS access information (from properties)
AWS.config.update(configObj);
// use STS to get the AWS access information for the user defined in STWS Params

@@ -143,2 +163,7 @@ const sts = new AWS.STS();

}
if (!data || !data.Credentials || !data.Credentials.AccessKeyId || !data.Credentials.SecretAccessKey) {
const errorObj = this.requestHandlerInst.formatErrorObject(this.myid, meth, 'AWS Assume Role did not return credentials', null, null, null, null);
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
return callback(null, errorObj);
}
// extract the user specific info from the response

@@ -198,2 +223,7 @@ const accessKeyId = data.Credentials.AccessKeyId;

}
if (!data || !data.Credentials || !data.Credentials.AccessKeyId || !data.Credentials.SecretAccessKey) {
const errorObj = this.requestHandlerInst.formatErrorObject(this.myid, meth, 'AWS Assume Role did not return credentials', null, null, null, null);
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
return callback(null, errorObj);
}

@@ -200,0 +230,0 @@ // get role keys from response so we can sign the request

2

package.json
{
"name": "@itentialopensource/adapter-utils",
"version": "5.7.1",
"version": "5.7.2",
"description": "Itential Adapter Utility Libraries",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc