-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapplication.yaml
More file actions
224 lines (201 loc) · 7.84 KB
/
application.yaml
File metadata and controls
224 lines (201 loc) · 7.84 KB
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
logging:
level:
org.springframework: INFO
org.springframework.security: TRACE
org.opendevstack.apiservice.externalservice: DEBUG
# ──────────────────────────────────────────────────────────────────────────────
# Persistence — PostgreSQL datasource + JPA / Hibernate
#
# Schema is managed externally via Liquibase (database module / Makefile).
# Hibernate is set to `validate` so it only checks that entities match the
# existing schema at boot — it never creates or alters tables.
#
# Required env vars (no defaults — must be explicitly set per environment):
# DB_HOST, DB_PORT, DB_NAME, DB_USERNAME, DB_PASSWORD
# ──────────────────────────────────────────────────────────────────────────────
spring:
datasource:
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:devstack}
username: ${DB_USERNAME:devstack}
password: ${DB_PASSWORD:devstack}
driver-class-name: org.postgresql.Driver
hikari:
# Pool sizing — tune per environment
maximum-pool-size: ${DB_POOL_MAX_SIZE:10}
minimum-idle: ${DB_POOL_MIN_IDLE:2}
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
jpa:
hibernate:
# NEVER auto-create/alter — Liquibase owns the schema
ddl-auto: validate
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
# Log slow queries (> 500 ms) via Hibernate statistics
generate_statistics: false
# Avoid lazy-loading pitfalls: keep Session scoped to Service, not Request
open-in-view: false
show-sql: false
spring:
security:
oauth2:
resourceserver:
jwt:
issuer-uri: https://sts.windows.net/${AZURE_TENANT_ID}/
app:
security:
public-endpoints:
- /actuator/health
- /actuator/health/**
management:
endpoints:
web:
exposure:
include: openapi, swagger-ui, beans, caches, configprops, env, health, httpexchanges, info, loggers, mappings
endpoint:
configprops:
show-values: always
env:
show-values: always
loggers:
access: unrestricted
health:
show-details: always
show-components: always
info:
git:
# Show all build-time generated file git.properties info on /actuator/info endpoint
mode: full
httpexchanges:
recording:
# Show all available info in /actuator/httpexchanges and also in Swagger
include: request-headers, response-headers, authorization_header, cookie_headers, principal, remote_address, session_id, time_taken
springdoc:
show-actuator: true
swagger-ui:
doc-expansion: none
try-it-out-enabled: true
filter: true
tags-sorter: alpha
operations-sorter: alpha
openapi:
servers:
- url: "https://localhost:8080"
description: "Development environment"
otel:
service:
name: devstack-api-service-dev
version: 0.0.3
exporter:
otlp:
endpoint: http://opentelemetry.example.com
traces:
exporter: logging,otlp
sampler: parentbased_traceidratio
sampler_arg: 1.0
metrics:
exporter: none
resource:
attributes: service.name=devstack-api-service,service.version=0.0.3,deployment.environment=development
instrumentation:
jdbc:
enabled: false
logback-appender:
enabled: true
# External Service Configuration
automation:
platform:
ansible:
enabled: true
base-url: ${ANSIBLE_BASE_URL:http://localhost:8080/api/v2}
username: ${ANSIBLE_USERNAME:admin}
password: ${ANSIBLE_PASSWORD:password}
timeout: ${ANSIBLE_TIMEOUT:30000}
ssl:
verify-certificates: ${ANSIBLE_SSL_VERIFY:true}
trust-store-path: ${ANSIBLE_SSL_TRUSTSTORE_PATH:}
trust-store-password: ${ANSIBLE_SSL_TRUSTSTORE_PASSWORD:}
trust-store-type: ${ANSIBLE_SSL_TRUSTSTORE_TYPE:JKS}
uipath:
# Base URL of the UIPath Orchestrator instance
host: ${UIPATH_HOST:https://orchestrator.example.com}
# Authentication credentials
clientId: ${UIPATH_CLIENT_ID:your-client-id}
clientSecret: ${UIPATH_CLIENT_SECRET:your-client-secret}
# Tenancy name (default: "default")
tenancy-name: ${UIPATH_TENANCY_NAME:default}
# Organization Unit ID for multi-tenant setups
organization-unit-id: ${UIPATH_ORGANIZATION_UNIT_ID:123456}
# API endpoints (defaults shown, can be overridden)
login-endpoint: /api/Account/Authenticate
queue-items-endpoint: /odata/QueueItems
# Request timeout in milliseconds
timeout: 30000
# SSL Configuration
ssl:
# Set to false to disable certificate verification (DEV ONLY!)
verify-certificates: ${UIPATH_SSL_VERIFY:true}
# Optional: path to custom trust store
trust-store-path: ${UIPATH_SSL_TRUST_STORE_PATH:/path/to/truststore.jks}
trust-store-password: ${TRUSTSTORE_PASSWORD:changeit}
trust-store-type: ${UIPATH_SSL_TRUST_STORE_TYPE:JKS}
apis:
project-users:
ansible-workflow-name: ${API_PROJECT_USERS_WORKFLOW_NAME:ansible++workflow}
token:
secret: ${API_PROJECT_USERS_TOKEN_SECRET:devstack-api-service-jwt-secret-key-256bit-change-in-production}
expiration-hours: ${API_PROJECT_USERS_TOKEN_EXPIRATION_HOURS:24}
externalservices:
openshift:
instances:
# Development OpenShift instance
dev:
api-url: ${OPENSHIFT_US_TEST_API_URL:https://api.dev.ocp.example.com:6443}
token: ${OPENSHIFT_US_TEST_TOKEN:your-dev-token-here}
namespace: ${OPENSHIFT_US_TEST_NAMESPACE:devstack-dev}
connection-timeout: 30000
read-timeout: 30000
trust-all-certificates: ${OPENSHIFT_US_TEST_TRUST_ALL:true}
# Test OpenShift instance
test:
api-url: ${OPENSHIFT_EU_DEV_API_URL:https://api.test.ocp.example.com:6443}
token: ${OPENSHIFT_EU_DEV_TOKEN:your-test-token-here}
namespace: ${OPENSHIFT_EU_DEV_NAMESPACE:devstack-test}
connection-timeout: 30000
read-timeout: 30000
trust-all-certificates: ${OPENSHIFT_EU_DEV_TRUST_ALL:true}
bitbucket:
instances:
# Development Bitbucket instance
dev:
base-url: ${BITBUCKET_DEV_BASE_REST_URL:https://bitbucket.dev.example.com}
bearer-token: ${BITBUCKET_DEV_BEARER_TOKEN:}
# OR use basic auth if bearer token is not available:
# username: ${BITBUCKET_DEV_USERNAME:admin}
# password: ${BITBUCKET_DEV_PASSWORD:your-dev-password-here}
connection-timeout: 30000
read-timeout: 30000
trust-all-certificates: ${BITBUCKET_DEV_TRUST_ALL:true}
# Production Bitbucket instance
prod:
base-url: ${BITBUCKET_PROD_BASE_REST_URL:https://bitbucket.prod.example.com}
bearer-token: ${BITBUCKET_PROD_BEARER_TOKEN:}
# OR use basic auth:
# username: ${BITBUCKET_PROD_USERNAME:admin}
# password: ${BITBUCKET_PROD_PASSWORD:your-prod-password-here}
connection-timeout: 30000
read-timeout: 30000
trust-all-certificates: ${BITBUCKET_PROD_TRUST_ALL:false}
webhook-proxy:
clusters:
# Test Cluster
test:
cluster-base: ${WEBHOOK_PROXY_TEST_CLUSTER_BASE:apps.cluster.ocp.com}
connection-timeout: ${WEBHOOK_PROXY_TEST_CONNECTION_TIMEOUT:30000}
read-timeout: ${WEBHOOK_PROXY_TEST_READ_TIMEOUT:30000}
trust-all-certificates: ${WEBHOOK_PROXY_TEST_TRUST_ALL:false}
default-jenkinsfile-path: ${WEBHOOK_PROXY_TEST_JENKINSFILE_PATH:Jenkinsfile}
projects-info-service:
base-url: ${PROJECTS_INFO_SERVICE_BASE_URL:http://localhost:8081}