generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_schema.json
279 lines (279 loc) · 8.74 KB
/
config_schema.json
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
{
"additionalProperties": false,
"description": "Modifies the original Settings class provided by the user",
"properties": {
"db_connection_str": {
"description": "MongoDB connection string. Might include credentials. For more information see: https://naiveskill.com/mongodb-connection-string/",
"examples": [
"mongodb://localhost:27017"
],
"format": "password",
"title": "Db Connection Str",
"type": "string",
"writeOnly": true
},
"db_name": {
"description": "Name of the database located on the MongoDB server.",
"examples": [
"my-database"
],
"title": "Db Name",
"type": "string"
},
"notification_event_topic": {
"description": "Name of the topic used for notification events.",
"examples": [
"notifications"
],
"title": "Notification Event Topic",
"type": "string"
},
"notification_event_type": {
"description": "The type used for notification events.",
"examples": [
"notification"
],
"title": "Notification Event Type",
"type": "string"
},
"user_events_topic": {
"default": "users",
"description": "The name of the topic containing user events.",
"title": "User Events Topic",
"type": "string"
},
"access_request_events_topic": {
"description": "Name of the event topic used to consume access request events",
"examples": [
"access_requests"
],
"title": "Access Request Events Topic",
"type": "string"
},
"access_request_created_event_type": {
"description": "The type to use for access request created events",
"examples": [
"access_request_created"
],
"title": "Access Request Created Event Type",
"type": "string"
},
"access_request_allowed_event_type": {
"description": "The type to use for access request allowed events",
"examples": [
"access_request_allowed"
],
"title": "Access Request Allowed Event Type",
"type": "string"
},
"access_request_denied_event_type": {
"description": "The type to use for access request denied events",
"examples": [
"access_request_denied"
],
"title": "Access Request Denied Event Type",
"type": "string"
},
"file_registered_event_topic": {
"description": "The name of the topic containing internal file registration events.",
"examples": [
"internal_file_registry"
],
"title": "File Registered Event Topic",
"type": "string"
},
"file_registered_event_type": {
"description": "The type used for events detailing internally file registrations.",
"examples": [
"file_registered"
],
"title": "File Registered Event Type",
"type": "string"
},
"iva_state_changed_event_topic": {
"description": "The name of the topic containing IVA events.",
"examples": [
"ivas"
],
"title": "Iva State Changed Event Topic",
"type": "string"
},
"iva_state_changed_event_type": {
"description": "The type to use for iva state changed events.",
"examples": [
"iva_state_changed"
],
"title": "Iva State Changed Event Type",
"type": "string"
},
"second_factor_recreated_event_topic": {
"description": "The name of the topic containing second factor recreation events.",
"examples": [
"auth"
],
"title": "Second Factor Recreated Event Topic",
"type": "string"
},
"second_factor_recreated_event_type": {
"description": "The event type for recreation of the second factor for authentication",
"examples": [
"second_factor_recreated"
],
"title": "Second Factor Recreated Event Type",
"type": "string"
},
"service_name": {
"default": "nos",
"description": "The Notification Orchestration Service controls the creation of notification events.",
"title": "Service Name",
"type": "string"
},
"service_instance_id": {
"description": "A string that uniquely identifies this instance across all instances of this service. This is included in log messages.",
"examples": [
"germany-bw-instance-001"
],
"title": "Service Instance Id",
"type": "string"
},
"kafka_servers": {
"description": "A list of connection strings to connect to Kafka bootstrap servers.",
"examples": [
[
"localhost:9092"
]
],
"items": {
"type": "string"
},
"title": "Kafka Servers",
"type": "array"
},
"kafka_security_protocol": {
"default": "PLAINTEXT",
"description": "Protocol used to communicate with brokers. Valid values are: PLAINTEXT, SSL.",
"enum": [
"PLAINTEXT",
"SSL"
],
"title": "Kafka Security Protocol",
"type": "string"
},
"kafka_ssl_cafile": {
"default": "",
"description": "Certificate Authority file path containing certificates used to sign broker certificates. If a CA is not specified, the default system CA will be used if found by OpenSSL.",
"title": "Kafka Ssl Cafile",
"type": "string"
},
"kafka_ssl_certfile": {
"default": "",
"description": "Optional filename of client certificate, as well as any CA certificates needed to establish the certificate's authenticity.",
"title": "Kafka Ssl Certfile",
"type": "string"
},
"kafka_ssl_keyfile": {
"default": "",
"description": "Optional filename containing the client private key.",
"title": "Kafka Ssl Keyfile",
"type": "string"
},
"kafka_ssl_password": {
"default": "",
"description": "Optional password to be used for the client private key.",
"format": "password",
"title": "Kafka Ssl Password",
"type": "string",
"writeOnly": true
},
"generate_correlation_id": {
"default": true,
"description": "A flag, which, if False, will result in an error when trying to publish an event without a valid correlation ID set for the context. If True, the a newly correlation ID will be generated and used in the event header.",
"examples": [
true,
false
],
"title": "Generate Correlation Id",
"type": "boolean"
},
"kafka_max_message_size": {
"default": 1048576,
"description": "The largest message size that can be transmitted, in bytes. Only services that have a need to send/receive larger messages should set this.",
"examples": [
1048576,
16777216
],
"exclusiveMinimum": 0,
"title": "Kafka Max Message Size",
"type": "integer"
},
"log_level": {
"default": "INFO",
"description": "The minimum log level to capture.",
"enum": [
"CRITICAL",
"ERROR",
"WARNING",
"INFO",
"DEBUG",
"TRACE"
],
"title": "Log Level",
"type": "string"
},
"log_format": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "If set, will replace JSON formatting with the specified string format. If not set, has no effect. In addition to the standard attributes, the following can also be specified: timestamp, service, instance, level, correlation_id, and details",
"examples": [
"%(timestamp)s - %(service)s - %(level)s - %(message)s",
"%(asctime)s - Severity: %(levelno)s - %(msg)s"
],
"title": "Log Format"
},
"log_traceback": {
"default": true,
"description": "Whether to include exception tracebacks in log messages.",
"title": "Log Traceback",
"type": "boolean"
},
"central_data_stewardship_email": {
"description": "The email address of the central data steward.",
"title": "Central Data Stewardship Email",
"type": "string"
},
"helpdesk_email": {
"description": "The email address of the GHGA Helpdesk.",
"title": "Helpdesk Email",
"type": "string"
}
},
"required": [
"db_connection_str",
"db_name",
"notification_event_topic",
"notification_event_type",
"access_request_events_topic",
"access_request_created_event_type",
"access_request_allowed_event_type",
"access_request_denied_event_type",
"file_registered_event_topic",
"file_registered_event_type",
"iva_state_changed_event_topic",
"iva_state_changed_event_type",
"second_factor_recreated_event_topic",
"second_factor_recreated_event_type",
"service_instance_id",
"kafka_servers",
"central_data_stewardship_email",
"helpdesk_email"
],
"title": "ModSettings",
"type": "object"
}