@axway/axway-central-cli 4.5.0 → 4.6.0-rc.0
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/.security-profile-branches.json +18 -0
- package/package.json +1 -1
- package/dist/cli.js +0 -71
- package/dist/commands/apply/index.js +0 -112
- package/dist/commands/completion/index.js +0 -100
- package/dist/commands/config/common/index.js +0 -28
- package/dist/commands/config/index.js +0 -20
- package/dist/commands/config/list.js +0 -24
- package/dist/commands/config/set.js +0 -102
- package/dist/commands/config/unset.js +0 -48
- package/dist/commands/create/agentResource.js +0 -108
- package/dist/commands/create/environment.js +0 -62
- package/dist/commands/create/index.js +0 -109
- package/dist/commands/create/serviceAccount.js +0 -15
- package/dist/commands/delete/index.js +0 -196
- package/dist/commands/edit/environment.js +0 -101
- package/dist/commands/edit/index.js +0 -28
- package/dist/commands/get/index.js +0 -272
- package/dist/commands/install/agents.js +0 -290
- package/dist/commands/install/apigeexAgents.js +0 -223
- package/dist/commands/install/apigeexSaasAgents.js +0 -300
- package/dist/commands/install/awsAgents.js +0 -525
- package/dist/commands/install/awsSaasAgents.js +0 -508
- package/dist/commands/install/azureAgents.js +0 -242
- package/dist/commands/install/azureSaasAgents.js +0 -519
- package/dist/commands/install/backstageAgents.js +0 -167
- package/dist/commands/install/edgeAgents.js +0 -409
- package/dist/commands/install/gitHubSaasAgents.js +0 -294
- package/dist/commands/install/gitLabAgents.js +0 -178
- package/dist/commands/install/graylogAgent.js +0 -147
- package/dist/commands/install/helpers/creators.js +0 -359
- package/dist/commands/install/helpers/deleters.js +0 -36
- package/dist/commands/install/helpers/getters.js +0 -95
- package/dist/commands/install/helpers/index.js +0 -267
- package/dist/commands/install/helpers/inputs.js +0 -593
- package/dist/commands/install/helpers/regex.js +0 -67
- package/dist/commands/install/helpers/templates/apigeexTemplates.js +0 -109
- package/dist/commands/install/helpers/templates/awsTemplates.js +0 -129
- package/dist/commands/install/helpers/templates/azureTemplates.js +0 -125
- package/dist/commands/install/helpers/templates/backstageTemplates.js +0 -95
- package/dist/commands/install/helpers/templates/edgeTemplates.js +0 -360
- package/dist/commands/install/helpers/templates/gitLabTemplates.js +0 -66
- package/dist/commands/install/helpers/templates/graylogTemplates.js +0 -75
- package/dist/commands/install/helpers/templates/ibmAPIConnectTemplates.js +0 -116
- package/dist/commands/install/helpers/templates/istioTemplates.js +0 -214
- package/dist/commands/install/helpers/templates/kafkaTemplates.js +0 -194
- package/dist/commands/install/helpers/templates/sapApiPortalTemplates.js +0 -114
- package/dist/commands/install/helpers/templates/softwareAGWebMethodsTemplates.js +0 -93
- package/dist/commands/install/helpers/templates/traceableTemplates.js +0 -135
- package/dist/commands/install/helpers/templates/wso2Templates.js +0 -85
- package/dist/commands/install/helpers/util.js +0 -26
- package/dist/commands/install/ibmAPIConnectAgents.js +0 -213
- package/dist/commands/install/index.js +0 -36
- package/dist/commands/install/istioAgents.js +0 -346
- package/dist/commands/install/kafkaAgents.js +0 -303
- package/dist/commands/install/platform.js +0 -175
- package/dist/commands/install/sapApiPortalAgents.js +0 -198
- package/dist/commands/install/softwareAGWebMethodsAgents.js +0 -161
- package/dist/commands/install/swaggerHubSaasAgents.js +0 -272
- package/dist/commands/install/traceableAgents.js +0 -257
- package/dist/commands/install/traceableSaasAgents.js +0 -275
- package/dist/commands/install/wso2Agents.js +0 -163
- package/dist/commands/productize/helpers/productizationHelper.js +0 -408
- package/dist/commands/productize/index.js +0 -99
- package/dist/common/ApiServerClient.js +0 -1109
- package/dist/common/CacheController.js +0 -146
- package/dist/common/CliConfigManager.js +0 -76
- package/dist/common/CompositeError.js +0 -95
- package/dist/common/CoreConfigController.js +0 -174
- package/dist/common/DefinitionsManager.js +0 -298
- package/dist/common/Kubectl.js +0 -68
- package/dist/common/PlatformClient.js +0 -128
- package/dist/common/Renderer.js +0 -409
- package/dist/common/TmpFile.js +0 -96
- package/dist/common/bashCommands.js +0 -97
- package/dist/common/basicPrompts.js +0 -160
- package/dist/common/dataService.js +0 -312
- package/dist/common/errorHandler.js +0 -46
- package/dist/common/modules.d.js +0 -1
- package/dist/common/resultsRenderers.js +0 -164
- package/dist/common/types.js +0 -746
- package/dist/common/utils.js +0 -476
- package/dist/main.js +0 -8
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.istioInstallTemplate = exports.istioAgentsTemplate = exports.IstioValues = void 0;
|
|
7
|
-
var _types = require("../../../../common/types");
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
/**
|
|
12
|
-
* @description Values for installing the Istio Agents
|
|
13
|
-
*/
|
|
14
|
-
class IstioValues {
|
|
15
|
-
constructor() {
|
|
16
|
-
_defineProperty(this, "istioAgentValues", void 0);
|
|
17
|
-
_defineProperty(this, "istioInstallValues", void 0);
|
|
18
|
-
_defineProperty(this, "centralConfig", void 0);
|
|
19
|
-
_defineProperty(this, "traceabilityConfig", void 0);
|
|
20
|
-
this.istioAgentValues = new _types.IstioAgentValues();
|
|
21
|
-
this.istioInstallValues = new _types.IstioInstallValues();
|
|
22
|
-
this.centralConfig = new _types.CentralAgentConfig();
|
|
23
|
-
this.traceabilityConfig = new _types.TraceabilityConfig();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @description Generates the override file for the Amplify Istio Agents.
|
|
29
|
-
*/
|
|
30
|
-
exports.IstioValues = IstioValues;
|
|
31
|
-
const istioAgentsTemplate = () => {
|
|
32
|
-
return `---
|
|
33
|
-
# Config for creating the K8S Secret that holds the Amplify Platform service account details as part of the helm chart deployment
|
|
34
|
-
secret:
|
|
35
|
-
# Set to true, and provide the following values to enable the creation of the K8S Secret
|
|
36
|
-
create: false
|
|
37
|
-
name: ""
|
|
38
|
-
password: ""
|
|
39
|
-
publicKey: ""
|
|
40
|
-
privateKey: ""
|
|
41
|
-
|
|
42
|
-
# Traceability agent config
|
|
43
|
-
als:
|
|
44
|
-
enabled: {{istioAgentValues.alsEnabled}}
|
|
45
|
-
|
|
46
|
-
# # Traceability Agent image overrides
|
|
47
|
-
# image:
|
|
48
|
-
# fullPath:
|
|
49
|
-
# registry: docker.repository.axway.com
|
|
50
|
-
# repository: ampc-beano-docker-prod/2.1
|
|
51
|
-
# name: als-traceability-agent
|
|
52
|
-
# tag:
|
|
53
|
-
# pullPolicy: IfNotPresent
|
|
54
|
-
# pullSecret:
|
|
55
|
-
|
|
56
|
-
# Header publishing mode. Set to default or verbose.
|
|
57
|
-
mode: {{istioAgentValues.alsMode}}
|
|
58
|
-
|
|
59
|
-
# Name of the k8scluster
|
|
60
|
-
clusterName: {{istioAgentValues.clusterName}}
|
|
61
|
-
|
|
62
|
-
# Name of the secret containing the public & private keys used by the provided service account client ID
|
|
63
|
-
keysSecretName: {{istioAgentValues.keysSecretName}}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
# List of namespaces where the ALS Envoy filters should be applied
|
|
67
|
-
envoyFilterNamespaces:
|
|
68
|
-
- {{istioAgentValues.envoyFilterNamespace}}
|
|
69
|
-
publishHeaders: true
|
|
70
|
-
|
|
71
|
-
# Amplify config overrides
|
|
72
|
-
env:
|
|
73
|
-
LOG_LEVEL: info
|
|
74
|
-
CENTRAL_REGION: {{centralConfig.region}}
|
|
75
|
-
CENTRAL_ORGANIZATIONID: "{{centralConfig.orgId}}"
|
|
76
|
-
CENTRAL_AUTH_CLIENTID: {{centralConfig.dosaAccount.clientId}}
|
|
77
|
-
CENTRAL_AGENTNAME: {{centralConfig.taAgentName}}
|
|
78
|
-
CENTRAL_ENVIRONMENT: {{centralConfig.environment}}
|
|
79
|
-
CENTRAL_TEAM: "{{centralConfig.ampcTeamName}}"
|
|
80
|
-
|
|
81
|
-
# Discovery agent config
|
|
82
|
-
da:
|
|
83
|
-
enabled: {{istioAgentValues.discoveryEnabled}}
|
|
84
|
-
|
|
85
|
-
# # Discovery Agent image overrides
|
|
86
|
-
# image:
|
|
87
|
-
# fullPath:
|
|
88
|
-
# registry: docker.repository.axway.com
|
|
89
|
-
# repository: ampc-beano-docker-prod/1.1
|
|
90
|
-
# name: istio-discovery-agent
|
|
91
|
-
# tag:
|
|
92
|
-
# pullPolicy: IfNotPresent
|
|
93
|
-
# pullSecret:
|
|
94
|
-
|
|
95
|
-
# Name of the secret containing the public & private keys used by the provided service account client ID
|
|
96
|
-
keysSecretName: {{istioAgentValues.keysSecretName}}
|
|
97
|
-
|
|
98
|
-
# Name of the K8SCluster the agent is connected to
|
|
99
|
-
clusterName: {{istioAgentValues.clusterName}}
|
|
100
|
-
|
|
101
|
-
# Resource discovery config
|
|
102
|
-
discovery:
|
|
103
|
-
# List of http endpoints to discover api specs from
|
|
104
|
-
virtualService:
|
|
105
|
-
# List of namespaces that will be used by agent to discover VirtualService resources
|
|
106
|
-
namespaces:
|
|
107
|
-
{{#each istioAgentValues.discoveryNamespaces}}
|
|
108
|
-
- {{this}}
|
|
109
|
-
{{/each}}
|
|
110
|
-
# List of labels that will be used by agent to filter VirtualService resources
|
|
111
|
-
labels: []
|
|
112
|
-
requestAuth:
|
|
113
|
-
# List of namespaces that will be used by agent to discover RequestAuthentication resources
|
|
114
|
-
namespaces:
|
|
115
|
-
{{#each istioAgentValues.discoveryNamespaces}}
|
|
116
|
-
- {{this}}
|
|
117
|
-
{{/each}}
|
|
118
|
-
# List of labels that will be used by agent to filter RequestAuthentication resources
|
|
119
|
-
labels: []
|
|
120
|
-
|
|
121
|
-
# IDP Provider config
|
|
122
|
-
idpProviders:
|
|
123
|
-
|
|
124
|
-
# Amplify config overrides
|
|
125
|
-
env:
|
|
126
|
-
LOG_LEVEL: info
|
|
127
|
-
CENTRAL_AGENTNAME: {{centralConfig.daAgentName}}
|
|
128
|
-
CENTRAL_REGION: {{centralConfig.region}}
|
|
129
|
-
CENTRAL_AUTH_CLIENTID: {{centralConfig.dosaAccount.clientId}}
|
|
130
|
-
CENTRAL_ORGANIZATIONID: "{{centralConfig.orgId}}"
|
|
131
|
-
CENTRAL_ENVIRONMENT: {{centralConfig.environment}}
|
|
132
|
-
CENTRAL_TEAM: "{{centralConfig.ampcTeamName}}"
|
|
133
|
-
|
|
134
|
-
# Deploy the chart with an optional demo service
|
|
135
|
-
list:
|
|
136
|
-
enabled: {{istioAgentValues.demoSvcEnabled}}`;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @description Generates the override file to install Istio with settings to connect to the Istio Traceability Agent.
|
|
141
|
-
*/
|
|
142
|
-
exports.istioAgentsTemplate = istioAgentsTemplate;
|
|
143
|
-
const istioInstallTemplate = () => {
|
|
144
|
-
return `---
|
|
145
|
-
apiVersion: install.istio.io/v1alpha1
|
|
146
|
-
kind: IstioOperator
|
|
147
|
-
spec:
|
|
148
|
-
meshConfig:
|
|
149
|
-
enableTracing: {{istioInstallValues.enableTracing}}
|
|
150
|
-
enableEnvoyAccessLogService: {{istioInstallValues.enableAls}}
|
|
151
|
-
defaultConfig:
|
|
152
|
-
envoyAccessLogService:
|
|
153
|
-
address: ampc-hybrid-als.{{istioInstallValues.alsNamespace}}.svc.cluster.local:9000
|
|
154
|
-
outboundTrafficPolicy:
|
|
155
|
-
mode: REGISTRY_ONLY
|
|
156
|
-
|
|
157
|
-
{{#if istioInstallValues.isNewInstall}}
|
|
158
|
-
components:
|
|
159
|
-
egressGateways:
|
|
160
|
-
- name: istio-egressgateway
|
|
161
|
-
enabled: false
|
|
162
|
-
|
|
163
|
-
ingressGateways:
|
|
164
|
-
- name: istio-ingressgateway
|
|
165
|
-
enabled: true
|
|
166
|
-
{{#if istioInstallValues.host}}
|
|
167
|
-
k8s:
|
|
168
|
-
replicaCount: 1
|
|
169
|
-
service:
|
|
170
|
-
ports:
|
|
171
|
-
- port: {{istioInstallValues.port}}
|
|
172
|
-
targetPort: {{istioInstallValues.targetPort}}
|
|
173
|
-
name: {{istioInstallValues.protocol}}-{{istioInstallValues.port}}
|
|
174
|
-
{{/if}}
|
|
175
|
-
|
|
176
|
-
pilot:
|
|
177
|
-
enabled: true
|
|
178
|
-
|
|
179
|
-
values:
|
|
180
|
-
telemetry:
|
|
181
|
-
enabled: true
|
|
182
|
-
v2:
|
|
183
|
-
enabled: true
|
|
184
|
-
|
|
185
|
-
gateways:
|
|
186
|
-
istio-ingressgateway:
|
|
187
|
-
name: istio-ingressgateway
|
|
188
|
-
labels:
|
|
189
|
-
istio: istio-apic-ingress
|
|
190
|
-
app: apic-ingress
|
|
191
|
-
resources: {}
|
|
192
|
-
{{#if istioInstallValues.host}}
|
|
193
|
-
serviceAnnotations:
|
|
194
|
-
external-dns.alpha.kubernetes.io/hostname: {{istioInstallValues.host}}.
|
|
195
|
-
ports:
|
|
196
|
-
- port: {{istioInstallValues.port}}
|
|
197
|
-
name: {{istioInstallValues.protocol}}-{{istioInstallValues.port}}
|
|
198
|
-
{{#if istioInstallValues.certSecretName}}
|
|
199
|
-
secretVolumes:
|
|
200
|
-
- name: {{istioInstallValues.certSecretName}}
|
|
201
|
-
secretName: {{istioInstallValues.certSecretName}}
|
|
202
|
-
mountPath: /etc/istio/istio-ingressgateway
|
|
203
|
-
{{/if}}
|
|
204
|
-
{{/if}}
|
|
205
|
-
{{else}}
|
|
206
|
-
values:
|
|
207
|
-
telemetry:
|
|
208
|
-
enabled: true
|
|
209
|
-
v2:
|
|
210
|
-
enabled: true
|
|
211
|
-
{{/if}}
|
|
212
|
-
`;
|
|
213
|
-
};
|
|
214
|
-
exports.istioInstallTemplate = istioInstallTemplate;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.kafkaTAEnvVarTemplate = exports.kafkaDAEnvVarTemplate = exports.KafkaAgentValues = void 0;
|
|
7
|
-
var _types = require("../../../../common/types");
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
/**
|
|
12
|
-
* @description Parameters to provide to the Kafka handlebars templates.
|
|
13
|
-
*/
|
|
14
|
-
class KafkaAgentValues {
|
|
15
|
-
constructor() {
|
|
16
|
-
_defineProperty(this, "cloudEnabled", void 0);
|
|
17
|
-
_defineProperty(this, "cloudEnvironmentId", void 0);
|
|
18
|
-
_defineProperty(this, "cloudAPIKey", void 0);
|
|
19
|
-
_defineProperty(this, "cloudAPISecret", void 0);
|
|
20
|
-
_defineProperty(this, "cloudClusterId", void 0);
|
|
21
|
-
_defineProperty(this, "clusterServer", void 0);
|
|
22
|
-
_defineProperty(this, "clusterAPIKey", void 0);
|
|
23
|
-
_defineProperty(this, "clusterAPISecret", void 0);
|
|
24
|
-
_defineProperty(this, "clusterSaslMechanism", void 0);
|
|
25
|
-
_defineProperty(this, "clusterSaslUser", void 0);
|
|
26
|
-
_defineProperty(this, "clusterSaslPassword", void 0);
|
|
27
|
-
_defineProperty(this, "saslOauthTokenUrl", void 0);
|
|
28
|
-
_defineProperty(this, "saslOauthClientId", void 0);
|
|
29
|
-
_defineProperty(this, "saslOauthClientSecret", void 0);
|
|
30
|
-
_defineProperty(this, "saslOauthClientScopes", void 0);
|
|
31
|
-
_defineProperty(this, "schemaRegistryEnabled", void 0);
|
|
32
|
-
_defineProperty(this, "schemaRegistryUrl", void 0);
|
|
33
|
-
_defineProperty(this, "schemaRegistryAuthEnabled", void 0);
|
|
34
|
-
_defineProperty(this, "schemaRegistryAPIKey", void 0);
|
|
35
|
-
_defineProperty(this, "schemaRegistryAPISecret", void 0);
|
|
36
|
-
_defineProperty(this, "centralConfig", void 0);
|
|
37
|
-
_defineProperty(this, "traceabilityConfig", void 0);
|
|
38
|
-
this.cloudEnabled = false;
|
|
39
|
-
this.cloudEnvironmentId = '';
|
|
40
|
-
this.cloudAPIKey = '';
|
|
41
|
-
this.cloudAPISecret = '';
|
|
42
|
-
this.cloudClusterId = '';
|
|
43
|
-
this.clusterServer = '';
|
|
44
|
-
this.clusterAPIKey = '';
|
|
45
|
-
this.clusterAPISecret = '';
|
|
46
|
-
this.clusterSaslMechanism = '';
|
|
47
|
-
this.clusterSaslUser = '';
|
|
48
|
-
this.clusterSaslPassword = '';
|
|
49
|
-
this.saslOauthTokenUrl = '';
|
|
50
|
-
this.saslOauthClientId = '';
|
|
51
|
-
this.saslOauthClientSecret = '';
|
|
52
|
-
this.saslOauthClientScopes = '';
|
|
53
|
-
this.schemaRegistryEnabled = false;
|
|
54
|
-
this.schemaRegistryUrl = '';
|
|
55
|
-
this.schemaRegistryAuthEnabled = true;
|
|
56
|
-
this.schemaRegistryAPIKey = '';
|
|
57
|
-
this.schemaRegistryAPISecret = '';
|
|
58
|
-
this.centralConfig = new _types.CentralAgentConfig();
|
|
59
|
-
this.traceabilityConfig = new _types.TraceabilityConfig();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @description Generates the Kafka DA env vars file.
|
|
65
|
-
*/
|
|
66
|
-
exports.KafkaAgentValues = KafkaAgentValues;
|
|
67
|
-
const kafkaDAEnvVarTemplate = () => {
|
|
68
|
-
return `# Kafka cluster configs
|
|
69
|
-
{{#if cloudEnabled}}
|
|
70
|
-
KAFKA_CLOUD_ENABLED={{cloudEnabled}}
|
|
71
|
-
KAFKA_CLOUD_ENVIRONMENT={{cloudEnvironmentId}}
|
|
72
|
-
KAFKA_CLOUD_AUTH_APIKEY_ID={{cloudAPIKey}}
|
|
73
|
-
KAFKA_CLOUD_AUTH_APIKEY_SECRET={{cloudAPISecret}}
|
|
74
|
-
KAFKA_CLUSTER_ID={{cloudClusterId}}
|
|
75
|
-
KAFKA_CLUSTER_AUTH_APIKEY_ID={{clusterAPIKey}}
|
|
76
|
-
KAFKA_CLUSTER_AUTH_APIKEY_SECRET={{clusterAPISecret}}
|
|
77
|
-
{{else}}
|
|
78
|
-
KAFKA_CLUSTER_SERVERS={{clusterServer}}
|
|
79
|
-
{{#compare . clusterSaslMechanism "NONE" operator="!="}}
|
|
80
|
-
KAFKA_CLUSTER_AUTH_SASL_MECHANISM={{clusterSaslMechanism}}
|
|
81
|
-
{{#compare . clusterSaslMechanism "OAUTHBEARER" operator="=="}}
|
|
82
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_TOKENURL={{saslOauthTokenUrl}}
|
|
83
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_CLIENTID={{saslOauthClientId}}
|
|
84
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_CLIENTSECRET={{saslOauthClientSecret}}
|
|
85
|
-
{{#compare . saslOauthClientScopes "" operator="!=" }}
|
|
86
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_SCOPES={{saslOauthClientScopes}}
|
|
87
|
-
{{/compare}}
|
|
88
|
-
{{/compare}}
|
|
89
|
-
{{#compare . clusterSaslMechanism "OAUTHBEARER" operator="!="}}
|
|
90
|
-
KAFKA_CLUSTER_AUTH_SASL_USERNAME={{clusterSaslUser}}
|
|
91
|
-
KAFKA_CLUSTER_AUTH_SASL_PASSWORD={{clusterSaslPassword}}
|
|
92
|
-
{{/compare}}
|
|
93
|
-
{{/compare}}
|
|
94
|
-
{{/if}}
|
|
95
|
-
|
|
96
|
-
{{#if cloudEnabled}}
|
|
97
|
-
KAFKA_SCHEMAREGISTRY_ENABLED=true
|
|
98
|
-
KAFKA_SCHEMAREGISTRY_AUTH_APIKEY_ID={{schemaRegistryAPIKey}}
|
|
99
|
-
KAFKA_SCHEMAREGISTRY_AUTH_APIKEY_SECRET={{schemaRegistryAPISecret}}
|
|
100
|
-
{{else}}
|
|
101
|
-
{{#if schemaRegistryEnabled}}
|
|
102
|
-
KAFKA_SCHEMAREGISTRY_ENABLED=true
|
|
103
|
-
KAFKA_SCHEMAREGISTRY_URL={{schemaRegistryUrl}}
|
|
104
|
-
{{#if schemaRegistryAuthEnabled}}
|
|
105
|
-
KAFKA_SCHEMAREGISTRY_AUTH_SASL_MECHANISM={{clusterSaslMechanism}}
|
|
106
|
-
{{#compare . clusterSaslMechanism "OAUTHBEARER" operator="=="}}
|
|
107
|
-
KAFKA_SCHEMAREGISTRY_AUTH_SASL_OAUTH_TOKENURL={{saslOauthTokenUrl}}
|
|
108
|
-
KAFKA_SCHEMAREGISTRY_AUTH_SASL_OAUTH_CLIENTID={{saslOauthClientId}}
|
|
109
|
-
KAFKA_SCHEMAREGISTRY_AUTH_SASL_OAUTH_CLIENTSECRET={{saslOauthClientSecret}}
|
|
110
|
-
{{#compare . saslOauthClientScopes "" operator="!=" }}
|
|
111
|
-
KAFKA_SCHEMAREGISTRY_AUTH_SASL_OAUTH_SCOPES={{saslOauthClientScopes}}
|
|
112
|
-
{{/compare}}
|
|
113
|
-
{{/compare}}
|
|
114
|
-
{{#compare . clusterSaslMechanism "OAUTHBEARER" operator="!="}}
|
|
115
|
-
KAFKA_SCHEMAREGISTRY_AUTH_SASL_USERNAME={{clusterSaslUser}}
|
|
116
|
-
KAFKA_SCHEMAREGISTRY_AUTH_SASL_PASSWORD={{clusterSaslPassword}}
|
|
117
|
-
{{/compare}}
|
|
118
|
-
{{/if}}
|
|
119
|
-
{{/if}}
|
|
120
|
-
{{/if}}
|
|
121
|
-
|
|
122
|
-
# Amplify Central configs
|
|
123
|
-
CENTRAL_AGENTNAME={{centralConfig.daAgentName}}
|
|
124
|
-
CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
|
|
125
|
-
CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
|
|
126
|
-
CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
|
|
127
|
-
CENTRAL_ENVIRONMENT={{centralConfig.environment}}
|
|
128
|
-
CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
|
|
129
|
-
CENTRAL_TEAM={{centralConfig.ampcTeamName}}
|
|
130
|
-
CENTRAL_REGION={{centralConfig.region}}
|
|
131
|
-
|
|
132
|
-
# Logging configs
|
|
133
|
-
# Define the logging level: info, debug, error
|
|
134
|
-
LOG_LEVEL=info
|
|
135
|
-
# Specify where to send the log: stdout, file, both
|
|
136
|
-
LOG_OUTPUT=stdout
|
|
137
|
-
# Define where the log files are written
|
|
138
|
-
LOG_FILE_PATH=logs
|
|
139
|
-
`;
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @description Generates the Kafka TA env vars file.
|
|
144
|
-
*/
|
|
145
|
-
exports.kafkaDAEnvVarTemplate = kafkaDAEnvVarTemplate;
|
|
146
|
-
const kafkaTAEnvVarTemplate = () => {
|
|
147
|
-
return `# Kafka cluster configs
|
|
148
|
-
{{#if cloudEnabled}}
|
|
149
|
-
KAFKA_CLOUD_ENABLED={{cloudEnabled}}
|
|
150
|
-
KAFKA_CLOUD_ENVIRONMENT={{cloudEnvironmentId}}
|
|
151
|
-
KAFKA_CLOUD_AUTH_APIKEY_ID={{cloudAPIKey}}
|
|
152
|
-
KAFKA_CLOUD_AUTH_APIKEY_SECRET={{cloudAPISecret}}
|
|
153
|
-
KAFKA_CLUSTER_ID={{cloudClusterId}}
|
|
154
|
-
KAFKA_CLUSTER_AUTH_APIKEY_ID={{clusterAPIKey}}
|
|
155
|
-
KAFKA_CLUSTER_AUTH_APIKEY_SECRET={{clusterAPISecret}}
|
|
156
|
-
{{else}}
|
|
157
|
-
KAFKA_CLUSTER_SERVERS={{clusterServer}}
|
|
158
|
-
{{#compare . clusterSaslMechanism "NONE" operator="!="}}
|
|
159
|
-
KAFKA_CLUSTER_AUTH_SASL_MECHANISM={{clusterSaslMechanism}}
|
|
160
|
-
{{#compare . clusterSaslMechanism "OAUTHBEARER" operator="=="}}
|
|
161
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_TOKENURL={{saslOauthTokenUrl}}
|
|
162
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_CLIENTID={{saslOauthClientId}}
|
|
163
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_CLIENTSECRET={{saslOauthClientSecret}}
|
|
164
|
-
{{#compare . saslOauthClientScopes "" operator="!=" }}
|
|
165
|
-
KAFKA_CLUSTER_AUTH_SASL_OAUTH_SCOPES={{saslOauthClientScopes}}
|
|
166
|
-
{{/compare}}
|
|
167
|
-
{{/compare}}
|
|
168
|
-
{{#compare . clusterSaslMechanism "OAUTHBEARER" operator="!="}}
|
|
169
|
-
KAFKA_CLUSTER_AUTH_SASL_USERNAME={{clusterSaslUser}}
|
|
170
|
-
KAFKA_CLUSTER_AUTH_SASL_PASSWORD={{clusterSaslPassword}}
|
|
171
|
-
{{/compare}}
|
|
172
|
-
{{/compare}}
|
|
173
|
-
{{/if}}
|
|
174
|
-
|
|
175
|
-
# Amplify Central configs
|
|
176
|
-
CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
|
|
177
|
-
CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
|
|
178
|
-
CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
|
|
179
|
-
CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
|
|
180
|
-
CENTRAL_ENVIRONMENT={{centralConfig.environment}}
|
|
181
|
-
CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
|
|
182
|
-
CENTRAL_TEAM={{centralConfig.ampcTeamName}}
|
|
183
|
-
CENTRAL_REGION={{centralConfig.region}}
|
|
184
|
-
|
|
185
|
-
# Logging configs
|
|
186
|
-
# Define the logging level: info, debug, error
|
|
187
|
-
LOG_LEVEL=info
|
|
188
|
-
# Specify where to send the log: stdout, file, both
|
|
189
|
-
LOG_OUTPUT=stdout
|
|
190
|
-
# Define where the log files are written
|
|
191
|
-
LOG_FILE_PATH=logs
|
|
192
|
-
`;
|
|
193
|
-
};
|
|
194
|
-
exports.kafkaTAEnvVarTemplate = kafkaTAEnvVarTemplate;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.sapAPIPortalTAEnvVarTemplate = exports.sapAPIPortalDAEnvVarTemplate = exports.SAPApiPortalAgentValues = void 0;
|
|
7
|
-
var _types = require("../../../../common/types");
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
/**
|
|
12
|
-
* @description Parameters to provide to the SAP API Portal handlebars templates.
|
|
13
|
-
*/
|
|
14
|
-
class SAPApiPortalAgentValues {
|
|
15
|
-
constructor() {
|
|
16
|
-
_defineProperty(this, "authTokenURL", void 0);
|
|
17
|
-
_defineProperty(this, "authAPIPortalBaseURL", void 0);
|
|
18
|
-
_defineProperty(this, "authAPIPortalClientID", void 0);
|
|
19
|
-
_defineProperty(this, "authAPIPortalClientSecret", void 0);
|
|
20
|
-
_defineProperty(this, "authDevPortalBaseURL", void 0);
|
|
21
|
-
_defineProperty(this, "authDevPortalClientID", void 0);
|
|
22
|
-
_defineProperty(this, "authDevPortalClientSecret", void 0);
|
|
23
|
-
_defineProperty(this, "developerEmail", void 0);
|
|
24
|
-
_defineProperty(this, "specCreateUnstructuredAPI", void 0);
|
|
25
|
-
_defineProperty(this, "centralConfig", void 0);
|
|
26
|
-
_defineProperty(this, "traceabilityConfig", void 0);
|
|
27
|
-
this.authTokenURL = '';
|
|
28
|
-
this.authAPIPortalBaseURL = '';
|
|
29
|
-
this.authAPIPortalClientID = '';
|
|
30
|
-
this.authAPIPortalClientSecret = '';
|
|
31
|
-
this.authDevPortalBaseURL = '';
|
|
32
|
-
this.authDevPortalClientID = '';
|
|
33
|
-
this.authDevPortalClientSecret = '';
|
|
34
|
-
this.developerEmail = '';
|
|
35
|
-
this.specCreateUnstructuredAPI = false;
|
|
36
|
-
this.centralConfig = new _types.CentralAgentConfig();
|
|
37
|
-
this.traceabilityConfig = new _types.TraceabilityConfig();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @description Generates the SAP API Portal DA env vars file.
|
|
43
|
-
*/
|
|
44
|
-
exports.SAPApiPortalAgentValues = SAPApiPortalAgentValues;
|
|
45
|
-
const sapAPIPortalDAEnvVarTemplate = () => {
|
|
46
|
-
return `# SAP API Portal configs
|
|
47
|
-
SAP_AUTH_TOKENURL={{authTokenURL}}
|
|
48
|
-
SAP_AUTH_APIPORTAL_BASEURL={{authAPIPortalBaseURL}}
|
|
49
|
-
SAP_AUTH_APIPORTAL_CLIENTID={{authAPIPortalClientID}}
|
|
50
|
-
SAP_AUTH_APIPORTAL_CLIENTSECRET={{authAPIPortalClientSecret}}
|
|
51
|
-
SAP_AUTH_DEVPORTAL_BASEURL={{authDevPortalBaseURL}}
|
|
52
|
-
SAP_AUTH_DEVPORTAL_CLIENTID={{authDevPortalClientID}}
|
|
53
|
-
SAP_AUTH_DEVPORTAL_CLIENTSECRET={{authDevPortalClientSecret}}
|
|
54
|
-
SAP_DEVELOPEREMAIL={{developerEmail}}
|
|
55
|
-
SAP_SPEC_CREATEUNSTRUCTUREDAPI={{specCreateUnstructuredAPI}}
|
|
56
|
-
|
|
57
|
-
# Amplify Central configs
|
|
58
|
-
CENTRAL_AGENTNAME={{centralConfig.daAgentName}}
|
|
59
|
-
CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
|
|
60
|
-
CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
|
|
61
|
-
CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
|
|
62
|
-
CENTRAL_ENVIRONMENT={{centralConfig.environment}}
|
|
63
|
-
CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
|
|
64
|
-
CENTRAL_TEAM={{centralConfig.ampcTeamName}}
|
|
65
|
-
CENTRAL_REGION={{centralConfig.region}}
|
|
66
|
-
|
|
67
|
-
# Logging configs
|
|
68
|
-
# Define the logging level: info, debug, error
|
|
69
|
-
LOG_LEVEL=info
|
|
70
|
-
# Specify where to send the log: stdout, file, both
|
|
71
|
-
LOG_OUTPUT=stdout
|
|
72
|
-
# Define where the log files are written
|
|
73
|
-
LOG_FILE_PATH=logs
|
|
74
|
-
`;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @description Generates the SAP API Portal TA env vars file.
|
|
79
|
-
*/
|
|
80
|
-
exports.sapAPIPortalDAEnvVarTemplate = sapAPIPortalDAEnvVarTemplate;
|
|
81
|
-
const sapAPIPortalTAEnvVarTemplate = () => {
|
|
82
|
-
return `# SAP API Portal configs
|
|
83
|
-
SAP_AUTH_TOKENURL={{authTokenURL}}
|
|
84
|
-
SAP_AUTH_APIPORTAL_BASEURL={{authAPIPortalBaseURL}}
|
|
85
|
-
SAP_AUTH_APIPORTAL_CLIENTID={{authAPIPortalClientID}}
|
|
86
|
-
SAP_AUTH_APIPORTAL_CLIENTSECRET={{authAPIPortalClientSecret}}
|
|
87
|
-
|
|
88
|
-
# Amplify Central configs
|
|
89
|
-
{{#if traceabilityConfig.usageReportingOffline}}
|
|
90
|
-
CENTRAL_USAGEREPORTING_OFFLINE={{traceabilityConfig.usageReportingOffline}}
|
|
91
|
-
CENTRAL_ENVIRONMENTID={{centralConfig.environmentId}}
|
|
92
|
-
CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
|
|
93
|
-
{{else}}
|
|
94
|
-
CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
|
|
95
|
-
CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
|
|
96
|
-
CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
|
|
97
|
-
CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
|
|
98
|
-
CENTRAL_ENVIRONMENT={{centralConfig.environment}}
|
|
99
|
-
CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
|
|
100
|
-
CENTRAL_TEAM={{centralConfig.ampcTeamName}}
|
|
101
|
-
CENTRAL_REGION={{centralConfig.region}}
|
|
102
|
-
|
|
103
|
-
{{/if}}
|
|
104
|
-
|
|
105
|
-
# Logging configs
|
|
106
|
-
# Define the logging level: info, debug, error
|
|
107
|
-
LOG_LEVEL=info
|
|
108
|
-
# Specify where to send the log: stdout, file, both
|
|
109
|
-
LOG_OUTPUT=stdout
|
|
110
|
-
# Define where the log files are written
|
|
111
|
-
LOG_FILE_PATH=logs
|
|
112
|
-
`;
|
|
113
|
-
};
|
|
114
|
-
exports.sapAPIPortalTAEnvVarTemplate = sapAPIPortalTAEnvVarTemplate;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.softwareAGWebMethodsTAEnvVarTemplate = exports.softwareAGWebMethodsDAEnvVarTemplate = exports.SoftwareAGWebMethodsAgentValues = void 0;
|
|
7
|
-
var _types = require("../../../../common/types");
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
/**
|
|
12
|
-
* @description Values to provide to the Software AG WebMethods handlebars templates.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
class SoftwareAGWebMethodsAgentValues {
|
|
16
|
-
constructor() {
|
|
17
|
-
_defineProperty(this, "pathURL", void 0);
|
|
18
|
-
_defineProperty(this, "pathUsername", void 0);
|
|
19
|
-
_defineProperty(this, "pathPassword", void 0);
|
|
20
|
-
_defineProperty(this, "pathOauth2Server", void 0);
|
|
21
|
-
_defineProperty(this, "centralConfig", void 0);
|
|
22
|
-
_defineProperty(this, "traceabilityConfig", void 0);
|
|
23
|
-
this.pathURL = '';
|
|
24
|
-
this.pathUsername = '';
|
|
25
|
-
this.pathPassword = '';
|
|
26
|
-
this.pathOauth2Server = 'local';
|
|
27
|
-
this.centralConfig = new _types.CentralAgentConfig();
|
|
28
|
-
this.traceabilityConfig = new _types.TraceabilityConfig();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @description Generates the Software AG WebMethods TA env vars file.
|
|
34
|
-
*/
|
|
35
|
-
exports.SoftwareAGWebMethodsAgentValues = SoftwareAGWebMethodsAgentValues;
|
|
36
|
-
const softwareAGWebMethodsTAEnvVarTemplate = () => {
|
|
37
|
-
return `# Software AG WebMethods configs
|
|
38
|
-
WEBMETHODS_URL={{pathURL}}
|
|
39
|
-
WEBMETHODS_AUTH_USERNAME={{pathUsername}}
|
|
40
|
-
WEBMETHODS_AUTH_PASSWORD={{pathPassword}}
|
|
41
|
-
WEBMETHODS_OAUTH2SERVER={{pathOauth2Server}}
|
|
42
|
-
|
|
43
|
-
# Amplify Central configs
|
|
44
|
-
CENTRAL_AGENTNAME={{centralConfig.taAgentName}}
|
|
45
|
-
CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
|
|
46
|
-
CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
|
|
47
|
-
CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
|
|
48
|
-
CENTRAL_ENVIRONMENT={{centralConfig.environment}}
|
|
49
|
-
CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
|
|
50
|
-
CENTRAL_TEAM={{centralConfig.ampcTeamName}}
|
|
51
|
-
CENTRAL_REGION={{centralConfig.region}}
|
|
52
|
-
|
|
53
|
-
# Logging configs
|
|
54
|
-
# Define the logging level: info, debug, error
|
|
55
|
-
LOG_LEVEL=info
|
|
56
|
-
# Specify where to send the log: stdout, file, both
|
|
57
|
-
LOG_OUTPUT=stdout
|
|
58
|
-
# Define where the log files are written
|
|
59
|
-
LOG_FILE_PATH=logs
|
|
60
|
-
`;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @description Generates the Software AG WebMethods DA env vars file.
|
|
65
|
-
*/
|
|
66
|
-
exports.softwareAGWebMethodsTAEnvVarTemplate = softwareAGWebMethodsTAEnvVarTemplate;
|
|
67
|
-
const softwareAGWebMethodsDAEnvVarTemplate = () => {
|
|
68
|
-
return `# Software AG WebMethods configs
|
|
69
|
-
WEBMETHODS_URL={{pathURL}}
|
|
70
|
-
WEBMETHODS_AUTH_USERNAME={{pathUsername}}
|
|
71
|
-
WEBMETHODS_AUTH_PASSWORD={{pathPassword}}
|
|
72
|
-
WEBMETHODS_OAUTH2SERVER={{pathOauth2Server}}
|
|
73
|
-
|
|
74
|
-
# Amplify Central configs
|
|
75
|
-
CENTRAL_AGENTNAME={{centralConfig.daAgentName}}
|
|
76
|
-
CENTRAL_AUTH_CLIENTID={{centralConfig.dosaAccount.clientId}}
|
|
77
|
-
CENTRAL_AUTH_PRIVATEKEY={{centralConfig.dosaAccount.templatePrivateKey}}
|
|
78
|
-
CENTRAL_AUTH_PUBLICKEY={{centralConfig.dosaAccount.templatePublicKey}}
|
|
79
|
-
CENTRAL_ENVIRONMENT={{centralConfig.environment}}
|
|
80
|
-
CENTRAL_ORGANIZATIONID={{centralConfig.orgId}}
|
|
81
|
-
CENTRAL_TEAM={{centralConfig.ampcTeamName}}
|
|
82
|
-
CENTRAL_REGION={{centralConfig.region}}
|
|
83
|
-
|
|
84
|
-
# Logging configs
|
|
85
|
-
# Define the logging level: info, debug, error
|
|
86
|
-
LOG_LEVEL=info
|
|
87
|
-
# Specify where to send the log: stdout, file, both
|
|
88
|
-
LOG_OUTPUT=stdout
|
|
89
|
-
# Define where the log files are written
|
|
90
|
-
LOG_FILE_PATH=logs
|
|
91
|
-
`;
|
|
92
|
-
};
|
|
93
|
-
exports.softwareAGWebMethodsDAEnvVarTemplate = softwareAGWebMethodsDAEnvVarTemplate;
|