slnodejs 6.1.451 → 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 +114 -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 +9 -3
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/instrumenter-spawn.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js +10 -2
- package/tsOutputs/build-scanner/instrumentation/process-pool/process-pool.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-contracts.d.ts +1 -0
- package/tsOutputs/common/agent-events/agent-events-contracts.js +1 -0
- package/tsOutputs/common/agent-events/agent-events-contracts.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);
|
|
@@ -30735,6 +30735,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30735
30735
|
AgentEventCode[AgentEventCode["THIRD_PARTY_PACKAGE_DETECTED"] = 4011] = "THIRD_PARTY_PACKAGE_DETECTED";
|
|
30736
30736
|
AgentEventCode[AgentEventCode["THIRD_PARTY_FILE_DETECTED"] = 4012] = "THIRD_PARTY_FILE_DETECTED";
|
|
30737
30737
|
AgentEventCode[AgentEventCode["OTEL_ERROR"] = 4013] = "OTEL_ERROR";
|
|
30738
|
+
AgentEventCode[AgentEventCode["STATIC_INSTRUMENTATION_ERROR"] = 4021] = "STATIC_INSTRUMENTATION_ERROR";
|
|
30738
30739
|
AgentEventCode[AgentEventCode["FOOTPRINTS_LOSS"] = 4999] = "FOOTPRINTS_LOSS";
|
|
30739
30740
|
AgentEventCode[AgentEventCode["LEAST_VERBOSE_LOG"] = 5001] = "LEAST_VERBOSE_LOG";
|
|
30740
30741
|
AgentEventCode[AgentEventCode["MOST_VERBOSE_LOG"] = 5999] = "MOST_VERBOSE_LOG";
|
|
@@ -30839,7 +30840,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30839
30840
|
const dependencies = Object.assign(Object.assign({}, packageJsonFile.dependencies), packageJsonFile.devDependencies);
|
|
30840
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);
|
|
30841
30842
|
const ciInfoBuilder = new ci_info_builder_1.CiInfoBuilder();
|
|
30842
|
-
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);
|
|
30843
30844
|
const agentStartInfo = agentStartInfoBuilder.build();
|
|
30844
30845
|
return this.buildEvent(agent_events_contracts_1.AgentEventCode.AGENT_STARTED, agentStartInfo);
|
|
30845
30846
|
}
|
|
@@ -30979,7 +30980,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30979
30980
|
})(StartRequestStatus || (StartRequestStatus = {}));
|
|
30980
30981
|
});
|
|
30981
30982
|
|
|
30982
|
-
},{"../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){
|
|
30983
30984
|
(function (factory) {
|
|
30984
30985
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30985
30986
|
var v = factory(require, exports);
|
|
@@ -31232,18 +31233,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31232
31233
|
if (v !== undefined) module.exports = v;
|
|
31233
31234
|
}
|
|
31234
31235
|
else if (typeof define === "function" && define.amd) {
|
|
31235
|
-
define(["require", "exports"], factory);
|
|
31236
|
+
define(["require", "exports", "../utils/data-cleansing-utils", "../constants/sl-env-vars"], factory);
|
|
31236
31237
|
}
|
|
31237
31238
|
})(function (require, exports) {
|
|
31238
31239
|
"use strict";
|
|
31239
31240
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31240
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");
|
|
31241
31244
|
class AgentStartInfoBuilder {
|
|
31242
|
-
constructor(agentInstanceInfoBuilder, machineInfoBuilder, techSpecificInfoBuilder, ciInfoBuilder) {
|
|
31245
|
+
constructor(agentInstanceInfoBuilder, machineInfoBuilder, techSpecificInfoBuilder, ciInfoBuilder, agentConfig) {
|
|
31243
31246
|
this.agentInstanceInfoBuilder = agentInstanceInfoBuilder;
|
|
31244
31247
|
this.machineInfoBuilder = machineInfoBuilder;
|
|
31245
31248
|
this.techSpecificInfoBuilder = techSpecificInfoBuilder;
|
|
31246
31249
|
this.ciInfoBuilder = ciInfoBuilder;
|
|
31250
|
+
this.agentConfig = agentConfig;
|
|
31247
31251
|
this.agentInstanceInfoBuilder = agentInstanceInfoBuilder;
|
|
31248
31252
|
this.machineInfoBuilder = machineInfoBuilder;
|
|
31249
31253
|
this.techSpecificInfoBuilder = techSpecificInfoBuilder;
|
|
@@ -31252,18 +31256,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31252
31256
|
fillData() {
|
|
31253
31257
|
}
|
|
31254
31258
|
build() {
|
|
31255
|
-
|
|
31259
|
+
const response = {
|
|
31256
31260
|
agentInfo: this.agentInstanceInfoBuilder.build(),
|
|
31257
31261
|
machineInfo: this.machineInfoBuilder.build(),
|
|
31258
31262
|
techSpecificInfo: this.techSpecificInfoBuilder.build(),
|
|
31259
31263
|
ciInfo: this.ciInfoBuilder.build()
|
|
31260
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;
|
|
31261
31268
|
}
|
|
31262
31269
|
}
|
|
31263
31270
|
exports.AgentStartInfoBuilder = AgentStartInfoBuilder;
|
|
31264
31271
|
});
|
|
31265
31272
|
|
|
31266
|
-
},{}],272:[function(require,module,exports){
|
|
31273
|
+
},{"../constants/sl-env-vars":287,"../utils/data-cleansing-utils":319}],272:[function(require,module,exports){
|
|
31267
31274
|
(function (factory) {
|
|
31268
31275
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
31269
31276
|
var v = factory(require, exports);
|
|
@@ -31721,7 +31728,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31721
31728
|
});
|
|
31722
31729
|
|
|
31723
31730
|
}).call(this)}).call(this,"/tsOutputs/common")
|
|
31724
|
-
},{"./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){
|
|
31725
31732
|
(function (process){(function (){
|
|
31726
31733
|
(function (factory) {
|
|
31727
31734
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31814,7 +31821,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31814
31821
|
});
|
|
31815
31822
|
|
|
31816
31823
|
}).call(this)}).call(this,require('_process'))
|
|
31817
|
-
},{"../../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){
|
|
31818
31825
|
(function (process){(function (){
|
|
31819
31826
|
(function (factory) {
|
|
31820
31827
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -32153,6 +32160,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32153
32160
|
this.shouldCheckForActiveExecutionOnStartUp = new config_system_1.BooleanConfigKey(false, true);
|
|
32154
32161
|
this.useTsNode = new config_system_1.BooleanConfigKey(false, false);
|
|
32155
32162
|
this.testRecommendationSleepSeconds = new config_system_1.NumberConfigKey(false, 1);
|
|
32163
|
+
this.removeSensitiveData = new config_system_1.BooleanConfigKey(false, false);
|
|
32156
32164
|
}
|
|
32157
32165
|
}
|
|
32158
32166
|
exports.AgentConfig = AgentConfig;
|
|
@@ -32282,7 +32290,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32282
32290
|
exports.ConfigProcess = ConfigProcess;
|
|
32283
32291
|
});
|
|
32284
32292
|
|
|
32285
|
-
},{"./config-system":282,"events":168,"jwt-decode":
|
|
32293
|
+
},{"./config-system":282,"events":168,"jwt-decode":327,"object-assign":172}],285:[function(require,module,exports){
|
|
32286
32294
|
(function (factory) {
|
|
32287
32295
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32288
32296
|
var v = factory(require, exports);
|
|
@@ -32401,6 +32409,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32401
32409
|
static getExecutionQueryIntervalSecs() {
|
|
32402
32410
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.EXECUTION_QUERY_INTERVAL_SEC);
|
|
32403
32411
|
}
|
|
32412
|
+
static getMaskData() {
|
|
32413
|
+
return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.MASK_DATA);
|
|
32414
|
+
}
|
|
32404
32415
|
static getFootprintsBufferThresholdMb() {
|
|
32405
32416
|
return env_var_parsing_1.EnvVarParsing.parseNumber(SlEnvVars.FOOTPRINTS_BUFFER_THRESHOLD_MB);
|
|
32406
32417
|
}
|
|
@@ -32446,6 +32457,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32446
32457
|
SlEnvVars.USE_OTEL_AGENT = 'SL_useOtelAgent';
|
|
32447
32458
|
SlEnvVars.USE_SL_MAPPING = 'SL_useSlMapping';
|
|
32448
32459
|
SlEnvVars.SL_USE_SPAWN_WRAP = 'SL_useSpawnWrap';
|
|
32460
|
+
SlEnvVars.MASK_DATA = 'SL_maskData';
|
|
32449
32461
|
SlEnvVars.CIA = (_a = class {
|
|
32450
32462
|
static getFileExtensions() {
|
|
32451
32463
|
return process.env[SlEnvVars.CIA.FILE_EXTENSIONS];
|
|
@@ -32492,7 +32504,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32492
32504
|
});
|
|
32493
32505
|
|
|
32494
32506
|
}).call(this)}).call(this,require('_process'))
|
|
32495
|
-
},{"../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){
|
|
32496
32508
|
(function (factory) {
|
|
32497
32509
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32498
32510
|
var v = factory(require, exports);
|
|
@@ -32665,7 +32677,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32665
32677
|
exports.FileElement = FileElement;
|
|
32666
32678
|
});
|
|
32667
32679
|
|
|
32668
|
-
},{"../utils/validation-utils":
|
|
32680
|
+
},{"../utils/validation-utils":323}],291:[function(require,module,exports){
|
|
32669
32681
|
(function (factory) {
|
|
32670
32682
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32671
32683
|
var v = factory(require, exports);
|
|
@@ -32792,7 +32804,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32792
32804
|
}
|
|
32793
32805
|
});
|
|
32794
32806
|
|
|
32795
|
-
},{"../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){
|
|
32796
32808
|
(function (factory) {
|
|
32797
32809
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32798
32810
|
var v = factory(require, exports);
|
|
@@ -32976,7 +32988,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32976
32988
|
exports.OriginalModuleLoader = OriginalModuleLoader;
|
|
32977
32989
|
});
|
|
32978
32990
|
|
|
32979
|
-
},{"../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){
|
|
32980
32992
|
(function (factory) {
|
|
32981
32993
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32982
32994
|
var v = factory(require, exports);
|
|
@@ -33376,7 +33388,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33376
33388
|
EventsProcess.ITEMS_TO_DEQUE = 1000;
|
|
33377
33389
|
});
|
|
33378
33390
|
|
|
33379
|
-
},{"../system-date":318,"../utils/validation-utils":
|
|
33391
|
+
},{"../system-date":318,"../utils/validation-utils":323}],296:[function(require,module,exports){
|
|
33380
33392
|
(function (factory) {
|
|
33381
33393
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33382
33394
|
var v = factory(require, exports);
|
|
@@ -33432,7 +33444,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33432
33444
|
exports.BaseBrowserHitsConverter = BaseBrowserHitsConverter;
|
|
33433
33445
|
});
|
|
33434
33446
|
|
|
33435
|
-
},{"../../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){
|
|
33436
33448
|
(function (factory) {
|
|
33437
33449
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33438
33450
|
var v = factory(require, exports);
|
|
@@ -34824,7 +34836,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34824
34836
|
BackendProxy.DEFAULT_HTTP_ATTEMPT_INTERVAL = 5 * 1000;
|
|
34825
34837
|
});
|
|
34826
34838
|
|
|
34827
|
-
},{"../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){
|
|
34828
34840
|
(function (factory) {
|
|
34829
34841
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
34830
34842
|
var v = factory(require, exports);
|
|
@@ -35175,7 +35187,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35175
35187
|
});
|
|
35176
35188
|
|
|
35177
35189
|
}).call(this)}).call(this,require('_process'),require("buffer").Buffer)
|
|
35178
|
-
},{"../../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){
|
|
35179
35191
|
(function (factory) {
|
|
35180
35192
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35181
35193
|
var v = factory(require, exports);
|
|
@@ -35428,7 +35440,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35428
35440
|
SLRoutes.ACTIVE = 'active';
|
|
35429
35441
|
});
|
|
35430
35442
|
|
|
35431
|
-
},{"../constants/constants":286,"../utils/validation-utils":
|
|
35443
|
+
},{"../constants/constants":286,"../utils/validation-utils":323}],314:[function(require,module,exports){
|
|
35432
35444
|
(function (factory) {
|
|
35433
35445
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35434
35446
|
var v = factory(require, exports);
|
|
@@ -35817,7 +35829,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35817
35829
|
StateTracker.NO_ACTIVE_EXECUTION = 'noActiveExecution';
|
|
35818
35830
|
});
|
|
35819
35831
|
|
|
35820
|
-
},{"./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){
|
|
35821
35833
|
(function (factory) {
|
|
35822
35834
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35823
35835
|
var v = factory(require, exports);
|
|
@@ -35844,6 +35856,72 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35844
35856
|
});
|
|
35845
35857
|
|
|
35846
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){
|
|
35847
35925
|
(function (process){(function (){
|
|
35848
35926
|
(function (factory) {
|
|
35849
35927
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -35882,7 +35960,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35882
35960
|
});
|
|
35883
35961
|
|
|
35884
35962
|
}).call(this)}).call(this,require('_process'))
|
|
35885
|
-
},{"_process":187}],
|
|
35963
|
+
},{"_process":187}],321:[function(require,module,exports){
|
|
35886
35964
|
(function (factory) {
|
|
35887
35965
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35888
35966
|
var v = factory(require, exports);
|
|
@@ -35936,7 +36014,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35936
36014
|
exports.FilesUtils = FilesUtils;
|
|
35937
36015
|
});
|
|
35938
36016
|
|
|
35939
|
-
},{"fs":165,"path":185}],
|
|
36017
|
+
},{"fs":165,"path":185}],322:[function(require,module,exports){
|
|
35940
36018
|
(function (factory) {
|
|
35941
36019
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35942
36020
|
var v = factory(require, exports);
|
|
@@ -35957,7 +36035,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35957
36035
|
exports.TimerUtils = TimerUtils;
|
|
35958
36036
|
});
|
|
35959
36037
|
|
|
35960
|
-
},{}],
|
|
36038
|
+
},{}],323:[function(require,module,exports){
|
|
35961
36039
|
(function (factory) {
|
|
35962
36040
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35963
36041
|
var v = factory(require, exports);
|
|
@@ -35990,7 +36068,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35990
36068
|
exports.ValidationUtils = ValidationUtils;
|
|
35991
36069
|
});
|
|
35992
36070
|
|
|
35993
|
-
},{"../constants/constants":286}],
|
|
36071
|
+
},{"../constants/constants":286}],324:[function(require,module,exports){
|
|
35994
36072
|
(function (factory) {
|
|
35995
36073
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35996
36074
|
var v = factory(require, exports);
|
|
@@ -36097,7 +36175,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36097
36175
|
exports.Watchdog = Watchdog;
|
|
36098
36176
|
});
|
|
36099
36177
|
|
|
36100
|
-
},{"events":168}],
|
|
36178
|
+
},{"events":168}],325:[function(require,module,exports){
|
|
36101
36179
|
/**
|
|
36102
36180
|
* The code was extracted from:
|
|
36103
36181
|
* https://github.com/davidchambers/Base64.js
|
|
@@ -36137,7 +36215,7 @@ function polyfill (input) {
|
|
|
36137
36215
|
|
|
36138
36216
|
module.exports = typeof window !== 'undefined' && window.atob && window.atob.bind(window) || polyfill;
|
|
36139
36217
|
|
|
36140
|
-
},{}],
|
|
36218
|
+
},{}],326:[function(require,module,exports){
|
|
36141
36219
|
var atob = require('./atob');
|
|
36142
36220
|
|
|
36143
36221
|
function b64DecodeUnicode(str) {
|
|
@@ -36172,7 +36250,7 @@ module.exports = function(str) {
|
|
|
36172
36250
|
}
|
|
36173
36251
|
};
|
|
36174
36252
|
|
|
36175
|
-
},{"./atob":
|
|
36253
|
+
},{"./atob":325}],327:[function(require,module,exports){
|
|
36176
36254
|
'use strict';
|
|
36177
36255
|
|
|
36178
36256
|
var base64_url_decode = require('./base64_url_decode');
|
|
@@ -36200,7 +36278,7 @@ module.exports = function (token,options) {
|
|
|
36200
36278
|
|
|
36201
36279
|
module.exports.InvalidTokenError = InvalidTokenError;
|
|
36202
36280
|
|
|
36203
|
-
},{"./base64_url_decode":
|
|
36281
|
+
},{"./base64_url_decode":326}],328:[function(require,module,exports){
|
|
36204
36282
|
var v1 = require('./v1');
|
|
36205
36283
|
var v4 = require('./v4');
|
|
36206
36284
|
|
|
@@ -36210,7 +36288,7 @@ uuid.v4 = v4;
|
|
|
36210
36288
|
|
|
36211
36289
|
module.exports = uuid;
|
|
36212
36290
|
|
|
36213
|
-
},{"./v1":
|
|
36291
|
+
},{"./v1":331,"./v4":332}],329:[function(require,module,exports){
|
|
36214
36292
|
/**
|
|
36215
36293
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
36216
36294
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
@@ -36235,7 +36313,7 @@ function bytesToUuid(buf, offset) {
|
|
|
36235
36313
|
|
|
36236
36314
|
module.exports = bytesToUuid;
|
|
36237
36315
|
|
|
36238
|
-
},{}],
|
|
36316
|
+
},{}],330:[function(require,module,exports){
|
|
36239
36317
|
(function (global){(function (){
|
|
36240
36318
|
// Unique ID creation requires a high quality random # generator. In the
|
|
36241
36319
|
// browser this is a little complicated due to unknown quality of Math.random()
|
|
@@ -36272,7 +36350,7 @@ if (!rng) {
|
|
|
36272
36350
|
module.exports = rng;
|
|
36273
36351
|
|
|
36274
36352
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
36275
|
-
},{}],
|
|
36353
|
+
},{}],331:[function(require,module,exports){
|
|
36276
36354
|
var rng = require('./lib/rng');
|
|
36277
36355
|
var bytesToUuid = require('./lib/bytesToUuid');
|
|
36278
36356
|
|
|
@@ -36374,7 +36452,7 @@ function v1(options, buf, offset) {
|
|
|
36374
36452
|
|
|
36375
36453
|
module.exports = v1;
|
|
36376
36454
|
|
|
36377
|
-
},{"./lib/bytesToUuid":
|
|
36455
|
+
},{"./lib/bytesToUuid":329,"./lib/rng":330}],332:[function(require,module,exports){
|
|
36378
36456
|
var rng = require('./lib/rng');
|
|
36379
36457
|
var bytesToUuid = require('./lib/bytesToUuid');
|
|
36380
36458
|
|
|
@@ -36405,4 +36483,4 @@ function v4(options, buf, offset) {
|
|
|
36405
36483
|
|
|
36406
36484
|
module.exports = v4;
|
|
36407
36485
|
|
|
36408
|
-
},{"./lib/bytesToUuid":
|
|
36486
|
+
},{"./lib/bytesToUuid":329,"./lib/rng":330}]},{},[217]);
|