@itentialopensource/adapter-utils 5.10.0 → 5.10.1

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 CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ ## 5.10.1 [11-18-2024]
3
+
4
+ * mask values in the STS log
5
+
6
+ Closes ENG-7296
7
+
8
+ See merge request itentialopensource/adapter-utils!311
9
+
10
+ ---
11
+
2
12
  ## 5.10.0 [11-15-2024]
3
13
 
4
14
  * query without keys
@@ -19,10 +19,11 @@ class AuthenticationHandler {
19
19
  * Adapter Authentication Handler
20
20
  * @constructor
21
21
  */
22
- constructor(prongId, properties, reqH) {
22
+ constructor(prongId, properties, reqH, propUtilCl) {
23
23
  this.myid = prongId;
24
24
  this.allProps = properties;
25
25
  this.requestHandlerInst = reqH;
26
+ this.propUtil = propUtilCl;
26
27
 
27
28
  // set up the properties I care about
28
29
  this.refreshProperties(properties);
@@ -101,7 +102,7 @@ class AuthenticationHandler {
101
102
  // set the original AWS access information (from properties)
102
103
  AWS.config.update(configObj);
103
104
  const sts = new AWS.STS();
104
- log.debug(`STS OPTIONS: ${JSON.stringify(configObj)}`);
105
+ log.debug(`STS OPTIONS: ${this.propUtil.scrubSensitiveInfo(JSON.stringify(configObj))}`);
105
106
 
106
107
  // use STS to get the AWS access information for the user defined in STWS Params
107
108
  const stsData = {
@@ -466,7 +466,7 @@ class RequestHandler {
466
466
  this.transUtil = new TransUtilCl(prongId, this.propUtil);
467
467
  transUtilInst = this.transUtil;
468
468
 
469
- this.authHandler = new AuthHandlerCl(this.myid, this.props, this);
469
+ this.authHandler = new AuthHandlerCl(this.myid, this.props, this, this.propUtil);
470
470
  // validate the action files for the adapter
471
471
  this.clean = walkThroughActionFiles(this.directory);
472
472
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-utils",
3
- "version": "5.10.0",
3
+ "version": "5.10.1",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",
Binary file