@itentialopensource/adapter-utils 5.10.0 → 5.10.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 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/lib/throttle.js CHANGED
@@ -647,14 +647,15 @@ class SystemXThrottle {
647
647
  const dbName = prongo.properties.db;
648
648
 
649
649
  // define some local variables to help in validating the properties.json file
650
+ const pronghorn = 'pronghorn';
650
651
  let sslEnabled = false;
651
652
  let sslValidate = false;
652
653
  let sslCheckServerIdentity = false;
653
654
  let sslCA = null;
654
655
  let replSetEnabled = false;
655
656
  let dbAuthEnabled = false;
656
- let dbUsername = 'pronghorn';
657
- let dbPassword = 'pronghorn';
657
+ let dbUsername = pronghorn;
658
+ let dbPassword = pronghorn;
658
659
 
659
660
  /*
660
661
  * this first section is configuration mapping
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.4",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",
Binary file