-
Notifications
You must be signed in to change notification settings - Fork 581
/
dataflow-server-defaults.yml
259 lines (222 loc) · 10.4 KB
/
dataflow-server-defaults.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
management:
metrics:
tags:
application: ${info.app.name}
application.version: ${info.app.version}
service: "scdf server"
web:
server:
request:
autotime:
enabled: true # true is default to Boot 2.3.2 at least.
percentiles-histogram: true
export:
influx:
enabled: false
prometheus:
enabled: false
rsocket:
enabled: false
wavefront:
enabled: false
endpoints:
web:
base-path: /management
exposure:
include: "health,info"
endpoint:
info:
enabled: true
security:
roles: MANAGE
logging:
level:
org.springframework.beans: 'WARN'
org.springframework.context: 'WARN'
org.springframework.jmx: 'WARN'
org.springframework.web: 'WARN'
org.springframework.security: 'WARN'
org.springframework.integration: 'WARN'
org.springframework.boot: 'WARN'
# The following INFO is to log the generated password when using basic security
org.springframework.boot.autoconfigure.security: 'INFO'
# The following INFO is to log the embedded tomcat port
org.springframework.boot.web.embedded.tomcat: 'INFO'
# Silence annoying exception trace logged on info level - gh-2750
org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl: 'WARN'
server:
error:
include-message: always
spring:
mvc.async.request-timeout: 120000
batch:
initialize-schema: never
jpa:
properties:
hibernate:
id.new_generator_mappings: true
# Statistics generation is required for publishing JPA micrometer metrics.
# generate_statistics: true
hibernate:
naming:
physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
flyway:
enabled: true
baselineVersion: 1
baselineOnMigrate: true
table: flyway_schema_history_dataflow
locations:
- classpath:org/springframework/cloud/dataflow/server/db/migration/{vendor}
check-location: false
autoconfigure:
exclude: org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
cloud:
task:
initialize:
enable: false
dataflow:
rdbms:
initialize:
enable: false
container:
registry-configurations:
default:
registry-host: registry-1.docker.io
authorization-type: dockeroauth2
extra:
"registryAuthUri": 'https://auth.docker.io/token?service=registry.docker.io&scope=repository:{repository}:pull&offline_token=1&client_id=shell'
version-info:
dependency-fetch:
enabled: false
dependencies:
spring-cloud-dataflow-dashboard:
name: Spring Cloud Dataflow UI
version: "@spring-cloud-dataflow-ui.version@"
spring-cloud-dataflow-core:
name: Spring Cloud Data Flow Core
version: "@project.version@"
spring-cloud-dataflow-implementation:
name: ${info.app.name}
version: ${info.app.version}
spring-cloud-dataflow-shell:
name: Spring Cloud Data Flow Shell
version: "@project.version@"
url: "{repository}/org/springframework/cloud/spring-cloud-dataflow-shell/{version}/spring-cloud-dataflow-shell-{version}.jar"
checksum-sha1-url: "{repository}/org/springframework/cloud/spring-cloud-dataflow-shell/{version}/spring-cloud-dataflow-shell-{version}.jar.sha1"
checksum-sha256-url: "{repository}/org/springframework/cloud/spring-cloud-dataflow-shell/{version}/spring-cloud-dataflow-shell-{version}.jar.sha256"
task:
composedtaskrunner:
uri: "maven://org.springframework.cloud:spring-cloud-dataflow-composed-task-runner:@dataflow.version@"
deployer-properties:
group-excludes:
- spring.cloud.deployer.kubernetes.fabric8
property-excludes:
- spring.cloud.deployer.local.maximum-concurrent-tasks
- spring.cloud.deployer.kubernetes.maximum-concurrent-tasks
- spring.cloud.deployer.cloudfoundry.maximum-concurrent-tasks
- spring.cloud.deployer.cloudfoundry.org
- spring.cloud.deployer.cloudfoundry.space
- spring.cloud.deployer.cloudfoundry.url
- spring.cloud.deployer.cloudfoundry.username
- spring.cloud.deployer.cloudfoundry.password
- spring.cloud.deployer.cloudfoundry.skip-ssl-validation
security:
authorization:
enabled: true
loginUrl: "/"
permit-all-paths: "/management/health,/management/info,/authenticate,/security/info,/assets/**,/dashboard/logout-success-oauth.html,/favicon.ico"
rules:
# About
- GET /about => hasRole('ROLE_VIEW')
# Audit
- GET /audit-records => hasRole('ROLE_VIEW')
- GET /audit-records/** => hasRole('ROLE_VIEW')
# Boot Endpoints
- GET /management/** => hasRole('ROLE_MANAGE')
# Apps
- GET /apps => hasRole('ROLE_VIEW')
- GET /apps/** => hasRole('ROLE_VIEW')
- DELETE /apps/** => hasRole('ROLE_DESTROY')
- POST /apps => hasRole('ROLE_CREATE')
- POST /apps/** => hasRole('ROLE_CREATE')
- PUT /apps/** => hasRole('ROLE_MODIFY')
# Completions
- GET /completions/** => hasRole('ROLE_VIEW')
# Job Executions & Batch Job Execution Steps && Job Step Execution Progress
- GET /jobs/executions => hasRole('ROLE_VIEW')
- PUT /jobs/executions/** => hasRole('ROLE_MODIFY')
- GET /jobs/executions/** => hasRole('ROLE_VIEW')
- GET /jobs/thinexecutions => hasRole('ROLE_VIEW')
# Batch Job Instances
- GET /jobs/instances => hasRole('ROLE_VIEW')
- GET /jobs/instances/* => hasRole('ROLE_VIEW')
# Running Applications
- GET /runtime/streams => hasRole('ROLE_VIEW')
- GET /runtime/streams/** => hasRole('ROLE_VIEW')
- GET /runtime/apps => hasRole('ROLE_VIEW')
- GET /runtime/apps/** => hasRole('ROLE_VIEW')
# Stream Definitions
- GET /streams/definitions => hasRole('ROLE_VIEW')
- GET /streams/definitions/* => hasRole('ROLE_VIEW')
- GET /streams/definitions/*/related => hasRole('ROLE_VIEW')
- GET /streams/definitions/*/applications => hasRole('ROLE_VIEW')
- POST /streams/definitions => hasRole('ROLE_CREATE')
- DELETE /streams/definitions/* => hasRole('ROLE_DESTROY')
- DELETE /streams/definitions => hasRole('ROLE_DESTROY')
# Stream Deployments
- DELETE /streams/deployments/* => hasRole('ROLE_DEPLOY')
- DELETE /streams/deployments => hasRole('ROLE_DEPLOY')
- POST /streams/deployments/** => hasRole('ROLE_MODIFY')
- GET /streams/deployments/** => hasRole('ROLE_VIEW')
# Stream Validations
- GET /streams/validation/ => hasRole('ROLE_VIEW')
- GET /streams/validation/* => hasRole('ROLE_VIEW')
# Stream Logs
- GET /streams/logs/** => hasRole('ROLE_VIEW')
# Task Definitions
- POST /tasks/definitions => hasRole('ROLE_CREATE')
- DELETE /tasks/definitions/* => hasRole('ROLE_DESTROY')
- DELETE /tasks/definitions => hasRole('ROLE_DESTROY')
- GET /tasks/definitions => hasRole('ROLE_VIEW')
- GET /tasks/definitions/* => hasRole('ROLE_VIEW')
# Task Executions
- GET /tasks/executions => hasRole('ROLE_VIEW')
- GET /tasks/executions/* => hasRole('ROLE_VIEW')
- POST /tasks/executions => hasRole('ROLE_DEPLOY')
- POST /tasks/executions/* => hasRole('ROLE_DEPLOY')
- DELETE /tasks/executions/* => hasRole('ROLE_DESTROY')
- DELETE /tasks/executions => hasRole('ROLE_DESTROY')
- GET /tasks/info/* => hasRole('ROLE_VIEW')
# Task Schedules
- GET /tasks/schedules => hasRole('ROLE_VIEW')
- GET /tasks/schedules/* => hasRole('ROLE_VIEW')
- GET /tasks/schedules/instances => hasRole('ROLE_VIEW')
- GET /tasks/schedules/instances/* => hasRole('ROLE_VIEW')
- POST /tasks/schedules => hasRole('ROLE_SCHEDULE')
- DELETE /tasks/schedules/* => hasRole('ROLE_SCHEDULE')
- DELETE /tasks/schedules => hasRole('ROLE_SCHEDULE')
# Task Platform Account List */
- GET /tasks/platforms => hasRole('ROLE_VIEW')
# Task Validations
- GET /tasks/validation/ => hasRole('ROLE_VIEW')
- GET /tasks/validation/* => hasRole('ROLE_VIEW')
# Task Logs
- GET /tasks/logs/* => hasRole('ROLE_VIEW')
# Task Ctr
- GET /tasks/ctr/* => hasRole('ROLE_VIEW')
# Tools
- POST /tools/** => hasRole('ROLE_VIEW')
# Defaults for Springdoc (taken from https://springdoc.org/properties.html)
springdoc:
api-docs:
enabled: false
path: /v3/api-docs
swagger-ui:
enabled: false
url: ${springdoc.api-docs.path}
path: /swagger-ui.html
disable-swagger-default-url: true
config-url: /v3/api-docs/swagger-config
validator-url: https://validator.swagger.io/validator
oauth2-redirect-url: /swagger-ui/oauth2-redirect.html