slnodejs 6.1.456 → 6.1.461
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/browser-agent/dist/browser-agent-all.js +113 -36
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/browser-agent/package.json +1 -1
- package/package.json +1 -1
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +2 -1
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-controller.js +1 -1
- package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-start-info-builder.d.ts +3 -1
- package/tsOutputs/common/agent-events/agent-start-info-builder.js +8 -2
- package/tsOutputs/common/agent-events/agent-start-info-builder.js.map +1 -1
- package/tsOutputs/common/config-process/config.d.ts +1 -0
- package/tsOutputs/common/config-process/config.js +1 -0
- package/tsOutputs/common/config-process/config.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.d.ts +2 -0
- package/tsOutputs/common/constants/sl-env-vars.js +4 -0
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/utils/data-cleansing-utils.d.ts +9 -0
- package/tsOutputs/common/utils/data-cleansing-utils.js +55 -0
- package/tsOutputs/common/utils/data-cleansing-utils.js.map +1 -0
|
@@ -27410,7 +27410,7 @@ arguments[4][160][0].apply(exports,arguments)
|
|
|
27410
27410
|
token: agentConfig.token.value,
|
|
27411
27411
|
proxy: agentConfig.proxy.value,
|
|
27412
27412
|
server: agentConfig.server.value,
|
|
27413
|
-
compressRequests: agentConfig.gzip.value
|
|
27413
|
+
compressRequests: agentConfig.gzip.value
|
|
27414
27414
|
};
|
|
27415
27415
|
}
|
|
27416
27416
|
static createConfigurationManager(basicConfiguration, window) {
|
|
@@ -28029,7 +28029,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28029
28029
|
"use strict";
|
|
28030
28030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28031
28031
|
exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
|
|
28032
|
-
exports.SL_AGENT_VERSION = '6.1.
|
|
28032
|
+
exports.SL_AGENT_VERSION = '6.1.461';
|
|
28033
28033
|
exports.SL_AGENT_TYPE = 'browser';
|
|
28034
28034
|
});
|
|
28035
28035
|
|
|
@@ -29903,7 +29903,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29903
29903
|
Queue.DEFAULT_MAX_ITEMS_IN_QUEUE = 1000;
|
|
29904
29904
|
});
|
|
29905
29905
|
|
|
29906
|
-
},{"../../../common/utils/validation-utils":
|
|
29906
|
+
},{"../../../common/utils/validation-utils":323}],253:[function(require,module,exports){
|
|
29907
29907
|
(function (factory) {
|
|
29908
29908
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29909
29909
|
var v = factory(require, exports);
|
|
@@ -30064,7 +30064,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30064
30064
|
exports.JsonClientAdapter = JsonClientAdapter;
|
|
30065
30065
|
});
|
|
30066
30066
|
|
|
30067
|
-
},{"../../../../common/utils/validation-utils":
|
|
30067
|
+
},{"../../../../common/utils/validation-utils":323}],257:[function(require,module,exports){
|
|
30068
30068
|
(function (factory) {
|
|
30069
30069
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30070
30070
|
var v = factory(require, exports);
|
|
@@ -30840,7 +30840,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30840
30840
|
const dependencies = Object.assign(Object.assign({}, packageJsonFile.dependencies), packageJsonFile.devDependencies);
|
|
30841
30841
|
const nodejsEnvInfoBuilder = this.agentInstanceData.technology === agent_events_contracts_1.Technology.BROWSER ? new browser_info_builder_1.BrowserInfoBuilder() : new nodejs_env_info_builder_1.NodejsEnvInfoBuilder(this.agentInstanceData, dependencies);
|
|
30842
30842
|
const ciInfoBuilder = new ci_info_builder_1.CiInfoBuilder();
|
|
30843
|
-
const agentStartInfoBuilder = new agent_start_info_builder_1.AgentStartInfoBuilder(agentInstanceInfoBuilder, machineInfoBuilder, nodejsEnvInfoBuilder, ciInfoBuilder);
|
|
30843
|
+
const agentStartInfoBuilder = new agent_start_info_builder_1.AgentStartInfoBuilder(agentInstanceInfoBuilder, machineInfoBuilder, nodejsEnvInfoBuilder, ciInfoBuilder, this._agentConfig);
|
|
30844
30844
|
const agentStartInfo = agentStartInfoBuilder.build();
|
|
30845
30845
|
return this.buildEvent(agent_events_contracts_1.AgentEventCode.AGENT_STARTED, agentStartInfo);
|
|
30846
30846
|
}
|
|
@@ -30980,7 +30980,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30980
30980
|
})(StartRequestStatus || (StartRequestStatus = {}));
|
|
30981
30981
|
});
|
|
30982
30982
|
|
|
30983
|
-
},{"../http/backend-proxy":308,"../system-date":318,"../utils/validation-utils":
|
|
30983
|
+
},{"../http/backend-proxy":308,"../system-date":318,"../utils/validation-utils":323,"../watchdog":324,"./agent-events-contracts":267,"./agent-instance-info-builder":270,"./agent-start-info-builder":271,"./browser-info-builder":272,"./ci-info-builder":273,"./machine-info-builder":276,"./nodejs-env-info-builder":278}],269:[function(require,module,exports){
|
|
30984
30984
|
(function (factory) {
|
|
30985
30985
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30986
30986
|
var v = factory(require, exports);
|
|
@@ -31233,18 +31233,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31233
31233
|
if (v !== undefined) module.exports = v;
|
|
31234
31234
|
}
|
|
31235
31235
|
else if (typeof define === "function" && define.amd) {
|
|
31236
|
-
define(["require", "exports"], factory);
|
|
31236
|
+
define(["require", "exports", "../utils/data-cleansing-utils", "../constants/sl-env-vars"], factory);
|
|
31237
31237
|
}
|
|
31238
31238
|
})(function (require, exports) {
|
|
31239
31239
|
"use strict";
|
|
31240
31240
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31241
31241
|
exports.AgentStartInfoBuilder = void 0;
|
|
31242
|
+
const data_cleansing_utils_1 = require("../utils/data-cleansing-utils");
|
|
31243
|
+
const sl_env_vars_1 = require("../constants/sl-env-vars");
|
|
31242
31244
|
class AgentStartInfoBuilder {
|
|
31243
|
-
constructor(agentInstanceInfoBuilder, machineInfoBuilder, techSpecificInfoBuilder, ciInfoBuilder) {
|
|
31245
|
+
constructor(agentInstanceInfoBuilder, machineInfoBuilder, techSpecificInfoBuilder, ciInfoBuilder, agentConfig) {
|
|
31244
31246
|
this.agentInstanceInfoBuilder = agentInstanceInfoBuilder;
|
|
31245
31247
|
this.machineInfoBuilder = machineInfoBuilder;
|
|
31246
31248
|
this.techSpecificInfoBuilder = techSpecificInfoBuilder;
|
|
31247
31249
|
this.ciInfoBuilder = ciInfoBuilder;
|
|
31250
|
+
this.agentConfig = agentConfig;
|
|
31248
31251
|
this.agentInstanceInfoBuilder = agentInstanceInfoBuilder;
|
|
31249
31252
|
this.machineInfoBuilder = machineInfoBuilder;
|
|
31250
31253
|
this.techSpecificInfoBuilder = techSpecificInfoBuilder;
|
|
@@ -31253,18 +31256,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31253
31256
|
fillData() {
|
|
31254
31257
|
}
|
|
31255
31258
|
build() {
|
|
31256
|
-
|
|
31259
|
+
const response = {
|
|
31257
31260
|
agentInfo: this.agentInstanceInfoBuilder.build(),
|
|
31258
31261
|
machineInfo: this.machineInfoBuilder.build(),
|
|
31259
31262
|
techSpecificInfo: this.techSpecificInfoBuilder.build(),
|
|
31260
31263
|
ciInfo: this.ciInfoBuilder.build()
|
|
31261
31264
|
};
|
|
31265
|
+
if (this.agentConfig.removeSensitiveData.value || sl_env_vars_1.SlEnvVars.getMaskData())
|
|
31266
|
+
return data_cleansing_utils_1.DataCleansingUtils.removeSensitiveData(response);
|
|
31267
|
+
return response;
|
|
31262
31268
|
}
|
|
31263
31269
|
}
|
|
31264
31270
|
exports.AgentStartInfoBuilder = AgentStartInfoBuilder;
|
|
31265
31271
|
});
|
|
31266
31272
|
|
|
31267
|
-
},{}],272:[function(require,module,exports){
|
|
31273
|
+
},{"../constants/sl-env-vars":287,"../utils/data-cleansing-utils":319}],272:[function(require,module,exports){
|
|
31268
31274
|
(function (factory) {
|
|
31269
31275
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
31270
31276
|
var v = factory(require, exports);
|
|
@@ -31722,7 +31728,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31722
31728
|
});
|
|
31723
31729
|
|
|
31724
31730
|
}).call(this)}).call(this,"/tsOutputs/common")
|
|
31725
|
-
},{"./agent-events/agent-events-contracts":267,"./agent-events/agent-instance-info-builder":270,"./utils/files-utils":
|
|
31731
|
+
},{"./agent-events/agent-events-contracts":267,"./agent-events/agent-instance-info-builder":270,"./utils/files-utils":321,"fs":165,"uuid":328}],281:[function(require,module,exports){
|
|
31726
31732
|
(function (process){(function (){
|
|
31727
31733
|
(function (factory) {
|
|
31728
31734
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31815,7 +31821,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31815
31821
|
});
|
|
31816
31822
|
|
|
31817
31823
|
}).call(this)}).call(this,require('_process'))
|
|
31818
|
-
},{"../../cli-parse/contracts":266,"../constants/sl-env-vars":287,"./config":283,"./config-system":282,"_process":187,"fs":165,"jwt-decode":
|
|
31824
|
+
},{"../../cli-parse/contracts":266,"../constants/sl-env-vars":287,"./config":283,"./config-system":282,"_process":187,"fs":165,"jwt-decode":327}],282:[function(require,module,exports){
|
|
31819
31825
|
(function (process){(function (){
|
|
31820
31826
|
(function (factory) {
|
|
31821
31827
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -32154,6 +32160,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32154
32160
|
this.shouldCheckForActiveExecutionOnStartUp = new config_system_1.BooleanConfigKey(false, true);
|
|
32155
32161
|
this.useTsNode = new config_system_1.BooleanConfigKey(false, false);
|
|
32156
32162
|
this.testRecommendationSleepSeconds = new config_system_1.NumberConfigKey(false, 1);
|
|
32163
|
+
this.removeSensitiveData = new config_system_1.BooleanConfigKey(false, false);
|
|
32157
32164
|
}
|
|
32158
32165
|
}
|
|
32159
32166
|
exports.AgentConfig = AgentConfig;
|
|
@@ -32283,7 +32290,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32283
32290
|
exports.ConfigProcess = ConfigProcess;
|
|
32284
32291
|
});
|
|
32285
32292
|
|
|
32286
|
-
},{"./config-system":282,"events":168,"jwt-decode":
|
|
32293
|
+
},{"./config-system":282,"events":168,"jwt-decode":327,"object-assign":172}],285:[function(require,module,exports){
|
|
32287
32294
|
(function (factory) {
|
|
32288
32295
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32289
32296
|
var v = factory(require, exports);
|
|
@@ -32402,6 +32409,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32402
32409
|
static getExecutionQueryIntervalSecs() {
|
|
32403
32410
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.EXECUTION_QUERY_INTERVAL_SEC);
|
|
32404
32411
|
}
|
|
32412
|
+
static getMaskData() {
|
|
32413
|
+
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.MASK_DATA);
|
|
32414
|
+
}
|
|
32405
32415
|
static getFootprintsBufferThresholdMb() {
|
|
32406
32416
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.FOOTPRINTS_BUFFER_THRESHOLD_MB);
|
|
32407
32417
|
}
|
|
@@ -32447,6 +32457,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32447
32457
|
SlEnvVars.USE_OTEL_AGENT = 'SL_useOtelAgent';
|
|
32448
32458
|
SlEnvVars.USE_SL_MAPPING = 'SL_useSlMapping';
|
|
32449
32459
|
SlEnvVars.SL_USE_SPAWN_WRAP = 'SL_useSpawnWrap';
|
|
32460
|
+
SlEnvVars.MASK_DATA = 'SL_maskData';
|
|
32450
32461
|
SlEnvVars.CIA = (_a = class {
|
|
32451
32462
|
static getFileExtensions() {
|
|
32452
32463
|
return process.env[SlEnvVars.CIA.FILE_EXTENSIONS];
|
|
@@ -32493,7 +32504,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32493
32504
|
});
|
|
32494
32505
|
|
|
32495
32506
|
}).call(this)}).call(this,require('_process'))
|
|
32496
|
-
},{"../footprints-process-v6/buffer-size-helper":298,"../utils/env-var-parsing":
|
|
32507
|
+
},{"../footprints-process-v6/buffer-size-helper":298,"../utils/env-var-parsing":320,"_process":187}],288:[function(require,module,exports){
|
|
32497
32508
|
(function (factory) {
|
|
32498
32509
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32499
32510
|
var v = factory(require, exports);
|
|
@@ -32666,7 +32677,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32666
32677
|
exports.FileElement = FileElement;
|
|
32667
32678
|
});
|
|
32668
32679
|
|
|
32669
|
-
},{"../utils/validation-utils":
|
|
32680
|
+
},{"../utils/validation-utils":323}],291:[function(require,module,exports){
|
|
32670
32681
|
(function (factory) {
|
|
32671
32682
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32672
32683
|
var v = factory(require, exports);
|
|
@@ -32793,7 +32804,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32793
32804
|
}
|
|
32794
32805
|
});
|
|
32795
32806
|
|
|
32796
|
-
},{"../system-date":318,"../utils/files-utils":
|
|
32807
|
+
},{"../system-date":318,"../utils/files-utils":321,"./istanbul-unique-id-converter":291,"path":185}],293:[function(require,module,exports){
|
|
32797
32808
|
(function (factory) {
|
|
32798
32809
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32799
32810
|
var v = factory(require, exports);
|
|
@@ -32977,7 +32988,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32977
32988
|
exports.OriginalModuleLoader = OriginalModuleLoader;
|
|
32978
32989
|
});
|
|
32979
32990
|
|
|
32980
|
-
},{"../source-maps-utils":315,"../utils/files-utils":
|
|
32991
|
+
},{"../source-maps-utils":315,"../utils/files-utils":321,"../utils/validation-utils":323}],294:[function(require,module,exports){
|
|
32981
32992
|
(function (factory) {
|
|
32982
32993
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32983
32994
|
var v = factory(require, exports);
|
|
@@ -33377,7 +33388,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33377
33388
|
EventsProcess.ITEMS_TO_DEQUE = 1000;
|
|
33378
33389
|
});
|
|
33379
33390
|
|
|
33380
|
-
},{"../system-date":318,"../utils/validation-utils":
|
|
33391
|
+
},{"../system-date":318,"../utils/validation-utils":323}],296:[function(require,module,exports){
|
|
33381
33392
|
(function (factory) {
|
|
33382
33393
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33383
33394
|
var v = factory(require, exports);
|
|
@@ -33433,7 +33444,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33433
33444
|
exports.BaseBrowserHitsConverter = BaseBrowserHitsConverter;
|
|
33434
33445
|
});
|
|
33435
33446
|
|
|
33436
|
-
},{"../../common/footprints-process-v6/hits-converter":303,"../utils/files-utils":
|
|
33447
|
+
},{"../../common/footprints-process-v6/hits-converter":303,"../utils/files-utils":321,"./location-formatter":305}],297:[function(require,module,exports){
|
|
33437
33448
|
(function (factory) {
|
|
33438
33449
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33439
33450
|
var v = factory(require, exports);
|
|
@@ -34825,7 +34836,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34825
34836
|
BackendProxy.DEFAULT_HTTP_ATTEMPT_INTERVAL = 5 * 1000;
|
|
34826
34837
|
});
|
|
34827
34838
|
|
|
34828
|
-
},{"../constants/constants":286,"../constants/sl-env-vars":287,"../utils/timer-utils":
|
|
34839
|
+
},{"../constants/constants":286,"../constants/sl-env-vars":287,"../utils/timer-utils":322,"../utils/validation-utils":323,"./contracts":309,"./entities-mapper":310,"./http-client":311,"./sl-routes":313}],309:[function(require,module,exports){
|
|
34829
34840
|
(function (factory) {
|
|
34830
34841
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
34831
34842
|
var v = factory(require, exports);
|
|
@@ -35176,7 +35187,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35176
35187
|
});
|
|
35177
35188
|
|
|
35178
35189
|
}).call(this)}).call(this,require('_process'),require("buffer").Buffer)
|
|
35179
|
-
},{"../../common/system-date":318,"../constants/sl-env-vars":287,"../utils/validation-utils":
|
|
35190
|
+
},{"../../common/system-date":318,"../constants/sl-env-vars":287,"../utils/validation-utils":323,"./contracts":309,"./http-verb":312,"_process":187,"buffer":166,"request":162,"zlib":164}],312:[function(require,module,exports){
|
|
35180
35191
|
(function (factory) {
|
|
35181
35192
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35182
35193
|
var v = factory(require, exports);
|
|
@@ -35429,7 +35440,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35429
35440
|
SLRoutes.ACTIVE = 'active';
|
|
35430
35441
|
});
|
|
35431
35442
|
|
|
35432
|
-
},{"../constants/constants":286,"../utils/validation-utils":
|
|
35443
|
+
},{"../constants/constants":286,"../utils/validation-utils":323}],314:[function(require,module,exports){
|
|
35433
35444
|
(function (factory) {
|
|
35434
35445
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35435
35446
|
var v = factory(require, exports);
|
|
@@ -35818,7 +35829,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35818
35829
|
StateTracker.NO_ACTIVE_EXECUTION = 'noActiveExecution';
|
|
35819
35830
|
});
|
|
35820
35831
|
|
|
35821
|
-
},{"./agent-events/agent-events-contracts":267,"./agent-events/cockpit-notifier":274,"./constants/sl-env-vars":287,"./utils/validation-utils":
|
|
35832
|
+
},{"./agent-events/agent-events-contracts":267,"./agent-events/cockpit-notifier":274,"./constants/sl-env-vars":287,"./utils/validation-utils":323,"events":168}],318:[function(require,module,exports){
|
|
35822
35833
|
(function (factory) {
|
|
35823
35834
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35824
35835
|
var v = factory(require, exports);
|
|
@@ -35845,6 +35856,72 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35845
35856
|
});
|
|
35846
35857
|
|
|
35847
35858
|
},{}],319:[function(require,module,exports){
|
|
35859
|
+
(function (factory) {
|
|
35860
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35861
|
+
var v = factory(require, exports);
|
|
35862
|
+
if (v !== undefined) module.exports = v;
|
|
35863
|
+
}
|
|
35864
|
+
else if (typeof define === "function" && define.amd) {
|
|
35865
|
+
define(["require", "exports"], factory);
|
|
35866
|
+
}
|
|
35867
|
+
})(function (require, exports) {
|
|
35868
|
+
"use strict";
|
|
35869
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35870
|
+
exports.DataCleansingUtils = void 0;
|
|
35871
|
+
class DataCleansingUtils {
|
|
35872
|
+
static removeSensitiveData(request) {
|
|
35873
|
+
const cloneRequest = Object.assign({}, request);
|
|
35874
|
+
DataCleansingUtils.removeSensitiveDataForFieldsWithSideEffects(cloneRequest);
|
|
35875
|
+
DataCleansingUtils.removeSensitiveDataForFieldsAccordingToPatternWithSideEffects(cloneRequest, 'techSpecificInfo.systemProps', DataCleansingUtils.propsFieldPattern);
|
|
35876
|
+
DataCleansingUtils.removeSensitiveDataForFieldsAccordingToPatternWithSideEffects(cloneRequest, 'startDetails.agentInfo.argv', DataCleansingUtils.propsFieldPattern);
|
|
35877
|
+
return cloneRequest;
|
|
35878
|
+
}
|
|
35879
|
+
static removeSensitiveDataForFieldsAccordingToPatternWithSideEffects(request, field, pattern) {
|
|
35880
|
+
const fieldPath = field.split('.');
|
|
35881
|
+
let requestField = request;
|
|
35882
|
+
while (fieldPath.length && requestField) {
|
|
35883
|
+
const fieldPart = fieldPath.shift();
|
|
35884
|
+
if (!fieldPath.length && requestField[fieldPart]) {
|
|
35885
|
+
Object.keys(requestField[fieldPart]).forEach(key => {
|
|
35886
|
+
if (pattern.test(key)) {
|
|
35887
|
+
requestField[fieldPart][key] = DataCleansingUtils.REMOVED_VALUE_TEXT;
|
|
35888
|
+
}
|
|
35889
|
+
});
|
|
35890
|
+
}
|
|
35891
|
+
else {
|
|
35892
|
+
requestField = requestField[fieldPart];
|
|
35893
|
+
}
|
|
35894
|
+
}
|
|
35895
|
+
}
|
|
35896
|
+
static removeSensitiveDataForFieldsWithSideEffects(request) {
|
|
35897
|
+
DataCleansingUtils.SENSITIVE_DATE_FIELDS_ARRAY.forEach(field => {
|
|
35898
|
+
DataCleansingUtils.removeSensitiveDataForFieldWithSideEffects(request, field);
|
|
35899
|
+
});
|
|
35900
|
+
}
|
|
35901
|
+
static removeSensitiveDataForFieldWithSideEffects(request, field) {
|
|
35902
|
+
const fieldPath = field.split('.');
|
|
35903
|
+
let requestField = request;
|
|
35904
|
+
while (fieldPath.length && requestField) {
|
|
35905
|
+
const fieldPart = fieldPath.shift();
|
|
35906
|
+
if (!fieldPath.length && requestField[fieldPart]) {
|
|
35907
|
+
requestField[fieldPart] = DataCleansingUtils.REMOVED_VALUE_TEXT;
|
|
35908
|
+
}
|
|
35909
|
+
else {
|
|
35910
|
+
requestField = requestField[fieldPart];
|
|
35911
|
+
}
|
|
35912
|
+
}
|
|
35913
|
+
}
|
|
35914
|
+
}
|
|
35915
|
+
exports.DataCleansingUtils = DataCleansingUtils;
|
|
35916
|
+
DataCleansingUtils.propsFieldPattern = /\b(token|proxy)\b/i;
|
|
35917
|
+
DataCleansingUtils.REMOVED_VALUE_TEXT = '<real value removed due to security configuration>';
|
|
35918
|
+
DataCleansingUtils.SENSITIVE_DATE_FIELDS_ARRAY = ['agentInfo.machineInfo.machineName', 'agentInfo.machineInfo.ipAdresses',
|
|
35919
|
+
'agentInfo.envVars.ci_dependency_proxy_server', 'agentInfo.envVars.ci_environment_url',
|
|
35920
|
+
'agentInfo.envVars.ci_server_url', 'agentInfo.envVars.ci_server_host',
|
|
35921
|
+
'agentInfo.envVars.ci_server_name', 'agentInfo.envVars.circle_repository_url', 'agentInfo.envVars.jenkins_url'];
|
|
35922
|
+
});
|
|
35923
|
+
|
|
35924
|
+
},{}],320:[function(require,module,exports){
|
|
35848
35925
|
(function (process){(function (){
|
|
35849
35926
|
(function (factory) {
|
|
35850
35927
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -35883,7 +35960,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35883
35960
|
});
|
|
35884
35961
|
|
|
35885
35962
|
}).call(this)}).call(this,require('_process'))
|
|
35886
|
-
},{"_process":187}],
|
|
35963
|
+
},{"_process":187}],321:[function(require,module,exports){
|
|
35887
35964
|
(function (factory) {
|
|
35888
35965
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35889
35966
|
var v = factory(require, exports);
|
|
@@ -35937,7 +36014,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35937
36014
|
exports.FilesUtils = FilesUtils;
|
|
35938
36015
|
});
|
|
35939
36016
|
|
|
35940
|
-
},{"fs":165,"path":185}],
|
|
36017
|
+
},{"fs":165,"path":185}],322:[function(require,module,exports){
|
|
35941
36018
|
(function (factory) {
|
|
35942
36019
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35943
36020
|
var v = factory(require, exports);
|
|
@@ -35958,7 +36035,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35958
36035
|
exports.TimerUtils = TimerUtils;
|
|
35959
36036
|
});
|
|
35960
36037
|
|
|
35961
|
-
},{}],
|
|
36038
|
+
},{}],323:[function(require,module,exports){
|
|
35962
36039
|
(function (factory) {
|
|
35963
36040
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35964
36041
|
var v = factory(require, exports);
|
|
@@ -35991,7 +36068,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35991
36068
|
exports.ValidationUtils = ValidationUtils;
|
|
35992
36069
|
});
|
|
35993
36070
|
|
|
35994
|
-
},{"../constants/constants":286}],
|
|
36071
|
+
},{"../constants/constants":286}],324:[function(require,module,exports){
|
|
35995
36072
|
(function (factory) {
|
|
35996
36073
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35997
36074
|
var v = factory(require, exports);
|
|
@@ -36098,7 +36175,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36098
36175
|
exports.Watchdog = Watchdog;
|
|
36099
36176
|
});
|
|
36100
36177
|
|
|
36101
|
-
},{"events":168}],
|
|
36178
|
+
},{"events":168}],325:[function(require,module,exports){
|
|
36102
36179
|
/**
|
|
36103
36180
|
* The code was extracted from:
|
|
36104
36181
|
* https://github.com/davidchambers/Base64.js
|
|
@@ -36138,7 +36215,7 @@ function polyfill (input) {
|
|
|
36138
36215
|
|
|
36139
36216
|
module.exports = typeof window !== 'undefined' && window.atob && window.atob.bind(window) || polyfill;
|
|
36140
36217
|
|
|
36141
|
-
},{}],
|
|
36218
|
+
},{}],326:[function(require,module,exports){
|
|
36142
36219
|
var atob = require('./atob');
|
|
36143
36220
|
|
|
36144
36221
|
function b64DecodeUnicode(str) {
|
|
@@ -36173,7 +36250,7 @@ module.exports = function(str) {
|
|
|
36173
36250
|
}
|
|
36174
36251
|
};
|
|
36175
36252
|
|
|
36176
|
-
},{"./atob":
|
|
36253
|
+
},{"./atob":325}],327:[function(require,module,exports){
|
|
36177
36254
|
'use strict';
|
|
36178
36255
|
|
|
36179
36256
|
var base64_url_decode = require('./base64_url_decode');
|
|
@@ -36201,7 +36278,7 @@ module.exports = function (token,options) {
|
|
|
36201
36278
|
|
|
36202
36279
|
module.exports.InvalidTokenError = InvalidTokenError;
|
|
36203
36280
|
|
|
36204
|
-
},{"./base64_url_decode":
|
|
36281
|
+
},{"./base64_url_decode":326}],328:[function(require,module,exports){
|
|
36205
36282
|
var v1 = require('./v1');
|
|
36206
36283
|
var v4 = require('./v4');
|
|
36207
36284
|
|
|
@@ -36211,7 +36288,7 @@ uuid.v4 = v4;
|
|
|
36211
36288
|
|
|
36212
36289
|
module.exports = uuid;
|
|
36213
36290
|
|
|
36214
|
-
},{"./v1":
|
|
36291
|
+
},{"./v1":331,"./v4":332}],329:[function(require,module,exports){
|
|
36215
36292
|
/**
|
|
36216
36293
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
36217
36294
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
@@ -36236,7 +36313,7 @@ function bytesToUuid(buf, offset) {
|
|
|
36236
36313
|
|
|
36237
36314
|
module.exports = bytesToUuid;
|
|
36238
36315
|
|
|
36239
|
-
},{}],
|
|
36316
|
+
},{}],330:[function(require,module,exports){
|
|
36240
36317
|
(function (global){(function (){
|
|
36241
36318
|
// Unique ID creation requires a high quality random # generator. In the
|
|
36242
36319
|
// browser this is a little complicated due to unknown quality of Math.random()
|
|
@@ -36273,7 +36350,7 @@ if (!rng) {
|
|
|
36273
36350
|
module.exports = rng;
|
|
36274
36351
|
|
|
36275
36352
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
36276
|
-
},{}],
|
|
36353
|
+
},{}],331:[function(require,module,exports){
|
|
36277
36354
|
var rng = require('./lib/rng');
|
|
36278
36355
|
var bytesToUuid = require('./lib/bytesToUuid');
|
|
36279
36356
|
|
|
@@ -36375,7 +36452,7 @@ function v1(options, buf, offset) {
|
|
|
36375
36452
|
|
|
36376
36453
|
module.exports = v1;
|
|
36377
36454
|
|
|
36378
|
-
},{"./lib/bytesToUuid":
|
|
36455
|
+
},{"./lib/bytesToUuid":329,"./lib/rng":330}],332:[function(require,module,exports){
|
|
36379
36456
|
var rng = require('./lib/rng');
|
|
36380
36457
|
var bytesToUuid = require('./lib/bytesToUuid');
|
|
36381
36458
|
|
|
@@ -36406,4 +36483,4 @@ function v4(options, buf, offset) {
|
|
|
36406
36483
|
|
|
36407
36484
|
module.exports = v4;
|
|
36408
36485
|
|
|
36409
|
-
},{"./lib/bytesToUuid":
|
|
36486
|
+
},{"./lib/bytesToUuid":329,"./lib/rng":330}]},{},[217]);
|