@axway/axway-central-cli 2.15.0-rc.2 → 2.15.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.
|
@@ -53,7 +53,7 @@ const {
|
|
|
53
53
|
const localhost = 'localhost';
|
|
54
54
|
exports.localhost = localhost;
|
|
55
55
|
const prompts = {
|
|
56
|
-
hostedAgentOption: 'Will this
|
|
56
|
+
hostedAgentOption: 'Will this be an embedded agent',
|
|
57
57
|
selectGatewayType: 'Select the type of gateway you want to connect'
|
|
58
58
|
};
|
|
59
59
|
exports.prompts = prompts;
|
|
@@ -130,11 +130,10 @@ const agents = {
|
|
|
130
130
|
installConfig.centralConfig.axwayManaged = !!axwayManaged; // top priority is region option on command line, second priority is region from config file, default is US
|
|
131
131
|
|
|
132
132
|
installConfig.centralConfig.region = await determineRegion(region);
|
|
133
|
-
installConfig.centralConfig.singleEntryPointUrl = _types.SingleEntryPointUrls[installConfig.centralConfig.region];
|
|
134
|
-
|
|
133
|
+
installConfig.centralConfig.singleEntryPointUrl = _types.SingleEntryPointUrls[installConfig.centralConfig.region];
|
|
135
134
|
let gatewayType = await (0, _basicPrompts.askList)({
|
|
136
135
|
msg: prompts.selectGatewayType,
|
|
137
|
-
choices:
|
|
136
|
+
choices: Object.values(_types.GatewayTypes).filter(v => v !== _types.GatewayTypes.EDGE_GATEWAY_ONLY)
|
|
138
137
|
});
|
|
139
138
|
|
|
140
139
|
if (gatewayType === _types.GatewayTypes.AWS_GATEWAY) {
|
|
@@ -98,7 +98,7 @@ const ConfigFiles = {}; // AWSAuthType - how the agent will authenticate to AWS
|
|
|
98
98
|
var AWSAuthType; // AWSSaaSPrompts - all AWS Saas prompts to the user for input
|
|
99
99
|
|
|
100
100
|
(function (AWSAuthType) {
|
|
101
|
-
AWSAuthType["ASSUME"] = "
|
|
101
|
+
AWSAuthType["ASSUME"] = "Assume Role Policy";
|
|
102
102
|
AWSAuthType["KEYS"] = "Access and Secret Keys";
|
|
103
103
|
})(AWSAuthType || (AWSAuthType = {}));
|
|
104
104
|
|
|
@@ -106,10 +106,10 @@ const SaasPrompts = {
|
|
|
106
106
|
AUTHENTICATION_TYPE: 'Authenticate with an AssumeRole Policy or an Access Key ID and Secret Access Key',
|
|
107
107
|
ACCESS_KEY: 'Enter the AWS Access Key ID the agent will use',
|
|
108
108
|
SECRET_KEY: 'Enter the AWS Secret Access Key the agent will use',
|
|
109
|
-
ASSUME_ROLE: 'Enter the
|
|
110
|
-
EXTERNAL_ID: 'Enter the
|
|
109
|
+
ASSUME_ROLE: 'Enter the Role ARN that the agent will Assume',
|
|
110
|
+
EXTERNAL_ID: 'Enter the External ID the Assume Role expects',
|
|
111
111
|
FREQUENCY: 'How often should the discovery run, leave blank for integrating in CI/CD process',
|
|
112
|
-
QUEUE: 'Do you want to
|
|
112
|
+
QUEUE: 'Do you want to discover immediately after installation'
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
const askBundleType = async () => {
|
|
@@ -151,7 +151,8 @@ const askForAWSCredentials = async hostedAgentValues => {
|
|
|
151
151
|
|
|
152
152
|
hostedAgentValues.externalID = await (0, _basicPrompts.askInput)({
|
|
153
153
|
msg: SaasPrompts.EXTERNAL_ID,
|
|
154
|
-
defaultValue: hostedAgentValues.externalID !== '' ? hostedAgentValues.externalID : undefined
|
|
154
|
+
defaultValue: hostedAgentValues.externalID !== '' ? hostedAgentValues.externalID : undefined,
|
|
155
|
+
allowEmptyInput: true
|
|
155
156
|
});
|
|
156
157
|
} else {
|
|
157
158
|
log("using key and secret authentication"); // get access key
|