-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig_schema.json
534 lines (534 loc) · 17.1 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
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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Devolutions Gateway Configuration",
"type": "object",
"properties": {
"Id": {
"type": "string",
"format": "uuid",
"description": "This Gateway's UUID."
},
"Hostname": {
"type": "string",
"description": "This Gateway's hostname (used when inferring external URLs)."
},
"ProvisionerPublicKeyFile": {
"type": "string",
"description": "Path to the provisioner public key which is used to verify tokens without any specific restriction."
},
"ProvisionerPublicKeyData": {
"$ref": "#/definitions/ConfDataPubKeyFormat"
},
"ProvisionerPrivateKeyFile": {
"type": "string",
"description": "Path to the provisioner private key which is used to generate session tokens when using the standalone web application."
},
"ProvisionerPrivateKeyData": {
"$ref": "#/definitions/ConfDataPrivKeyFormat"
},
"SubProvisionerPublicKey": {
"$ref": "#/definitions/SubProvisionerKeyConf",
"description": "A JSON object describing the sub provisioner public key which may only be used to verify tokens when establishing a session."
},
"DelegationPrivateKeyFile": {
"type": "string",
"description": "Path to the delegation private key which is used to decipher sensitive data from tokens."
},
"DelegationPrivateKeyData": {
"$ref": "#/definitions/ConfDataPrivKeyFormat"
},
"TlsCertificateSource": {
"$ref": "#/definitions/CertSource",
"description": "Source for the TLS certificate."
},
"TlsCertificateFile": {
"type": "string",
"description": "Path to the certificate to use for TLS."
},
"TlsPrivateKeyFile": {
"type": "string",
"description": "Path to the private key to use for TLS."
},
"TlsPrivateKeyPassword": {
"type": "string",
"description": "Password to use for decrypting the TLS private key."
},
"TlsCertificateSubjectName": {
"type": "string",
"description": "Subject name of the certificate to use for TLS when using system source."
},
"TlsCertificateStoreName": {
"type": "string",
"description": "Name of the System Certificate Store to use for TLS (default is 'My')."
},
"TlsCertificateStoreLocation": {
"$ref": "#/definitions/CertStoreLocation",
"description": "Location of the System Certificate Store to use for TLS."
},
"Listeners": {
"type": "array",
"items": {
"$ref": "#/definitions/ListenerConf"
},
"description": "Array of listener URLs."
},
"Subscriber": {
"$ref": "#/definitions/Subscriber",
"description": "Subscriber API configuration."
},
"RecordingPath": {
"type": "string",
"description": "Path to the recordings folder."
},
"Ngrok": {
"$ref": "#/definitions/NgrokConf",
"description": "JSON object describing the ngrok configuration for ingress listeners."
},
"VerbosityProfile": {
"$ref": "#/definitions/VerbosityProfile",
"description": "Logging verbosity profile (pre-defined tracing directives)."
},
"WebApp": {
"$ref": "#/definitions/WebAppConf",
"description": "JSON object describing the standalone web application configuration."
},
"LogFile": {
"type": "string",
"description": "Path to the log file."
},
"JrlFile": {
"type": "string",
"description": "Path to the JRL file."
},
"Plugins": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of plugin paths."
},
"Sogar": {
"$ref": "#/definitions/SogarConf",
"description": "Sogar configuration."
},
"__debug__": {
"$ref": "#/definitions/DebugConf",
"description": "Debug configuration."
}
},
"required": ["Listeners"],
"additionalProperties": true,
"definitions": {
"ConfDataPubKeyFormat": {
"type": "object",
"properties": {
"Value": {
"type": "string",
"description": "The binary-to-text-encoded key data."
},
"Format": {
"$ref": "#/definitions/PubKeyFormat",
"description": "The format used for the key data."
},
"Encoding": {
"$ref": "#/definitions/DataEncoding",
"description": "The binary-to-text encoding used for the key data."
}
},
"required": ["Value"],
"additionalProperties": false
},
"ConfDataPrivKeyFormat": {
"type": "object",
"properties": {
"Value": {
"type": "string",
"description": "The binary-to-text-encoded key data."
},
"Format": {
"$ref": "#/definitions/PrivKeyFormat",
"description": "The format used for the key data."
},
"Encoding": {
"$ref": "#/definitions/DataEncoding",
"description": "The binary-to-text encoding used for the key data."
}
},
"required": ["Value"],
"additionalProperties": false
},
"DataEncoding": {
"type": "string",
"enum": ["Multibase", "Base64", "Base64Pad", "Base64Url", "Base64UrlPad"],
"default": "Multibase",
"description": "The binary-to-text encoding used for the key data."
},
"PubKeyFormat": {
"type": "string",
"enum": ["Spki", "Pkcs1"],
"default": "Spki",
"description": "The format used for the key data."
},
"PrivKeyFormat": {
"type": "string",
"enum": ["Pkcs8", "Pkcs1", "Ec"],
"default": "Pkcs8",
"description": "The format used for the key data."
},
"SubProvisionerKeyConf": {
"type": "object",
"properties": {
"Id": {
"type": "string",
"description": "The key ID for this subkey."
},
"Value": {
"type": "string",
"description": "The binary-to-text-encoded key data."
},
"Format": {
"$ref": "#/definitions/PubKeyFormat",
"description": "The format used for the key data."
},
"Encoding": {
"$ref": "#/definitions/DataEncoding",
"description": "The binary-to-text encoding used for the key data."
}
},
"required": ["Id", "Value"],
"additionalProperties": false
},
"CertSource": {
"type": "string",
"enum": ["External", "System"],
"default": "External",
"description": "Source for the TLS certificate."
},
"CertStoreLocation": {
"type": "string",
"enum": ["CurrentUser", "CurrentService", "LocalMachine"],
"default": "CurrentUser",
"description": "Location of the System Certificate Store to use for TLS."
},
"ListenerConf": {
"type": "object",
"properties": {
"InternalUrl": {
"type": "string",
"format": "uri",
"description": "Internal URL for this listener."
},
"ExternalUrl": {
"type": "string",
"format": "uri",
"description": "External URL for this listener."
}
},
"required": ["InternalUrl", "ExternalUrl"],
"additionalProperties": false
},
"Subscriber": {
"type": "object",
"properties": {
"Url": {
"type": "string",
"format": "uri",
"description": "HTTP URL where notification messages are to be sent."
},
"Token": {
"type": "string",
"description": "Bearer token to use when making HTTP requests."
}
},
"required": ["Url", "Token"],
"additionalProperties": false
},
"NgrokConf": {
"type": "object",
"properties": {
"AuthToken": {
"type": "string",
"description": "Specifies the authentication token used to connect to the ngrok service."
},
"HeartbeatInterval": {
"type": "integer",
"description": "How often the service should heartbeat to the ngrok servers defined as a number in seconds."
},
"HeartbeatTolerance": {
"type": "integer",
"description": "Reconnect the agent tunnel session if the server does not respond to a heartbeat within this tolerance defined as a number in seconds."
},
"Metadata": {
"type": "string",
"description": "Opaque, user-supplied string that will be returned as part of the ngrok API response to the list online sessions resource for all tunnels started by Devolutions Gateway service."
},
"ServerAddr": {
"type": "string",
"description": "This is the URL of the ngrok server to connect to. You should only set this if you are using a custom ingress URL."
},
"Tunnels": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/NgrokTunnelConf"
},
"description": "A map of ngrok tunnels. The key is the name of the tunnel and value is a JSON object whose schema depends on tunnel protocol."
}
},
"required": ["AuthToken"],
"additionalProperties": false
},
"NgrokTunnelConf": {
"oneOf": [
{
"type": "object",
"properties": {
"proto": {
"type": "string",
"enum": ["tcp"],
"description": "MUST be set to 'tcp'."
},
"RemoteAddr": {
"type": "string",
"description": "Bind the remote TCP address and port, as registered in the ngrok dashboard."
},
"Metadata": {
"type": "string",
"description": "Arbitrary user-defined metadata that will appear in the ngrok service API when listing tunnel sessions."
},
"AllowCidrs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Array of CIDRs, rejects connections that do not match the given CIDRs."
},
"DenyCidrs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Array of CIDRs, rejects connections that match the given CIDRs and allows all other CIDRs."
}
},
"required": ["proto", "RemoteAddr"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"proto": {
"type": "string",
"enum": ["http"],
"description": "MUST be set to 'http'."
},
"Domain": {
"type": "string",
"description": "The domain to request, as registered in the ngrok dashboard."
},
"Metadata": {
"type": "string",
"description": "Arbitrary user-defined metadata that will appear in the ngrok service API when listing tunnel sessions."
},
"CircuitBreaker": {
"type": "number",
"description": "Reject requests when 5XX responses exceed this ratio."
},
"Compression": {
"type": "boolean",
"description": "Enable gzip compression for HTTP responses."
},
"AllowCidrs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Array of CIDRs, rejects connections that do not match the given CIDRs."
},
"DenyCidrs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Array of CIDRs, rejects connections that match the given CIDRs and allows all other CIDRs."
}
},
"required": ["proto", "Domain"],
"additionalProperties": false
}
]
},
"VerbosityProfile": {
"type": "string",
"enum": ["Default", "Debug", "Tls", "All", "Quiet"],
"default": "Default",
"description": "Logging verbosity profile (pre-defined tracing directives)."
},
"WebAppConf": {
"type": "object",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Whether to enable or disable the standalone web application."
},
"Authentication": {
"$ref": "#/definitions/WebAppAuth",
"description": "The authentication method for accessing the web application."
},
"AppTokenMaximumLifetime": {
"type": "integer",
"description": "The maximum lifetime granted to web application tokens defined as a number in seconds (default is 28800 for 8 hours).",
"default": 28800
},
"LoginLimitRate": {
"type": "integer",
"description": "The maximum number of login requests for a given username/IP pair over a minute (default is 10).",
"default": 10
},
"UsersFile": {
"type": "string",
"description": "Path to the users file which holds the list of users authorized to access the web application when using the 'Custom' authentication method (default is 'users.txt')."
},
"StaticRootPath": {
"type": "string",
"description": "Path to the static files for the standalone web application. This is an advanced option which should typically not be changed."
}
},
"required": ["Enabled", "Authentication"],
"additionalProperties": false
},
"WebAppAuth": {
"type": "string",
"enum": ["Custom", "None"],
"description": "The authentication method for accessing the web application."
},
"SogarConf": {
"type": "object",
"properties": {
"RegistryUrl": {
"type": "string",
"description": "URL of the registry."
},
"Username": {
"type": "string",
"description": "Username for the registry."
},
"Password": {
"type": "string",
"description": "Password for the registry."
},
"ImageName": {
"type": "string",
"default": "videos",
"description": "Name of the image."
},
"UserList": {
"type": "array",
"items": {
"$ref": "#/definitions/SogarUser"
},
"default": [],
"description": "List of users."
},
"ServeAsRegistry": {
"type": "boolean",
"default": false,
"description": "Whether to serve as a registry."
},
"RegistryName": {
"type": "string",
"default": "devolutions_registry",
"description": "Name of the registry."
},
"RegistryImage": {
"type": "string",
"default": "videos",
"description": "Image of the registry."
},
"PushFiles": {
"type": "boolean",
"default": false,
"description": "Whether to push files."
},
"KeepFiles": {
"type": "boolean",
"default": false,
"description": "Whether to keep files."
},
"KeepTime": {
"type": "integer",
"description": "Time to keep files."
}
},
"required": ["RegistryUrl", "Username", "Password", "ImageName"],
"additionalProperties": false
},
"SogarUser": {
"type": "object",
"properties": {
"Password": {
"type": "string",
"description": "Password of the user."
},
"Username": {
"type": "string",
"description": "Username of the user."
},
"Permission": {
"$ref": "#/definitions/SogarPermission",
"description": "Permission of the user."
}
},
"additionalProperties": false
},
"SogarPermission": {
"type": "string",
"enum": ["Push", "Pull"],
"description": "Permission type."
},
"DebugConf": {
"type": "object",
"properties": {
"dump_tokens": {
"type": "boolean",
"default": false,
"description": "Whether to dump tokens."
},
"disable_token_validation": {
"type": "boolean",
"default": false,
"description": "Whether to disable token validation."
},
"override_kdc": {
"$ref": "#/definitions/TargetAddr",
"description": "Override KDC address."
},
"log_directives": {
"type": "string",
"description": "Log directives."
},
"capture_path": {
"type": "string",
"description": "Path to capture files."
},
"lib_xmf_path": {
"type": "string",
"description": "Path to lib XMF files."
},
"enable_unstable": {
"type": "boolean",
"default": false,
"description": "Whether to enable unstable features."
}
},
"additionalProperties": false
},
"TargetAddr": {
"type": "string",
"description": "Target address."
}
}
}