@axway/axway-central-cli 3.13.0-rc.3 → 3.13.0-rc.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.
|
@@ -39,12 +39,6 @@ class AWSDataplaneConfig extends DataplaneConfig {
|
|
|
39
39
|
this.stageTagName = stageTagName;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
class Sampling {
|
|
43
|
-
constructor() {
|
|
44
|
-
_defineProperty(this, "onlyErrors", void 0);
|
|
45
|
-
this.onlyErrors = true;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
42
|
class Sanitize {
|
|
49
43
|
constructor(k, m) {
|
|
50
44
|
_defineProperty(this, "keyMatch", void 0);
|
|
@@ -81,7 +75,6 @@ class SaasAgentValues {
|
|
|
81
75
|
_defineProperty(this, "queueDA", void 0);
|
|
82
76
|
_defineProperty(this, "filterDA", void 0);
|
|
83
77
|
_defineProperty(this, "frequencyTA", void 0);
|
|
84
|
-
_defineProperty(this, "sampling", void 0);
|
|
85
78
|
_defineProperty(this, "redaction", void 0);
|
|
86
79
|
_defineProperty(this, "dataplaneConfig", void 0);
|
|
87
80
|
_defineProperty(this, "centralConfig", void 0);
|
|
@@ -89,7 +82,6 @@ class SaasAgentValues {
|
|
|
89
82
|
this.queueDA = false;
|
|
90
83
|
this.frequencyTA = '';
|
|
91
84
|
this.filterDA = '';
|
|
92
|
-
this.sampling = new Sampling();
|
|
93
85
|
this.redaction = new Redaction();
|
|
94
86
|
this.dataplaneConfig = new DataplaneConfig();
|
|
95
87
|
this.centralConfig = new _types.CentralAgentConfig();
|
|
@@ -159,7 +151,6 @@ const SaasPrompts = {
|
|
|
159
151
|
DA_FILTER: 'Please enter the filter conditions for discovery of API Services based on tags',
|
|
160
152
|
TA_FREQUENCY: 'How often should the traffic collection run, leave blank for manual trigger only',
|
|
161
153
|
QUEUE: 'Do you want to discover immediately after installation',
|
|
162
|
-
SAMP_ONLY_ERRS: 'Do you want to sample only the error transactions for Business and Consumer Insights',
|
|
163
154
|
REDACT_SHOW: 'Enter a regular expression for {0}s that may be shown',
|
|
164
155
|
ENTER_SANITIZE_RULE: 'Do you want to add sanitization rules for {0}s',
|
|
165
156
|
SANITIZE_KEY: 'Enter a regular expression for {0} keys that values should be sanitized',
|
|
@@ -257,17 +248,6 @@ const askForRedaction = async hostedAgentValues => {
|
|
|
257
248
|
});
|
|
258
249
|
return hostedAgentValues;
|
|
259
250
|
};
|
|
260
|
-
const askForSampling = async hostedAgentValues => {
|
|
261
|
-
console.log(_chalk.default.gray('\nSampling settings'));
|
|
262
|
-
|
|
263
|
-
// ask sampling all errorsSN
|
|
264
|
-
hostedAgentValues.sampling.onlyErrors = (await (0, _basicPrompts.askList)({
|
|
265
|
-
msg: SaasPrompts.SAMP_ONLY_ERRS,
|
|
266
|
-
choices: _types.YesNoChoices,
|
|
267
|
-
default: _types.YesNo.No
|
|
268
|
-
})) === _types.YesNo.Yes;
|
|
269
|
-
return hostedAgentValues;
|
|
270
|
-
};
|
|
271
251
|
const askForAWSCredentials = async hostedAgentValues => {
|
|
272
252
|
hostedAgentValues.region = await helpers.askAWSRegion();
|
|
273
253
|
log('gathering access details for aws');
|
|
@@ -373,7 +353,6 @@ const gatewayConnectivity = async installConfig => {
|
|
|
373
353
|
validate: (0, _agents.validateFrequency)(),
|
|
374
354
|
allowEmptyInput: true
|
|
375
355
|
});
|
|
376
|
-
hostedAgentValues = await askForSampling(hostedAgentValues);
|
|
377
356
|
hostedAgentValues = await askForRedaction(hostedAgentValues);
|
|
378
357
|
}
|
|
379
358
|
return hostedAgentValues;
|
|
@@ -493,7 +472,6 @@ const completeInstall = async (installConfig, apiServerClient, defsManager) => {
|
|
|
493
472
|
installConfig.centralConfig.taAgentName = await helpers.createNewAgentResource(apiServerClient, defsManager, installConfig.centralConfig.environment, _types.GatewayTypeToDataPlane[installConfig.gatewayType], _types.AgentResourceKind.ta, _types.AgentTypes.ta, installConfig.centralConfig.ampcTeamName, _types.GatewayTypeToDataPlane[installConfig.gatewayType] + ' Traceability Agent', dataplaneRes.name, awsAgentValues.frequencyTA, false,
|
|
494
473
|
// AWS TA is never triggered at install, as DA has to run prior
|
|
495
474
|
{
|
|
496
|
-
sampling: awsAgentValues.sampling,
|
|
497
475
|
redaction: awsAgentValues.redaction
|
|
498
476
|
});
|
|
499
477
|
}
|
|
@@ -171,7 +171,6 @@ const SaasPrompts = {
|
|
|
171
171
|
DA_FILTER: 'Please enter the filter conditions for discovery of API Services based on tags',
|
|
172
172
|
TA_FREQUENCY: 'How often should the traffic collection run, leave blank for manual trigger only',
|
|
173
173
|
QUEUE: 'Do you want to discover immediately after installation',
|
|
174
|
-
SAMP_ONLY_ERRS: 'Do you want to sample only the error transactions for Business and Consumer Insights',
|
|
175
174
|
REDACT_SHOW: 'Enter a regular expression for {0}s that may be shown',
|
|
176
175
|
ENTER_SANITIZE_RULE: 'Do you want to add sanitization rules for {0}s',
|
|
177
176
|
SANITIZE_KEY: 'Enter a regular expression for {0} keys that values should be sanitized',
|
|
@@ -273,17 +272,6 @@ const askForRedaction = async hostedAgentValues => {
|
|
|
273
272
|
});
|
|
274
273
|
return hostedAgentValues;
|
|
275
274
|
};
|
|
276
|
-
const askForSampling = async hostedAgentValues => {
|
|
277
|
-
console.log(_chalk.default.gray('\nSampling settings'));
|
|
278
|
-
|
|
279
|
-
// ask sampling all errorsSN
|
|
280
|
-
hostedAgentValues.sampling.onlyErrors = (await (0, _basicPrompts.askList)({
|
|
281
|
-
msg: SaasPrompts.SAMP_ONLY_ERRS,
|
|
282
|
-
choices: _types.YesNoChoices,
|
|
283
|
-
default: _types.YesNo.No
|
|
284
|
-
})) === _types.YesNo.Yes;
|
|
285
|
-
return hostedAgentValues;
|
|
286
|
-
};
|
|
287
275
|
const askForAzureCredentials = async (hostedAgentValues, installConfig) => {
|
|
288
276
|
log('gathering access details for azure');
|
|
289
277
|
hostedAgentValues.tenantId = await (0, _basicPrompts.askInput)({
|
|
@@ -375,7 +363,6 @@ const gatewayConnectivity = async installConfig => {
|
|
|
375
363
|
validate: (0, _agents.validateFrequency)(),
|
|
376
364
|
allowEmptyInput: true
|
|
377
365
|
});
|
|
378
|
-
hostedAgentValues = await askForSampling(hostedAgentValues);
|
|
379
366
|
hostedAgentValues = await askForRedaction(hostedAgentValues);
|
|
380
367
|
}
|
|
381
368
|
return hostedAgentValues;
|