Commit f804807
committed
refactor(dgw): split provisioning into credentials and connection options
Separate `provision-credentials` and `provision-connection-options` preflight
operations, backed by two independent JTI-keyed stores. The credentials store
keeps the encryption boundary; the connection-options store holds plaintext
routing metadata with no crypto dependency. The two halves are provisioned,
expire and are replaced independently — a caller that wants both sends two
operations in one batched preflight request. `ProvisioningStore::get` assembles
a combined view for RDP credential injection: credentials required, connection
options optional.
This lets connection options serve future protocols that do not use credential
injection, instead of being welded to a mandatory-credentials operation.
Register TargetConnectionOptions in the OpenAPI schema list and regenerate
gateway-api.yaml.1 parent 4302ef4 commit f804807
5 files changed
Lines changed: 150 additions & 59 deletions
File tree
- devolutions-gateway
- openapi
- src
- api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
1803 | 1803 | | |
1804 | 1804 | | |
1805 | 1805 | | |
1806 | | - | |
| 1806 | + | |
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | | - | |
| 1814 | + | |
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
| |||
1822 | 1822 | | |
1823 | 1823 | | |
1824 | 1824 | | |
| 1825 | + | |
1825 | 1826 | | |
1826 | 1827 | | |
1827 | 1828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| |||
330 | 337 | | |
331 | 338 | | |
332 | 339 | | |
333 | | - | |
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
| |||
351 | 357 | | |
352 | 358 | | |
353 | 359 | | |
354 | | - | |
| 360 | + | |
355 | 361 | | |
356 | 362 | | |
357 | 363 | | |
| |||
365 | 371 | | |
366 | 372 | | |
367 | 373 | | |
368 | | - | |
| 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 | + | |
369 | 407 | | |
370 | 408 | | |
371 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| |||
548 | 547 | | |
549 | 548 | | |
550 | 549 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
| 550 | + | |
556 | 551 | | |
557 | 552 | | |
558 | 553 | | |
559 | 554 | | |
560 | | - | |
561 | 555 | | |
562 | 556 | | |
563 | 557 | | |
| |||
604 | 598 | | |
605 | 599 | | |
606 | 600 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
| 601 | + | |
612 | 602 | | |
613 | 603 | | |
614 | 604 | | |
| |||
624 | 614 | | |
625 | 615 | | |
626 | 616 | | |
627 | | - | |
| 617 | + | |
628 | 618 | | |
629 | 619 | | |
630 | 620 | | |
| |||
637 | 627 | | |
638 | 628 | | |
639 | 629 | | |
640 | | - | |
| 630 | + | |
641 | 631 | | |
642 | 632 | | |
643 | 633 | | |
| |||
649 | 639 | | |
650 | 640 | | |
651 | 641 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
| 642 | + | |
657 | 643 | | |
658 | 644 | | |
659 | 645 | | |
| |||
665 | 651 | | |
666 | 652 | | |
667 | 653 | | |
668 | | - | |
| 654 | + | |
669 | 655 | | |
670 | 656 | | |
671 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
375 | | - | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
387 | | - | |
| 388 | + | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
| |||
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
| 423 | + | |
| 424 | + | |
422 | 425 | | |
423 | 426 | | |
424 | 427 | | |
| |||
0 commit comments