/
application.yml
376 lines (348 loc) · 13.2 KB
/
application.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
logging:
level:
ROOT: INFO
org.zowe.apiml: INFO
org.springframework: WARN
com.netflix: WARN
com.netflix.discovery: ERROR
com.netflix.config: ERROR
com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient: OFF
com.netflix.discovery.DiscoveryClient: OFF
org.springframework.boot.web.embedded.tomcat.TomcatWebServer: INFO
org.springframework.web.socket: WARN
org.zowe.apiml.gateway.ws: INFO
org.zowe.apiml.gateway.error: INFO
org.eclipse.jetty: WARN
org.springframework.web.servlet.PageNotFound: ERROR
org.ehcache: WARN
org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter: ERROR
org.springframework.security.config.annotation.web.builders.WebSecurity: ERROR
org.springframework.cloud.client.loadbalancer.reactive.[ReactorLoadBalancerClientAutoConfiguration$ReactorLoadBalancerClientRibbonWarnLogger]: ERROR
# New Config
org.apache: WARN #org.apache.catalina, org.apache.coyote, org.apache.tomcat
javax.servlet: INFO
org.apache.http.conn.ssl.DefaultHostnameVerifier: DEBUG #logs only SSLException
org.eclipse.jetty.util.ssl: ERROR
org.apache.tomcat.util.net.SSLUtilBase: ERROR
apiml:
# The `apiml` node contains API Mediation Layer specific configuration
routing:
mode: new
instanceIdHeader: false
loadBalancer:
distribute: false
service:
# The `apiml.service` node contains information required by any APIML service
id: gateway # Service ID of this service. It is fixed for APIML API Gateway
hostname: localhost # Hostname that is advertised in Eureka. Contains the actual hostname of the instance.
# Default is valid only for localhost
port: 10010 # Default port name for gateway service
ipAddress: 127.0.0.1 # IP address that is advertised in Eureka. Default is valid only for localhost
scheme: https # "https" or "http"
preferIpAddress: false
ignoredHeadersWhenCorsEnabled: Access-Control-Request-Method,Access-Control-Request-Headers,Access-Control-Allow-Origin,Access-Control-Allow-Methods,Access-Control-Allow-Headers,Access-Control-Allow-Credentials,Origin
additionalRegistration: # List of additional Apiml Discovery Services metadata to register with
httpclient:
conn-pool:
requestConnectionTimeout: ${apiml.gateway.timeoutMillis}
catalog:
serviceId: apicatalog
gateway:
# The `apiml.gateway` node contains gateway-service only configuration
hostname: ${apiml.service.hostname} # The hostname for other services to access the gateway. For example Catalog uses
# for transforming the URLs in DVIPA mode.
# In Zowe, this is the same as apiml.service.hostname. Zowe has one Gateway
# and is all run from single host.
# In Brightside, this holds the DVIPA address and is overridden in PARMLIB to work
# properly.
timeoutMillis: 30000 # Timeout for connection to the services
security:
filterChainConfiguration: new
headersToBeCleared: X-Certificate-Public,X-Certificate-DistinguishedName,X-Certificate-CommonName
allowTokenRefresh: false
jwtInitializerTimeout: 5
personalAccessToken:
enabled: false
useInternalMapper: false
oidc:
enabled: false
clientId:
clientSecret:
registry:
identityMapperUrl:
identityMapperUser:
jwks:
uri:
auth:
jwt:
customAuthHeader:
passticket:
customUserHeader:
customAuthHeader:
provider: zosmf
x509:
enabled: false
acceptForwardedCert: false
certificatesUrl:
externalMapperUrl:
saf:
provider: rest
urls:
authenticate: https://localhost:10013/zss/saf/authenticate
verify: https://localhost:10013/zss/saf/verify
spring:
config:
useLegacyProcessing: true
application:
name: ${apiml.service.id}
cloud:
discovery:
reactive:
enabled: false
compatibilityVerifier:
enabled: false # Should be removed when upgrade to Spring Cloud 3.x
client:
hostname: ${apiml.service.hostname}
ipAddress: ${apiml.service.ipAddress}
mvc:
throw-exception-if-no-handler-found: false # to suppress NoHandlerFoundException: No handler found for GET /error, we already provide error handling for requests
log-resolved-exception: false # Suppress useless logs from AbstractHandlerExceptionResolver
favicon:
enabled: false
output:
ansi:
enabled: detect
main:
banner-mode: ${apiml.banner:"off"}
allow-circular-references: true
server:
internal:
enabled: false
port: ${server.port}
ssl:
keyAlias: ${server.ssl.keyAlias:localhost}
keyPassword: ${server.ssl.keyPassword:password}
keyStoreType: ${server.ssl.keyStoreType:PKCS12}
keyStore: ${server.ssl.keyStore:keystore}
trustStoreType: ${server.ssl.trustStoreType:PKCS12}
trustStore: ${server.ssl.trustStore:truststore}
keyStorePassword: ${server.ssl.keyStorePassword:password}
trustStorePassword: ${server.ssl.trustStorePassword:password}
clientAuth: ${server.ssl.clientAuth}
max-http-header-size: 48000
address: ${apiml.service.ipAddress}
port: ${apiml.service.port}
ssl:
enabled: true
clientAuth: want
protocol: TLS
enabled-protocols: TLSv1.2+TLSv1.3
ciphers: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384
keyStoreType: PKCS12
trustStoreType: PKCS12
maxConnectionsPerRoute: 100
maxTotalConnections: 1000
webSocket:
supportedProtocols: v12.stomp,v11.stomp
zuul:
sslHostnameValidationEnabled: false
addProxyHeaders: true
traceRequestBody: true
ignoreSecurityHeaders: false
includeDebugHeader: false
sensitiveHeaders: Expires,Date
semaphore:
maxSemaphores: ${server.maxTotalConnections}
ignoredPatterns:
- /ws/**
- /*/ws/**
- /sse/**
- /*/sse/**
host:
connectTimeoutMillis: ${apiml.gateway.timeoutMillis}
socketTimeoutMillis: ${apiml.gateway.timeoutMillis}
maxTotalConnections: ${server.maxTotalConnections}
maxPerRouteConnections: ${server.maxConnectionsPerRoute}
forceOriginalQueryStringEncoding: true
retryable: true
decodeUrl: false # Flag to indicate whether to decode the matched URL or use it as is
ignoredServices: discovery # to disable routing to the Discovery service, see a potential security issue with AT-TLS enabled
ribbon:
ConnectTimeout: ${apiml.gateway.timeoutMillis}
ReadTimeout: ${apiml.gateway.timeoutMillis}
ConnectionManagerTimeout: ${apiml.gateway.timeoutMillis}
MaxAutoRetries: 0
retryableStatusCodes: 503
MaxAutoRetriesNextServer: 5
OkToRetryOnAllOperations: false
GZipPayload: false # this stops Gateway from deflating gzip responses from services
MaxConnectionsPerHost: ${server.maxConnectionsPerRoute}
MaxTotalConnections: ${server.maxTotalConnections}
http:
connection:
timeout: ${apiml.gateway.timeoutMillis}
socket:
timeout: ${apiml.gateway.timeoutMillis}
hystrix:
command:
default:
fallback:
enabled: false
circuitBreaker:
enabled: false
execution:
timeout:
enabled: false
isolation:
thread:
timeoutInMilliseconds: ${apiml.gateway.timeoutMillis}
strategy: SEMAPHORE
semaphore:
maxConcurrentRequests: ${server.maxTotalConnections}
management:
endpoints:
migrate-legacy-ids: true
web:
base-path: /application
exposure:
include: health,info,shutdown,hystrixstream
health:
defaults:
enabled: false
endpoint:
health:
showDetails: always
shutdown:
enabled: true
eureka:
instance:
hostname: ${apiml.service.hostname}
ipAddress: ${apiml.service.ipAddress}
#ports are computed in code
preferIpAddress: ${apiml.service.preferIpAddress}
homePageUrl: ${apiml.service.scheme}://${apiml.gateway.hostname}:${apiml.service.port}/
statusPageUrl: ${apiml.service.scheme}://${apiml.service.hostname}:${apiml.service.port}/application/info
healthCheckUrl: ${apiml.service.scheme}://${apiml.service.hostname}:${apiml.service.port}/application/health
secureHealthCheckUrl: ${apiml.service.scheme}://${apiml.service.hostname}:${apiml.service.port}/application/health
metadata-map:
apiml:
catalog:
tile:
id: apimediationlayer
title: API Mediation Layer API
description: The API Mediation Layer for z/OS internal API services. The API Mediation Layer provides a single point of access to mainframe REST APIs and offers enterprise cloud-like features such as high-availability, scalability, dynamic API discovery, and documentation.
version: 1.0.0
routes:
api_v1:
gatewayUrl: /api/v1
serviceUrl: /gateway
apiInfo:
- apiId: zowe.apiml.gateway
version: 1.0.0
gatewayUrl: api/v1
swaggerUrl: https://${apiml.service.hostname}:${apiml.service.port}/api-doc
documentationUrl: https://zowe.github.io/docs-site/
service:
title: API Gateway
description: API Gateway service to route requests to services registered in the API Mediation Layer and provides an API for mainframe security.
supportClientCertForwarding: true
authentication:
sso: true
client:
fetchRegistry: true
registerWithEureka: true
region: default
serviceUrl:
defaultZone: ${apiml.service.discoveryServiceUrls}
healthcheck:
enabled: true
---
spring:
profiles: debug
mvc:
throw-exception-if-no-handler-found: true
management:
endpoints:
migrate-legacy-ids: true
web:
base-path: /application
exposure:
include: health,info,routes,loggers,shutdown,hystrixstream,websockets
endpoint:
shutdown:
enabled: true
logging:
level:
ROOT: INFO
org.zowe.apiml: DEBUG
org.springframework: INFO
org.apache: INFO
org.apache.http: DEBUG
com.netflix: INFO
org.hibernate: INFO
org.springframework.web.servlet.PageNotFound: WARN
org.ehcache: INFO
org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter: INFO
com.netflix.discovery.shared.transport.decorator: DEBUG
org.zowe.apiml.gateway.ws: DEBUG
---
spring:
profiles: diag
management:
endpoints:
migrate-legacy-ids: true
web:
base-path: /application
exposure:
include: "*"
server:
max-http-header-size: 40000
zuul.debug.request: true
---
spring:
profiles: dev
profiles.include:
- debug
- diag
logbackServiceName: ZWEAGW1
---
spring:
profiles: attls
server:
internal:
ssl:
enabled: false
attls:
enabled: true
ssl:
enabled: false
service:
scheme: http
apiml:
service:
corsEnabled: true
scheme: http
eureka:
instance:
metadata-map:
apiml:
apiInfo:
- apiId: zowe.apiml.gateway
gatewayUrl: api/v1
swaggerUrl: http://${apiml.service.hostname}:${apiml.service.port}/api-doc
documentationUrl: https://zowe.github.io/docs-site/
---
spring:
profiles: securityFilterchainDebug
logging:
level:
org.springframework.security: DEBUG
org.springframework.security.web.authentication.preauth.x509.X509AuthenticationFilter: DEBUG
org.zowe.apiml.gateway.security: DEBUG
---
spring:
profiles: zosmfDebug
logging:
level:
root: INFO
org.zowe.apiml.gateway.security.service.zosmf: DEBUG