- Notifications
You must be signed in to change notification settings - Fork914
Commitb1298a3
authored
feat: add WorkspaceUpdates tailnet RPC (#14847)
Closes#14716Closes#14717Adds a new user-scoped tailnet API endpoint (`api/v2/tailnet`) with a new RPC stream for receiving updates on workspaces owned by a specific user, as defined in#14716. When a stream is started, the `WorkspaceUpdatesProvider` will begin listening on the user-scoped pubsub events implemented in#14964. When a relevant event type is seen (such as a workspace state transition), the provider will query the DB for all the workspaces (and agents) owned by the user. This gets compared against the result of the previous query to produce a set of workspace updates. Workspace updates can be requested for any user ID, however only workspaces the authorised user is permitted to `ActionRead` will have their updates streamed.Opening a tunnel to an agent requires that the user can perform `ActionSSH` against the workspace containing it.1 parentf941e78 commitb1298a3
File tree
25 files changed
+2220
-271
lines changed- coderd
- apidoc
- database/dbfake
- codersdk
- workspacesdk
- docs/reference/api
- enterprise/tailnet
- tailnet
- proto
- test
25 files changed
+2220
-271
lines changedLines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 17 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
493 | 493 |
| |
494 | 494 |
| |
495 | 495 |
| |
| 496 | + | |
| 497 | + | |
496 | 498 |
| |
497 | 499 |
| |
498 | 500 |
| |
| |||
523 | 525 |
| |
524 | 526 |
| |
525 | 527 |
| |
| 528 | + | |
526 | 529 |
| |
527 | 530 |
| |
528 | 531 |
| |
| |||
652 | 655 |
| |
653 | 656 |
| |
654 | 657 |
| |
655 |
| - | |
656 |
| - | |
657 |
| - | |
658 |
| - | |
659 |
| - | |
660 |
| - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
661 | 665 |
| |
662 | 666 |
| |
663 | 667 |
| |
| |||
1327 | 1331 |
| |
1328 | 1332 |
| |
1329 | 1333 |
| |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1330 | 1338 |
| |
1331 | 1339 |
| |
1332 | 1340 |
| |
| |||
1408 | 1416 |
| |
1409 | 1417 |
| |
1410 | 1418 |
| |
| 1419 | + | |
| 1420 | + | |
1411 | 1421 |
| |
1412 | 1422 |
| |
1413 | 1423 |
| |
| |||
1489 | 1499 |
| |
1490 | 1500 |
| |
1491 | 1501 |
| |
| 1502 | + | |
1492 | 1503 |
| |
1493 | 1504 |
| |
1494 | 1505 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
227 | 235 |
| |
228 | 236 |
| |
229 | 237 |
| |
|
Lines changed: 114 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
844 | 845 |
| |
845 | 846 |
| |
846 | 847 |
| |
847 |
| - | |
848 |
| - | |
849 |
| - | |
850 |
| - | |
851 |
| - | |
852 |
| - | |
853 |
| - | |
854 |
| - | |
855 |
| - | |
856 |
| - | |
857 |
| - | |
858 |
| - | |
859 |
| - | |
860 |
| - | |
861 |
| - | |
862 |
| - | |
863 |
| - | |
864 |
| - | |
865 |
| - | |
866 |
| - | |
867 |
| - | |
868 |
| - | |
869 |
| - | |
870 |
| - | |
871 |
| - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
872 | 852 |
| |
873 | 853 |
| |
874 | 854 |
| |
| |||
891 | 871 |
| |
892 | 872 |
| |
893 | 873 |
| |
894 |
| - | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
895 | 881 |
| |
896 | 882 |
| |
897 | 883 |
| |
898 | 884 |
| |
899 | 885 |
| |
900 | 886 |
| |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
901 | 915 |
| |
902 | 916 |
| |
903 | 917 |
| |
| |||
1469 | 1483 |
| |
1470 | 1484 |
| |
1471 | 1485 |
| |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
1472 | 1560 |
| |
1473 | 1561 |
| |
1474 | 1562 |
| |
|
0 commit comments
Comments
(0)