@axway/axway-central-cli 2.17.0-rc.0 → 2.17.0-rc.2
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.
|
@@ -198,7 +198,6 @@ const askForAPIGEEXCredentials = async hostedAgentValues => {
|
|
|
198
198
|
validate: (0, _basicPrompts.verifyApigeeXCredentialFile)()
|
|
199
199
|
});
|
|
200
200
|
hostedAgentValues.credentialJSON = await (0, _utils.loadAndVerifyApigeeXCredentialFile)(credentialFilePath);
|
|
201
|
-
console.log(hostedAgentValues.credentialJSON);
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
return hostedAgentValues;
|
|
@@ -280,8 +279,6 @@ const createEncryptedAccessData = async (hostedAgentValues, dataplaneRes) => {
|
|
|
280
279
|
throw Error(`cannot encrypt access data as the encryption key info was incomplete`);
|
|
281
280
|
}
|
|
282
281
|
|
|
283
|
-
console.log(hostedAgentValues.getAccessData());
|
|
284
|
-
|
|
285
282
|
let encData = _crypto.default.publicEncrypt({
|
|
286
283
|
key: key,
|
|
287
284
|
padding: _crypto.default.constants.RSA_PKCS1_OAEP_PADDING,
|
|
@@ -308,13 +305,11 @@ const completeInstall = async (installConfig, apiServerClient, defsManager) => {
|
|
|
308
305
|
} // create the data plane resource
|
|
309
306
|
|
|
310
307
|
|
|
311
|
-
let dataplaneRes = await helpers.createNewDataPlaneResource(apiServerClient, defsManager, installConfig.centralConfig.environment, _types.GatewayTypeToDataPlane[installConfig.gatewayType], apigeeXAgentValues.dataplaneConfig);
|
|
312
|
-
console.log(dataplaneRes); // create data plane secret resource
|
|
308
|
+
let dataplaneRes = await helpers.createNewDataPlaneResource(apiServerClient, defsManager, installConfig.centralConfig.environment, _types.GatewayTypeToDataPlane[installConfig.gatewayType], apigeeXAgentValues.dataplaneConfig); // create data plane secret resource
|
|
313
309
|
|
|
314
310
|
try {
|
|
315
311
|
await helpers.createNewDataPlaneSecretResource(apiServerClient, defsManager, installConfig.centralConfig.environment, _types.GatewayTypeToDataPlane[installConfig.gatewayType], dataplaneRes.name, await createEncryptedAccessData(apigeeXAgentValues, dataplaneRes));
|
|
316
312
|
} catch (error) {
|
|
317
|
-
console.log(error);
|
|
318
313
|
console.log(_chalk.default.redBright("rolling back installation. Please check the credential data before re-running install"));
|
|
319
314
|
|
|
320
315
|
if (installConfig.centralConfig.ampcEnvInfo.isNew) {
|
|
@@ -67,10 +67,10 @@ class Sanitize {
|
|
|
67
67
|
constructor(k, m) {
|
|
68
68
|
_defineProperty(this, "keyMatch", void 0);
|
|
69
69
|
|
|
70
|
-
_defineProperty(this, "
|
|
70
|
+
_defineProperty(this, "valueMatch", void 0);
|
|
71
71
|
|
|
72
72
|
this.keyMatch = k;
|
|
73
|
-
this.
|
|
73
|
+
this.valueMatch = m;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
}
|