mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-11 08:22:05 +02:00
Compare commits
45 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 591cb9cdc1 | |||
| 34b18bdb53 | |||
| 7d475f5e91 | |||
| 39c35fa539 | |||
| e1bc0b7efd | |||
| 5ef068c8dc | |||
| 94c01a23a9 | |||
| 609fb357bb | |||
| cf9a17cc2e | |||
| 538b57941c | |||
| f4bee6406a | |||
| 0b2693a317 | |||
| 3be2d928f6 | |||
| 8d018fe47d | |||
| dc7eb630c3 | |||
| bbcd352817 | |||
| 21d9199978 | |||
| 3e7b9d7bff | |||
| 54acdbe282 | |||
| 11bbd028fc | |||
| 7ae99731f4 | |||
| 17b4fd9a44 | |||
| caa398ae54 | |||
| 035e324e5a | |||
| 272a5737b0 | |||
| be50fd4586 | |||
| 8301511efe | |||
| c527ce6562 | |||
| 80bee900aa | |||
| 54209c2390 | |||
| 3b0ee8d9d4 | |||
| 7a0a877dc0 | |||
| b6ed762724 | |||
| d1d58cf455 | |||
| e22f30c694 | |||
| d71c112959 | |||
| 199e960f6d | |||
| 843b9a0b16 | |||
| b9aedc65fe | |||
| 11f5cfd4f8 | |||
| 2ff2e32e9c | |||
| facb1e4cdf | |||
| 6d129c0738 | |||
| 67a3d226f5 | |||
| 19a3773880 |
@@ -41,7 +41,7 @@ services:
|
|||||||
- 80:80 # Port for traefik because of the network_mode
|
- 80:80 # Port for traefik because of the network_mode
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik:v3.7
|
image: traefik:v3.6
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: service:gerbil # Ports appear on the gerbil service
|
network_mode: service:gerbil # Ports appear on the gerbil service
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ services:
|
|||||||
- 80:80{{end}}
|
- 80:80{{end}}
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
image: docker.io/traefik:v3.7
|
image: docker.io/traefik:v3.6
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
{{if .InstallGerbil}}network_mode: service:gerbil # Ports appear on the gerbil service{{end}}{{if not .InstallGerbil}}
|
{{if .InstallGerbil}}network_mode: service:gerbil # Ports appear on the gerbil service{{end}}{{if not .InstallGerbil}}
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Генериране на токен за достъп",
|
"actionGenerateAccessToken": "Генериране на токен за достъп",
|
||||||
"actionDeleteAccessToken": "Изтриване на токен за достъп",
|
"actionDeleteAccessToken": "Изтриване на токен за достъп",
|
||||||
"actionListAccessTokens": "Изброяване на токени за достъп",
|
"actionListAccessTokens": "Изброяване на токени за достъп",
|
||||||
|
"actionCreateResourceSessionToken": "Създаване на токен за сесия на ресурс",
|
||||||
"actionCreateResourceRule": "Създаване на правило за ресурс",
|
"actionCreateResourceRule": "Създаване на правило за ресурс",
|
||||||
"actionDeleteResourceRule": "Изтрийте правило за ресурс",
|
"actionDeleteResourceRule": "Изтрийте правило за ресурс",
|
||||||
"actionListResourceRules": "Изброяване на правила за ресурс",
|
"actionListResourceRules": "Изброяване на правила за ресурс",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Затвори",
|
"createInternalResourceDialogClose": "Затвори",
|
||||||
"createInternalResourceDialogCreateClientResource": "Създаване на частен ресурс",
|
"createInternalResourceDialogCreateClientResource": "Създаване на частен ресурс",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Създайте нов ресурс, който ще бъде достъпен само за клиенти, свързани към организацията",
|
"createInternalResourceDialogCreateClientResourceDescription": "Създайте нов ресурс, който ще бъде достъпен само за клиенти, свързани към организацията",
|
||||||
|
"privateResourceGeneralDescription": "Конфигурирайте името, идентификатора и другите общи настройки на ресурса.",
|
||||||
"privateResourceCreatePageSeeAll": "Вижте всички частни ресурси",
|
"privateResourceCreatePageSeeAll": "Вижте всички частни ресурси",
|
||||||
"privateResourceAllowIcmpPing": "Разрешете ICMP Ping",
|
"privateResourceAllowIcmpPing": "Разрешете ICMP Ping",
|
||||||
"privateResourceNetworkAccess": "Достъп до мрежата",
|
"privateResourceNetworkAccess": "Достъп до мрежата",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Добавяне на потребители.",
|
"editInternalResourceDialogAddUsers": "Добавяне на потребители.",
|
||||||
"editInternalResourceDialogAddClients": "Добавяне на клиенти.",
|
"editInternalResourceDialogAddClients": "Добавяне на клиенти.",
|
||||||
"editInternalResourceDialogDestinationLabel": "Дестинация.",
|
"editInternalResourceDialogDestinationLabel": "Дестинация.",
|
||||||
"editInternalResourceDialogDestinationDescription": "Изберете къде работи този ресурс и как клиентите го достигат",
|
"editInternalResourceDialogDestinationDescription": "Конфигурирайте как клиентите да достигнат до този ресурс.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Избирайки няколко сайта, се осигурява сигурен път и пренасочване при висока достъпност.",
|
"internalResourceFormMultiSiteRoutingHelp": "Избирайки няколко сайта, се осигурява сигурен път и пренасочване при висока достъпност.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Научете повече",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Научете повече",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Ограничете достъпа до конкретни TCP/UDP портове или позволете/блокирайте всички портове.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Ограничете достъпа до конкретни TCP/UDP портове или позволете/блокирайте всички портове.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Generovat přístupový token",
|
"actionGenerateAccessToken": "Generovat přístupový token",
|
||||||
"actionDeleteAccessToken": "Odstranit přístupový token",
|
"actionDeleteAccessToken": "Odstranit přístupový token",
|
||||||
"actionListAccessTokens": "Seznam přístupových tokenů",
|
"actionListAccessTokens": "Seznam přístupových tokenů",
|
||||||
|
"actionCreateResourceSessionToken": "Vytvořit token relace prostředku",
|
||||||
"actionCreateResourceRule": "Vytvořit pravidlo pro zdroj",
|
"actionCreateResourceRule": "Vytvořit pravidlo pro zdroj",
|
||||||
"actionDeleteResourceRule": "Odstranit pravidlo pro dokument",
|
"actionDeleteResourceRule": "Odstranit pravidlo pro dokument",
|
||||||
"actionListResourceRules": "Seznam pravidel zdrojů",
|
"actionListResourceRules": "Seznam pravidel zdrojů",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Zavřít",
|
"createInternalResourceDialogClose": "Zavřít",
|
||||||
"createInternalResourceDialogCreateClientResource": "Vytvořit soukromý zdroj",
|
"createInternalResourceDialogCreateClientResource": "Vytvořit soukromý zdroj",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Vytvořte nový zdroj, který bude přístupný pouze klientům připojeným k organizaci",
|
"createInternalResourceDialogCreateClientResourceDescription": "Vytvořte nový zdroj, který bude přístupný pouze klientům připojeným k organizaci",
|
||||||
|
"privateResourceGeneralDescription": "Nastavte název, identifikátor a další obecná nastavení zdroje.",
|
||||||
"privateResourceCreatePageSeeAll": "Zobrazit všechny privátní zdroje",
|
"privateResourceCreatePageSeeAll": "Zobrazit všechny privátní zdroje",
|
||||||
"privateResourceAllowIcmpPing": "Povolit ICMP ping",
|
"privateResourceAllowIcmpPing": "Povolit ICMP ping",
|
||||||
"privateResourceNetworkAccess": "Přístup k síti",
|
"privateResourceNetworkAccess": "Přístup k síti",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Přidat uživatele",
|
"editInternalResourceDialogAddUsers": "Přidat uživatele",
|
||||||
"editInternalResourceDialogAddClients": "Přidat klienty",
|
"editInternalResourceDialogAddClients": "Přidat klienty",
|
||||||
"editInternalResourceDialogDestinationLabel": "Cíl",
|
"editInternalResourceDialogDestinationLabel": "Cíl",
|
||||||
"editInternalResourceDialogDestinationDescription": "Vyberte, kde bude tento zdroj spuštěn a jak ho klienti dosáhnou",
|
"editInternalResourceDialogDestinationDescription": "Nakonfigurujte, jak klienti dosáhnou tohoto zdroje.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Výběrem více webů se povolí odolné směrování a přepojení pro vysokou dostupnost.",
|
"internalResourceFormMultiSiteRoutingHelp": "Výběrem více webů se povolí odolné směrování a přepojení pro vysokou dostupnost.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Zjistit více",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Zjistit více",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Omezte přístup na specifické TCP/UDP porty nebo povolte/blokujte všechny porty.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Omezte přístup na specifické TCP/UDP porty nebo povolte/blokujte všechny porty.",
|
||||||
|
|||||||
+4
-2
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Generer adgangstoken",
|
"actionGenerateAccessToken": "Generer adgangstoken",
|
||||||
"actionDeleteAccessToken": "Slet adgangstoken",
|
"actionDeleteAccessToken": "Slet adgangstoken",
|
||||||
"actionListAccessTokens": "Vis adgangstokens",
|
"actionListAccessTokens": "Vis adgangstokens",
|
||||||
|
"actionCreateResourceSessionToken": "Opret ressourcessession token",
|
||||||
"actionCreateResourceRule": "Opret ressourceregel",
|
"actionCreateResourceRule": "Opret ressourceregel",
|
||||||
"actionDeleteResourceRule": "Slet ressourceregel",
|
"actionDeleteResourceRule": "Slet ressourceregel",
|
||||||
"actionListResourceRules": "Vis ressourceregler",
|
"actionListResourceRules": "Vis ressourceregler",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Luk",
|
"createInternalResourceDialogClose": "Luk",
|
||||||
"createInternalResourceDialogCreateClientResource": "Opret privat ressource",
|
"createInternalResourceDialogCreateClientResource": "Opret privat ressource",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Opret en ny ressource som kun vil være tilgængelig for kunder som er forbundet til organisationen",
|
"createInternalResourceDialogCreateClientResourceDescription": "Opret en ny ressource som kun vil være tilgængelig for kunder som er forbundet til organisationen",
|
||||||
|
"privateResourceGeneralDescription": "Konfigurer navnet, identifikatoren, og andre generelle indstillinger for ressourcen.",
|
||||||
"privateResourceCreatePageSeeAll": "Se alle private ressourcer",
|
"privateResourceCreatePageSeeAll": "Se alle private ressourcer",
|
||||||
"privateResourceAllowIcmpPing": "Tillad ICMP-ping",
|
"privateResourceAllowIcmpPing": "Tillad ICMP-ping",
|
||||||
"privateResourceNetworkAccess": "Netværksadgang",
|
"privateResourceNetworkAccess": "Netværksadgang",
|
||||||
@@ -2546,7 +2548,7 @@
|
|||||||
"noRemoteExitNodesAvailableDescription": "Ingen noder er tilgængelige for denne organisation. Opret en node først for at bruge lokale sites.",
|
"noRemoteExitNodesAvailableDescription": "Ingen noder er tilgængelige for denne organisation. Opret en node først for at bruge lokale sites.",
|
||||||
"exitNode": "Exitnode",
|
"exitNode": "Exitnode",
|
||||||
"country": "Land",
|
"country": "Land",
|
||||||
"countryIsNot": "Country Is Not",
|
"countryIsNot": "Land er ikke",
|
||||||
"rulesMatchCountry": "I øjeblikket baseret på kilde-IP",
|
"rulesMatchCountry": "I øjeblikket baseret på kilde-IP",
|
||||||
"region": "Fylke",
|
"region": "Fylke",
|
||||||
"selectRegion": "Vælg region",
|
"selectRegion": "Vælg region",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Tilføj brugere",
|
"editInternalResourceDialogAddUsers": "Tilføj brugere",
|
||||||
"editInternalResourceDialogAddClients": "Tilføj klienter",
|
"editInternalResourceDialogAddClients": "Tilføj klienter",
|
||||||
"editInternalResourceDialogDestinationLabel": "Destination",
|
"editInternalResourceDialogDestinationLabel": "Destination",
|
||||||
"editInternalResourceDialogDestinationDescription": "Choose where this resource runs and how clients reach it",
|
"editInternalResourceDialogDestinationDescription": "Konfigurer hvordan klienter får adgang til denne ressource.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Valg af flere sites muliggør robust routing og failover for høj tilgængelighed.",
|
"internalResourceFormMultiSiteRoutingHelp": "Valg af flere sites muliggør robust routing og failover for høj tilgængelighed.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Læs mere",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Læs mere",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Begrens adgang til specifikke TCP/UDP-porte eller tillade/blokere alle porte.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Begrens adgang til specifikke TCP/UDP-porte eller tillade/blokere alle porte.",
|
||||||
|
|||||||
+4
-2
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Zugriffstoken generieren",
|
"actionGenerateAccessToken": "Zugriffstoken generieren",
|
||||||
"actionDeleteAccessToken": "Zugriffstoken löschen",
|
"actionDeleteAccessToken": "Zugriffstoken löschen",
|
||||||
"actionListAccessTokens": "Zugriffstoken auflisten",
|
"actionListAccessTokens": "Zugriffstoken auflisten",
|
||||||
|
"actionCreateResourceSessionToken": "Ressourcensitzungstoken erstellen",
|
||||||
"actionCreateResourceRule": "Ressourcenregel erstellen",
|
"actionCreateResourceRule": "Ressourcenregel erstellen",
|
||||||
"actionDeleteResourceRule": "Ressourcenregel löschen",
|
"actionDeleteResourceRule": "Ressourcenregel löschen",
|
||||||
"actionListResourceRules": "Ressourcenregeln auflisten",
|
"actionListResourceRules": "Ressourcenregeln auflisten",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Schließen",
|
"createInternalResourceDialogClose": "Schließen",
|
||||||
"createInternalResourceDialogCreateClientResource": "Private Ressource erstellen",
|
"createInternalResourceDialogCreateClientResource": "Private Ressource erstellen",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Erstelle eine neue Ressource, die nur für Clients zugänglich ist, die mit der Organisation verbunden sind",
|
"createInternalResourceDialogCreateClientResourceDescription": "Erstelle eine neue Ressource, die nur für Clients zugänglich ist, die mit der Organisation verbunden sind",
|
||||||
|
"privateResourceGeneralDescription": "Konfigurieren Sie den Namen, die Kennung und andere allgemeine Ressourceneinstellungen.",
|
||||||
"privateResourceCreatePageSeeAll": "Alle privaten Ressourcen anzeigen",
|
"privateResourceCreatePageSeeAll": "Alle privaten Ressourcen anzeigen",
|
||||||
"privateResourceAllowIcmpPing": "ICMP-Ping zulassen",
|
"privateResourceAllowIcmpPing": "ICMP-Ping zulassen",
|
||||||
"privateResourceNetworkAccess": "Netzwerkzugriff",
|
"privateResourceNetworkAccess": "Netzwerkzugriff",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Nutzer hinzufügen",
|
"editInternalResourceDialogAddUsers": "Nutzer hinzufügen",
|
||||||
"editInternalResourceDialogAddClients": "Clients hinzufügen",
|
"editInternalResourceDialogAddClients": "Clients hinzufügen",
|
||||||
"editInternalResourceDialogDestinationLabel": "Ziel",
|
"editInternalResourceDialogDestinationLabel": "Ziel",
|
||||||
"editInternalResourceDialogDestinationDescription": "Wählen Sie aus, wo diese Ressource läuft und wie Clients darauf zugreifen können",
|
"editInternalResourceDialogDestinationDescription": "Konfigurieren Sie, wie Clients diese Ressource erreichen.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Durch die Auswahl mehrerer Seiten wird ein ausfallsicheres Routing und Failover für hohe Verfügbarkeit ermöglicht.",
|
"internalResourceFormMultiSiteRoutingHelp": "Durch die Auswahl mehrerer Seiten wird ein ausfallsicheres Routing und Failover für hohe Verfügbarkeit ermöglicht.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Mehr erfahren",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Mehr erfahren",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Den Zugriff auf bestimmte TCP/UDP-Ports beschränken oder alle Ports erlauben/blockieren.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Den Zugriff auf bestimmte TCP/UDP-Ports beschränken oder alle Ports erlauben/blockieren.",
|
||||||
@@ -3679,7 +3681,7 @@
|
|||||||
"resourceLauncherSaveForEveryoneDescription": "Teilen Sie diese Ansicht mit allen Organisationsmitgliedern. Wenn nicht aktiviert, ist die Ansicht nur für Sie sichtbar.",
|
"resourceLauncherSaveForEveryoneDescription": "Teilen Sie diese Ansicht mit allen Organisationsmitgliedern. Wenn nicht aktiviert, ist die Ansicht nur für Sie sichtbar.",
|
||||||
"resourceLauncherMakePersonal": "Persönlich machen",
|
"resourceLauncherMakePersonal": "Persönlich machen",
|
||||||
"resourceLauncherFilter": "Filter",
|
"resourceLauncherFilter": "Filter",
|
||||||
"resourceLauncherFilterWithCount": "Filter, {count} applied",
|
"resourceLauncherFilterWithCount": "Filter, {count} angewendet",
|
||||||
"resourceLauncherSort": "Sortieren",
|
"resourceLauncherSort": "Sortieren",
|
||||||
"resourceLauncherSortAscending": "Aufsteigend sortieren",
|
"resourceLauncherSortAscending": "Aufsteigend sortieren",
|
||||||
"resourceLauncherSortDescending": "Absteigend sortieren",
|
"resourceLauncherSortDescending": "Absteigend sortieren",
|
||||||
|
|||||||
+4
-1
@@ -1397,6 +1397,7 @@
|
|||||||
"createOrgUser": "Create Org User",
|
"createOrgUser": "Create Org User",
|
||||||
"actionUpdateOrg": "Update Organization",
|
"actionUpdateOrg": "Update Organization",
|
||||||
"actionRemoveInvitation": "Remove Invitation",
|
"actionRemoveInvitation": "Remove Invitation",
|
||||||
|
"actionRemoveUserRole": "Remove User Role",
|
||||||
"actionUpdateUser": "Update User",
|
"actionUpdateUser": "Update User",
|
||||||
"actionGetUser": "Get User",
|
"actionGetUser": "Get User",
|
||||||
"actionGetOrgUser": "Get Organization User",
|
"actionGetOrgUser": "Get Organization User",
|
||||||
@@ -1462,6 +1463,7 @@
|
|||||||
"actionGenerateAccessToken": "Generate Access Token",
|
"actionGenerateAccessToken": "Generate Access Token",
|
||||||
"actionDeleteAccessToken": "Delete Access Token",
|
"actionDeleteAccessToken": "Delete Access Token",
|
||||||
"actionListAccessTokens": "List Access Tokens",
|
"actionListAccessTokens": "List Access Tokens",
|
||||||
|
"actionCreateResourceSessionToken": "Create Resource Session Token",
|
||||||
"actionCreateResourceRule": "Create Resource Rule",
|
"actionCreateResourceRule": "Create Resource Rule",
|
||||||
"actionDeleteResourceRule": "Delete Resource Rule",
|
"actionDeleteResourceRule": "Delete Resource Rule",
|
||||||
"actionListResourceRules": "List Resource Rules",
|
"actionListResourceRules": "List Resource Rules",
|
||||||
@@ -2392,6 +2394,7 @@
|
|||||||
"createInternalResourceDialogClose": "Close",
|
"createInternalResourceDialogClose": "Close",
|
||||||
"createInternalResourceDialogCreateClientResource": "Create Private Resource",
|
"createInternalResourceDialogCreateClientResource": "Create Private Resource",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Create a new resource that will only be accessible to clients connected to the organization",
|
"createInternalResourceDialogCreateClientResourceDescription": "Create a new resource that will only be accessible to clients connected to the organization",
|
||||||
|
"privateResourceGeneralDescription": "Configure the name, identifier, and other general resource settings.",
|
||||||
"privateResourceCreatePageSeeAll": "See All Private Resources",
|
"privateResourceCreatePageSeeAll": "See All Private Resources",
|
||||||
"privateResourceAllowIcmpPing": "Allow ICMP Ping",
|
"privateResourceAllowIcmpPing": "Allow ICMP Ping",
|
||||||
"privateResourceNetworkAccess": "Network Access",
|
"privateResourceNetworkAccess": "Network Access",
|
||||||
@@ -3268,7 +3271,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Add Users",
|
"editInternalResourceDialogAddUsers": "Add Users",
|
||||||
"editInternalResourceDialogAddClients": "Add Clients",
|
"editInternalResourceDialogAddClients": "Add Clients",
|
||||||
"editInternalResourceDialogDestinationLabel": "Destination",
|
"editInternalResourceDialogDestinationLabel": "Destination",
|
||||||
"editInternalResourceDialogDestinationDescription": "Choose where this resource runs and how clients reach it",
|
"editInternalResourceDialogDestinationDescription": "Configure how clients reach this resource.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Selecting multiple sites enables resilient routing and failover for high availability.",
|
"internalResourceFormMultiSiteRoutingHelp": "Selecting multiple sites enables resilient routing and failover for high availability.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Learn more",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Learn more",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Restrict access to specific TCP/UDP ports or allow/block all ports.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Restrict access to specific TCP/UDP ports or allow/block all ports.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Generar token de acceso",
|
"actionGenerateAccessToken": "Generar token de acceso",
|
||||||
"actionDeleteAccessToken": "Eliminar token de acceso",
|
"actionDeleteAccessToken": "Eliminar token de acceso",
|
||||||
"actionListAccessTokens": "Lista de Tokens de Acceso",
|
"actionListAccessTokens": "Lista de Tokens de Acceso",
|
||||||
|
"actionCreateResourceSessionToken": "Crear Token de Sesión de Recurso",
|
||||||
"actionCreateResourceRule": "Crear Regla de Recursos",
|
"actionCreateResourceRule": "Crear Regla de Recursos",
|
||||||
"actionDeleteResourceRule": "Eliminar Regla de Recurso",
|
"actionDeleteResourceRule": "Eliminar Regla de Recurso",
|
||||||
"actionListResourceRules": "Lista de Reglas de Recursos",
|
"actionListResourceRules": "Lista de Reglas de Recursos",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Cerrar",
|
"createInternalResourceDialogClose": "Cerrar",
|
||||||
"createInternalResourceDialogCreateClientResource": "Crear recurso privado",
|
"createInternalResourceDialogCreateClientResource": "Crear recurso privado",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Crear un nuevo recurso que sólo será accesible a los clientes conectados a la organización",
|
"createInternalResourceDialogCreateClientResourceDescription": "Crear un nuevo recurso que sólo será accesible a los clientes conectados a la organización",
|
||||||
|
"privateResourceGeneralDescription": "Configura el nombre, identificador y otros ajustes generales del recurso.",
|
||||||
"privateResourceCreatePageSeeAll": "Ver todos los recursos privados",
|
"privateResourceCreatePageSeeAll": "Ver todos los recursos privados",
|
||||||
"privateResourceAllowIcmpPing": "Permitir ping ICMP",
|
"privateResourceAllowIcmpPing": "Permitir ping ICMP",
|
||||||
"privateResourceNetworkAccess": "Acceso de red",
|
"privateResourceNetworkAccess": "Acceso de red",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Agregar usuarios",
|
"editInternalResourceDialogAddUsers": "Agregar usuarios",
|
||||||
"editInternalResourceDialogAddClients": "Agregar clientes",
|
"editInternalResourceDialogAddClients": "Agregar clientes",
|
||||||
"editInternalResourceDialogDestinationLabel": "Destino",
|
"editInternalResourceDialogDestinationLabel": "Destino",
|
||||||
"editInternalResourceDialogDestinationDescription": "Elija dónde se ejecuta este recurso y cómo lo alcanzan los clientes",
|
"editInternalResourceDialogDestinationDescription": "Configura cómo los clientes acceden a este recurso.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Seleccionar múltiples sitios habilita el enrutamiento resistente y la conmutación por error para alta disponibilidad.",
|
"internalResourceFormMultiSiteRoutingHelp": "Seleccionar múltiples sitios habilita el enrutamiento resistente y la conmutación por error para alta disponibilidad.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Más información",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Más información",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Restringir el acceso a puertos TCP/UDP específicos o permitir/bloquear todos los puertos.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Restringir el acceso a puertos TCP/UDP específicos o permitir/bloquear todos los puertos.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Générer un jeton d'accès",
|
"actionGenerateAccessToken": "Générer un jeton d'accès",
|
||||||
"actionDeleteAccessToken": "Supprimer un jeton d'accès",
|
"actionDeleteAccessToken": "Supprimer un jeton d'accès",
|
||||||
"actionListAccessTokens": "Lister les jetons d'accès",
|
"actionListAccessTokens": "Lister les jetons d'accès",
|
||||||
|
"actionCreateResourceSessionToken": "Créer un jeton de session de ressource",
|
||||||
"actionCreateResourceRule": "Créer une règle de ressource",
|
"actionCreateResourceRule": "Créer une règle de ressource",
|
||||||
"actionDeleteResourceRule": "Supprimer une règle de ressource",
|
"actionDeleteResourceRule": "Supprimer une règle de ressource",
|
||||||
"actionListResourceRules": "Lister les règles de ressource",
|
"actionListResourceRules": "Lister les règles de ressource",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Fermer",
|
"createInternalResourceDialogClose": "Fermer",
|
||||||
"createInternalResourceDialogCreateClientResource": "Créer une ressource privée",
|
"createInternalResourceDialogCreateClientResource": "Créer une ressource privée",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Créer une nouvelle ressource qui ne sera accessible qu'aux clients connectés à l'organisation",
|
"createInternalResourceDialogCreateClientResourceDescription": "Créer une nouvelle ressource qui ne sera accessible qu'aux clients connectés à l'organisation",
|
||||||
|
"privateResourceGeneralDescription": "Configurez le nom, l'identifiant et d'autres paramètres généraux de la ressource.",
|
||||||
"privateResourceCreatePageSeeAll": "Voir toutes les ressources privées",
|
"privateResourceCreatePageSeeAll": "Voir toutes les ressources privées",
|
||||||
"privateResourceAllowIcmpPing": "Autoriser le ping ICMP",
|
"privateResourceAllowIcmpPing": "Autoriser le ping ICMP",
|
||||||
"privateResourceNetworkAccess": "Accès au réseau",
|
"privateResourceNetworkAccess": "Accès au réseau",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Ajouter des utilisateurs",
|
"editInternalResourceDialogAddUsers": "Ajouter des utilisateurs",
|
||||||
"editInternalResourceDialogAddClients": "Ajouter des clients",
|
"editInternalResourceDialogAddClients": "Ajouter des clients",
|
||||||
"editInternalResourceDialogDestinationLabel": "Destination",
|
"editInternalResourceDialogDestinationLabel": "Destination",
|
||||||
"editInternalResourceDialogDestinationDescription": "Choisissez où cette ressource fonctionne et comment les clients l'atteignent",
|
"editInternalResourceDialogDestinationDescription": "Configurez comment les clients accèdent à cette ressource.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "La sélection de plusieurs sites permet un routage résilient et un basculement pour une haute disponibilité.",
|
"internalResourceFormMultiSiteRoutingHelp": "La sélection de plusieurs sites permet un routage résilient et un basculement pour une haute disponibilité.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "En savoir plus",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "En savoir plus",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Restreindre l'accès à des ports TCP/UDP spécifiques ou autoriser/bloquer tous les ports.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Restreindre l'accès à des ports TCP/UDP spécifiques ou autoriser/bloquer tous les ports.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Genera Token di Accesso",
|
"actionGenerateAccessToken": "Genera Token di Accesso",
|
||||||
"actionDeleteAccessToken": "Elimina Token di Accesso",
|
"actionDeleteAccessToken": "Elimina Token di Accesso",
|
||||||
"actionListAccessTokens": "Elenca Token di Accesso",
|
"actionListAccessTokens": "Elenca Token di Accesso",
|
||||||
|
"actionCreateResourceSessionToken": "Crea Token di Sessione della Risorsa",
|
||||||
"actionCreateResourceRule": "Crea Regola Risorsa",
|
"actionCreateResourceRule": "Crea Regola Risorsa",
|
||||||
"actionDeleteResourceRule": "Elimina Regola Risorsa",
|
"actionDeleteResourceRule": "Elimina Regola Risorsa",
|
||||||
"actionListResourceRules": "Elenca Regole Risorsa",
|
"actionListResourceRules": "Elenca Regole Risorsa",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Chiudi",
|
"createInternalResourceDialogClose": "Chiudi",
|
||||||
"createInternalResourceDialogCreateClientResource": "Crea Risorsa Privata",
|
"createInternalResourceDialogCreateClientResource": "Crea Risorsa Privata",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Crea una nuova risorsa che sarà accessibile solo ai client connessi all'organizzazione",
|
"createInternalResourceDialogCreateClientResourceDescription": "Crea una nuova risorsa che sarà accessibile solo ai client connessi all'organizzazione",
|
||||||
|
"privateResourceGeneralDescription": "Configura il nome, l'identificativo e altre impostazioni generali delle risorse.",
|
||||||
"privateResourceCreatePageSeeAll": "Vedi Tutte le Risorse Private",
|
"privateResourceCreatePageSeeAll": "Vedi Tutte le Risorse Private",
|
||||||
"privateResourceAllowIcmpPing": "Consenti ICMP Ping",
|
"privateResourceAllowIcmpPing": "Consenti ICMP Ping",
|
||||||
"privateResourceNetworkAccess": "Accesso alla Rete",
|
"privateResourceNetworkAccess": "Accesso alla Rete",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Aggiungi Utenti",
|
"editInternalResourceDialogAddUsers": "Aggiungi Utenti",
|
||||||
"editInternalResourceDialogAddClients": "Aggiungi Clienti",
|
"editInternalResourceDialogAddClients": "Aggiungi Clienti",
|
||||||
"editInternalResourceDialogDestinationLabel": "Destinazione",
|
"editInternalResourceDialogDestinationLabel": "Destinazione",
|
||||||
"editInternalResourceDialogDestinationDescription": "Scegli dove eseguire questa risorsa e come i client lo raggiungono",
|
"editInternalResourceDialogDestinationDescription": "Configura come i client raggiungono questa risorsa.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Selezionare più siti consente un routing resiliente e Failover per alta disponibilità.",
|
"internalResourceFormMultiSiteRoutingHelp": "Selezionare più siti consente un routing resiliente e Failover per alta disponibilità.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Scopri di più",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Scopri di più",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Limita l'accesso a porte TCP/UDP specifiche o consenti/blocca tutte le porte.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Limita l'accesso a porte TCP/UDP specifiche o consenti/blocca tutte le porte.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "액세스 토큰 생성",
|
"actionGenerateAccessToken": "액세스 토큰 생성",
|
||||||
"actionDeleteAccessToken": "액세스 토큰 삭제",
|
"actionDeleteAccessToken": "액세스 토큰 삭제",
|
||||||
"actionListAccessTokens": "액세스 토큰 목록",
|
"actionListAccessTokens": "액세스 토큰 목록",
|
||||||
|
"actionCreateResourceSessionToken": "리소스 세션 토큰 생성",
|
||||||
"actionCreateResourceRule": "리소스 규칙 생성",
|
"actionCreateResourceRule": "리소스 규칙 생성",
|
||||||
"actionDeleteResourceRule": "리소스 규칙 삭제",
|
"actionDeleteResourceRule": "리소스 규칙 삭제",
|
||||||
"actionListResourceRules": "리소스 규칙 목록",
|
"actionListResourceRules": "리소스 규칙 목록",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "닫기",
|
"createInternalResourceDialogClose": "닫기",
|
||||||
"createInternalResourceDialogCreateClientResource": "사이트 리소스 생성",
|
"createInternalResourceDialogCreateClientResource": "사이트 리소스 생성",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "선택한 사이트에 연결된 클라이언트에 접근할 새 리소스를 생성합니다",
|
"createInternalResourceDialogCreateClientResourceDescription": "선택한 사이트에 연결된 클라이언트에 접근할 새 리소스를 생성합니다",
|
||||||
|
"privateResourceGeneralDescription": "이름, 식별자, 기타 일반 리소스 설정을 구성합니다.",
|
||||||
"privateResourceCreatePageSeeAll": "모든 개인 리소스 보기",
|
"privateResourceCreatePageSeeAll": "모든 개인 리소스 보기",
|
||||||
"privateResourceAllowIcmpPing": "ICMP 핑 허용",
|
"privateResourceAllowIcmpPing": "ICMP 핑 허용",
|
||||||
"privateResourceNetworkAccess": "네트워크 접근",
|
"privateResourceNetworkAccess": "네트워크 접근",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "사용자 추가",
|
"editInternalResourceDialogAddUsers": "사용자 추가",
|
||||||
"editInternalResourceDialogAddClients": "클라이언트 추가",
|
"editInternalResourceDialogAddClients": "클라이언트 추가",
|
||||||
"editInternalResourceDialogDestinationLabel": "대상지",
|
"editInternalResourceDialogDestinationLabel": "대상지",
|
||||||
"editInternalResourceDialogDestinationDescription": "이 리소스가 실행되는 위치와 고객이 도달하는 방법 선택",
|
"editInternalResourceDialogDestinationDescription": "클라이언트가 이 리소스에 어떻게 도달하는지 구성합니다.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "다중 사이트를 선택하면 높은 가용성을 위해 회복력 있는 라우팅 및 페일오버가 가능해집니다.",
|
"internalResourceFormMultiSiteRoutingHelp": "다중 사이트를 선택하면 높은 가용성을 위해 회복력 있는 라우팅 및 페일오버가 가능해집니다.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "자세히 알아보기",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "자세히 알아보기",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "특정 TCP/UDP 포트에 대한 접근을 제한하거나 모든 포트를 허용/차단하십시오.",
|
"editInternalResourceDialogPortRestrictionsDescription": "특정 TCP/UDP 포트에 대한 접근을 제한하거나 모든 포트를 허용/차단하십시오.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Generer tilgangstoken",
|
"actionGenerateAccessToken": "Generer tilgangstoken",
|
||||||
"actionDeleteAccessToken": "Slett tilgangstoken",
|
"actionDeleteAccessToken": "Slett tilgangstoken",
|
||||||
"actionListAccessTokens": "List opp tilgangstokener",
|
"actionListAccessTokens": "List opp tilgangstokener",
|
||||||
|
"actionCreateResourceSessionToken": "Opprett ressurs økt-token",
|
||||||
"actionCreateResourceRule": "Opprett ressursregel",
|
"actionCreateResourceRule": "Opprett ressursregel",
|
||||||
"actionDeleteResourceRule": "Slett ressursregel",
|
"actionDeleteResourceRule": "Slett ressursregel",
|
||||||
"actionListResourceRules": "List opp ressursregler",
|
"actionListResourceRules": "List opp ressursregler",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Lukk",
|
"createInternalResourceDialogClose": "Lukk",
|
||||||
"createInternalResourceDialogCreateClientResource": "Opprett privat ressurs",
|
"createInternalResourceDialogCreateClientResource": "Opprett privat ressurs",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Opprett en ny ressurs som bare vil være tilgjengelig for kunder som er koblet til organisasjonen",
|
"createInternalResourceDialogCreateClientResourceDescription": "Opprett en ny ressurs som bare vil være tilgjengelig for kunder som er koblet til organisasjonen",
|
||||||
|
"privateResourceGeneralDescription": "Konfigurer navnet, identifikatoren og andre generelle ressursinnstillinger.",
|
||||||
"privateResourceCreatePageSeeAll": "Se alle private ressurser",
|
"privateResourceCreatePageSeeAll": "Se alle private ressurser",
|
||||||
"privateResourceAllowIcmpPing": "Tillat ICMP Ping",
|
"privateResourceAllowIcmpPing": "Tillat ICMP Ping",
|
||||||
"privateResourceNetworkAccess": "Nettverkstilgang",
|
"privateResourceNetworkAccess": "Nettverkstilgang",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Legg til brukere",
|
"editInternalResourceDialogAddUsers": "Legg til brukere",
|
||||||
"editInternalResourceDialogAddClients": "Legg til klienter",
|
"editInternalResourceDialogAddClients": "Legg til klienter",
|
||||||
"editInternalResourceDialogDestinationLabel": "Destinasjon",
|
"editInternalResourceDialogDestinationLabel": "Destinasjon",
|
||||||
"editInternalResourceDialogDestinationDescription": "Velg hvor denne ressursen kjører og hvordan klienter når den",
|
"editInternalResourceDialogDestinationDescription": "Konfigurer hvordan klienter får tilgang til denne ressursen.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Valg av flere nettsteder muliggjør motstandskraftig ruting og failover for høy tilgjengelighet.",
|
"internalResourceFormMultiSiteRoutingHelp": "Valg av flere nettsteder muliggjør motstandskraftig ruting og failover for høy tilgjengelighet.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Lær mer",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Lær mer",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Begrens tilgang til spesifikke TCP/UDP-porter eller tillate/blokkere alle porter.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Begrens tilgang til spesifikke TCP/UDP-porter eller tillate/blokkere alle porter.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Genereer Toegangstoken",
|
"actionGenerateAccessToken": "Genereer Toegangstoken",
|
||||||
"actionDeleteAccessToken": "Verwijder toegangstoken",
|
"actionDeleteAccessToken": "Verwijder toegangstoken",
|
||||||
"actionListAccessTokens": "Lijst toegangstokens",
|
"actionListAccessTokens": "Lijst toegangstokens",
|
||||||
|
"actionCreateResourceSessionToken": "Maak Resource Sessie Token",
|
||||||
"actionCreateResourceRule": "Bronregel aanmaken",
|
"actionCreateResourceRule": "Bronregel aanmaken",
|
||||||
"actionDeleteResourceRule": "Verwijder Resource Regel",
|
"actionDeleteResourceRule": "Verwijder Resource Regel",
|
||||||
"actionListResourceRules": "Bron regels weergeven",
|
"actionListResourceRules": "Bron regels weergeven",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Sluiten",
|
"createInternalResourceDialogClose": "Sluiten",
|
||||||
"createInternalResourceDialogCreateClientResource": "Privé bron maken",
|
"createInternalResourceDialogCreateClientResource": "Privé bron maken",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Maak een nieuwe bron aan die alleen toegankelijk is voor klanten die verbonden zijn met de organisatie",
|
"createInternalResourceDialogCreateClientResourceDescription": "Maak een nieuwe bron aan die alleen toegankelijk is voor klanten die verbonden zijn met de organisatie",
|
||||||
|
"privateResourceGeneralDescription": "Configureer de naam, identificatie en andere algemene resource-instellingen.",
|
||||||
"privateResourceCreatePageSeeAll": "Bekijk Alle Privébronnen",
|
"privateResourceCreatePageSeeAll": "Bekijk Alle Privébronnen",
|
||||||
"privateResourceAllowIcmpPing": "Sta ICMP Ping toe",
|
"privateResourceAllowIcmpPing": "Sta ICMP Ping toe",
|
||||||
"privateResourceNetworkAccess": "Netwerktoegang",
|
"privateResourceNetworkAccess": "Netwerktoegang",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Gebruikers toevoegen",
|
"editInternalResourceDialogAddUsers": "Gebruikers toevoegen",
|
||||||
"editInternalResourceDialogAddClients": "Clienten toevoegen",
|
"editInternalResourceDialogAddClients": "Clienten toevoegen",
|
||||||
"editInternalResourceDialogDestinationLabel": "Bestemming",
|
"editInternalResourceDialogDestinationLabel": "Bestemming",
|
||||||
"editInternalResourceDialogDestinationDescription": "Kies waar deze bron draait en hoe clients deze bereiken",
|
"editInternalResourceDialogDestinationDescription": "Configureer hoe klanten toegang krijgen tot deze resource.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Selecteren van meerdere sites maakt veerkrachtige routing en failover mogelijk voor hoge beschikbaarheid.",
|
"internalResourceFormMultiSiteRoutingHelp": "Selecteren van meerdere sites maakt veerkrachtige routing en failover mogelijk voor hoge beschikbaarheid.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Meer informatie",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Meer informatie",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Beperk toegang tot specifieke TCP/UDP-poorten of sta alle poorten toe/blokkeer.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Beperk toegang tot specifieke TCP/UDP-poorten of sta alle poorten toe/blokkeer.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Wygeneruj token dostępu",
|
"actionGenerateAccessToken": "Wygeneruj token dostępu",
|
||||||
"actionDeleteAccessToken": "Usuń token dostępu",
|
"actionDeleteAccessToken": "Usuń token dostępu",
|
||||||
"actionListAccessTokens": "Lista tokenów dostępu",
|
"actionListAccessTokens": "Lista tokenów dostępu",
|
||||||
|
"actionCreateResourceSessionToken": "Utwórz token sesji zasobu",
|
||||||
"actionCreateResourceRule": "Utwórz regułę zasobu",
|
"actionCreateResourceRule": "Utwórz regułę zasobu",
|
||||||
"actionDeleteResourceRule": "Usuń regułę zasobu",
|
"actionDeleteResourceRule": "Usuń regułę zasobu",
|
||||||
"actionListResourceRules": "Lista reguł zasobu",
|
"actionListResourceRules": "Lista reguł zasobu",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Zamknij",
|
"createInternalResourceDialogClose": "Zamknij",
|
||||||
"createInternalResourceDialogCreateClientResource": "Utwórz zasób prywatny",
|
"createInternalResourceDialogCreateClientResource": "Utwórz zasób prywatny",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Utwórz nowy zasób, który będzie dostępny tylko dla klientów podłączonych do organizacji",
|
"createInternalResourceDialogCreateClientResourceDescription": "Utwórz nowy zasób, który będzie dostępny tylko dla klientów podłączonych do organizacji",
|
||||||
|
"privateResourceGeneralDescription": "Skonfiguruj nazwę, identyfikator i inne ogólne ustawienia zasobów.",
|
||||||
"privateResourceCreatePageSeeAll": "Zobacz wszystkie zasoby prywatne",
|
"privateResourceCreatePageSeeAll": "Zobacz wszystkie zasoby prywatne",
|
||||||
"privateResourceAllowIcmpPing": "Zezwalaj na ping ICMP",
|
"privateResourceAllowIcmpPing": "Zezwalaj na ping ICMP",
|
||||||
"privateResourceNetworkAccess": "Dostęp do sieci",
|
"privateResourceNetworkAccess": "Dostęp do sieci",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Dodaj użytkowników",
|
"editInternalResourceDialogAddUsers": "Dodaj użytkowników",
|
||||||
"editInternalResourceDialogAddClients": "Dodaj klientów",
|
"editInternalResourceDialogAddClients": "Dodaj klientów",
|
||||||
"editInternalResourceDialogDestinationLabel": "Miejsce docelowe",
|
"editInternalResourceDialogDestinationLabel": "Miejsce docelowe",
|
||||||
"editInternalResourceDialogDestinationDescription": "Wybierz, gdzie ten zasób działa i jak klienci go osiągają",
|
"editInternalResourceDialogDestinationDescription": "Skonfiguruj sposób, w jaki klienci docierają do tego zasobu.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Wybór wielu stron umożliwia odporne trasowanie i awarię dla wysokiej dostępności.",
|
"internalResourceFormMultiSiteRoutingHelp": "Wybór wielu stron umożliwia odporne trasowanie i awarię dla wysokiej dostępności.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Dowiedz się więcej",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Dowiedz się więcej",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Ogranicz dostęp do konkretnych portów TCP/UDP lub zezwól/zablokuj wszystkie porty.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Ogranicz dostęp do konkretnych portów TCP/UDP lub zezwól/zablokuj wszystkie porty.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Gerar Token de Acesso",
|
"actionGenerateAccessToken": "Gerar Token de Acesso",
|
||||||
"actionDeleteAccessToken": "Eliminar Token de Acesso",
|
"actionDeleteAccessToken": "Eliminar Token de Acesso",
|
||||||
"actionListAccessTokens": "Listar Tokens de Acesso",
|
"actionListAccessTokens": "Listar Tokens de Acesso",
|
||||||
|
"actionCreateResourceSessionToken": "Criar Token de Sessão de Recurso",
|
||||||
"actionCreateResourceRule": "Criar Regra de Recurso",
|
"actionCreateResourceRule": "Criar Regra de Recurso",
|
||||||
"actionDeleteResourceRule": "Eliminar Regra de Recurso",
|
"actionDeleteResourceRule": "Eliminar Regra de Recurso",
|
||||||
"actionListResourceRules": "Listar Regras de Recurso",
|
"actionListResourceRules": "Listar Regras de Recurso",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Fechar",
|
"createInternalResourceDialogClose": "Fechar",
|
||||||
"createInternalResourceDialogCreateClientResource": "Criar Recurso Privado",
|
"createInternalResourceDialogCreateClientResource": "Criar Recurso Privado",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Criar um novo recurso que só será acessível para clientes conectados à organização",
|
"createInternalResourceDialogCreateClientResourceDescription": "Criar um novo recurso que só será acessível para clientes conectados à organização",
|
||||||
|
"privateResourceGeneralDescription": "Configure o nome, identificador e outras configurações gerais de recursos.",
|
||||||
"privateResourceCreatePageSeeAll": "Ver Todos os Recursos Privados",
|
"privateResourceCreatePageSeeAll": "Ver Todos os Recursos Privados",
|
||||||
"privateResourceAllowIcmpPing": "Permitir ICMP Ping",
|
"privateResourceAllowIcmpPing": "Permitir ICMP Ping",
|
||||||
"privateResourceNetworkAccess": "Acesso à Rede",
|
"privateResourceNetworkAccess": "Acesso à Rede",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Adicionar Usuários",
|
"editInternalResourceDialogAddUsers": "Adicionar Usuários",
|
||||||
"editInternalResourceDialogAddClients": "Adicionar Clientes",
|
"editInternalResourceDialogAddClients": "Adicionar Clientes",
|
||||||
"editInternalResourceDialogDestinationLabel": "Destino",
|
"editInternalResourceDialogDestinationLabel": "Destino",
|
||||||
"editInternalResourceDialogDestinationDescription": "Escolha onde este recurso é executado e como os clientes o acessam",
|
"editInternalResourceDialogDestinationDescription": "Configure como os clientes acessam este recurso.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Selecionar múltiplos sites permite roteamento resiliente e failover para alta disponibilidade.",
|
"internalResourceFormMultiSiteRoutingHelp": "Selecionar múltiplos sites permite roteamento resiliente e failover para alta disponibilidade.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Saiba mais",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Saiba mais",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Restrinja o acesso a portas TCP/UDP específicas ou permita/bloqueie todas as portas.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Restrinja o acesso a portas TCP/UDP específicas ou permita/bloqueie todas as portas.",
|
||||||
|
|||||||
+4
-2
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Сгенерировать токен доступа",
|
"actionGenerateAccessToken": "Сгенерировать токен доступа",
|
||||||
"actionDeleteAccessToken": "Удалить токен доступа",
|
"actionDeleteAccessToken": "Удалить токен доступа",
|
||||||
"actionListAccessTokens": "Список токенов доступа",
|
"actionListAccessTokens": "Список токенов доступа",
|
||||||
|
"actionCreateResourceSessionToken": "Создать токен сеанса ресурса",
|
||||||
"actionCreateResourceRule": "Создать правило ресурса",
|
"actionCreateResourceRule": "Создать правило ресурса",
|
||||||
"actionDeleteResourceRule": "Удалить правило ресурса",
|
"actionDeleteResourceRule": "Удалить правило ресурса",
|
||||||
"actionListResourceRules": "Список правил ресурса",
|
"actionListResourceRules": "Список правил ресурса",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Закрыть",
|
"createInternalResourceDialogClose": "Закрыть",
|
||||||
"createInternalResourceDialogCreateClientResource": "Создать приватный ресурс",
|
"createInternalResourceDialogCreateClientResource": "Создать приватный ресурс",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Создать новый ресурс, который будет доступен только клиентам, подключенным к организации",
|
"createInternalResourceDialogCreateClientResourceDescription": "Создать новый ресурс, который будет доступен только клиентам, подключенным к организации",
|
||||||
|
"privateResourceGeneralDescription": "Настройте имя, идентификатор и другие общие параметры ресурса.",
|
||||||
"privateResourceCreatePageSeeAll": "Посмотреть все частные ресурсы",
|
"privateResourceCreatePageSeeAll": "Посмотреть все частные ресурсы",
|
||||||
"privateResourceAllowIcmpPing": "Разрешить ICMP Ping",
|
"privateResourceAllowIcmpPing": "Разрешить ICMP Ping",
|
||||||
"privateResourceNetworkAccess": "Сетевой доступ",
|
"privateResourceNetworkAccess": "Сетевой доступ",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Добавить пользователей",
|
"editInternalResourceDialogAddUsers": "Добавить пользователей",
|
||||||
"editInternalResourceDialogAddClients": "Добавить клиентов",
|
"editInternalResourceDialogAddClients": "Добавить клиентов",
|
||||||
"editInternalResourceDialogDestinationLabel": "Пункт назначения",
|
"editInternalResourceDialogDestinationLabel": "Пункт назначения",
|
||||||
"editInternalResourceDialogDestinationDescription": "Выберите, где этот ресурс работает и как к нему получают доступ клиенты",
|
"editInternalResourceDialogDestinationDescription": "Настройте, как клиенты получают доступ к этому ресурсу.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Выбор нескольких сайтов позволяет обеспечить отказоустойчивую маршрутизацию и фейловер для высокой доступности.",
|
"internalResourceFormMultiSiteRoutingHelp": "Выбор нескольких сайтов позволяет обеспечить отказоустойчивую маршрутизацию и фейловер для высокой доступности.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Узнать больше",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Узнать больше",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Ограничьте доступ к определенным TCP/UDP-портам или разрешите/заблокируйте все порты.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Ограничьте доступ к определенным TCP/UDP-портам или разрешите/заблокируйте все порты.",
|
||||||
@@ -3679,7 +3681,7 @@
|
|||||||
"resourceLauncherSaveForEveryoneDescription": "Поделитесь этим видом со всеми членами организации. Если не отмечено, видимость только для вас.",
|
"resourceLauncherSaveForEveryoneDescription": "Поделитесь этим видом со всеми членами организации. Если не отмечено, видимость только для вас.",
|
||||||
"resourceLauncherMakePersonal": "Сделать личным",
|
"resourceLauncherMakePersonal": "Сделать личным",
|
||||||
"resourceLauncherFilter": "Фильтр",
|
"resourceLauncherFilter": "Фильтр",
|
||||||
"resourceLauncherFilterWithCount": "Filter, {count} applied",
|
"resourceLauncherFilterWithCount": "Фильтр, применено {count}",
|
||||||
"resourceLauncherSort": "Сортировать",
|
"resourceLauncherSort": "Сортировать",
|
||||||
"resourceLauncherSortAscending": "Сортировать по возрастанию",
|
"resourceLauncherSortAscending": "Сортировать по возрастанию",
|
||||||
"resourceLauncherSortDescending": "Сортировать по убыванию",
|
"resourceLauncherSortDescending": "Сортировать по убыванию",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "Erişim Jetonu Oluştur",
|
"actionGenerateAccessToken": "Erişim Jetonu Oluştur",
|
||||||
"actionDeleteAccessToken": "Erişim Jetonunu Sil",
|
"actionDeleteAccessToken": "Erişim Jetonunu Sil",
|
||||||
"actionListAccessTokens": "Erişim Jetonlarını Listele",
|
"actionListAccessTokens": "Erişim Jetonlarını Listele",
|
||||||
|
"actionCreateResourceSessionToken": "Kaynak Oturum Otomasyonu Oluştur",
|
||||||
"actionCreateResourceRule": "Kaynak Kuralı Oluştur",
|
"actionCreateResourceRule": "Kaynak Kuralı Oluştur",
|
||||||
"actionDeleteResourceRule": "Kaynak Kuralını Sil",
|
"actionDeleteResourceRule": "Kaynak Kuralını Sil",
|
||||||
"actionListResourceRules": "Kaynak Kurallarını Listele",
|
"actionListResourceRules": "Kaynak Kurallarını Listele",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "Kapat",
|
"createInternalResourceDialogClose": "Kapat",
|
||||||
"createInternalResourceDialogCreateClientResource": "Özel Kaynak Oluştur",
|
"createInternalResourceDialogCreateClientResource": "Özel Kaynak Oluştur",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "Seçilen siteye bağlı istemcilere erişilebilir olacak yeni bir kaynak oluşturun",
|
"createInternalResourceDialogCreateClientResourceDescription": "Seçilen siteye bağlı istemcilere erişilebilir olacak yeni bir kaynak oluşturun",
|
||||||
|
"privateResourceGeneralDescription": "Kaynağın adı, tanımlayıcı ve diğer genel ayarlarını yapılandırın.",
|
||||||
"privateResourceCreatePageSeeAll": "Tüm Özel Kaynakları Gör",
|
"privateResourceCreatePageSeeAll": "Tüm Özel Kaynakları Gör",
|
||||||
"privateResourceAllowIcmpPing": "ICMP Ping İzne Ver",
|
"privateResourceAllowIcmpPing": "ICMP Ping İzne Ver",
|
||||||
"privateResourceNetworkAccess": "Ağ Erişimi",
|
"privateResourceNetworkAccess": "Ağ Erişimi",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "Kullanıcılar Ekle",
|
"editInternalResourceDialogAddUsers": "Kullanıcılar Ekle",
|
||||||
"editInternalResourceDialogAddClients": "Müşteriler Ekle",
|
"editInternalResourceDialogAddClients": "Müşteriler Ekle",
|
||||||
"editInternalResourceDialogDestinationLabel": "Hedef",
|
"editInternalResourceDialogDestinationLabel": "Hedef",
|
||||||
"editInternalResourceDialogDestinationDescription": "Bu kaynağın nerede çalıştığını ve istemcilerin ona nasıl eriştiğini seçin",
|
"editInternalResourceDialogDestinationDescription": "Bu kaynağa müşterilerin nasıl erişeceğini yapılandırın.",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "Birden fazla site seçmek, yüksek kullanılabilirlik için dirençli yönlendirme ve yedeklik sağlar.",
|
"internalResourceFormMultiSiteRoutingHelp": "Birden fazla site seçmek, yüksek kullanılabilirlik için dirençli yönlendirme ve yedeklik sağlar.",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Daha fazla bilgi",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "Daha fazla bilgi",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "Belirtilen TCP/UDP portlarına erişimi kısıtlayın veya tüm portlara izin/engelleme verin.",
|
"editInternalResourceDialogPortRestrictionsDescription": "Belirtilen TCP/UDP portlarına erişimi kısıtlayın veya tüm portlara izin/engelleme verin.",
|
||||||
|
|||||||
+3
-1
@@ -1462,6 +1462,7 @@
|
|||||||
"actionGenerateAccessToken": "生成访问令牌",
|
"actionGenerateAccessToken": "生成访问令牌",
|
||||||
"actionDeleteAccessToken": "删除访问令牌",
|
"actionDeleteAccessToken": "删除访问令牌",
|
||||||
"actionListAccessTokens": "访问令牌",
|
"actionListAccessTokens": "访问令牌",
|
||||||
|
"actionCreateResourceSessionToken": "创建资源会话令牌",
|
||||||
"actionCreateResourceRule": "创建资源规则",
|
"actionCreateResourceRule": "创建资源规则",
|
||||||
"actionDeleteResourceRule": "删除资源规则",
|
"actionDeleteResourceRule": "删除资源规则",
|
||||||
"actionListResourceRules": "列出资源规则",
|
"actionListResourceRules": "列出资源规则",
|
||||||
@@ -2392,6 +2393,7 @@
|
|||||||
"createInternalResourceDialogClose": "关闭",
|
"createInternalResourceDialogClose": "关闭",
|
||||||
"createInternalResourceDialogCreateClientResource": "创建私有资源",
|
"createInternalResourceDialogCreateClientResource": "创建私有资源",
|
||||||
"createInternalResourceDialogCreateClientResourceDescription": "创建一个新资源只能为连接到组织的客户端访问",
|
"createInternalResourceDialogCreateClientResourceDescription": "创建一个新资源只能为连接到组织的客户端访问",
|
||||||
|
"privateResourceGeneralDescription": "配置名称、标识符和其他一般资源设置。",
|
||||||
"privateResourceCreatePageSeeAll": "查看所有私人资源",
|
"privateResourceCreatePageSeeAll": "查看所有私人资源",
|
||||||
"privateResourceAllowIcmpPing": "允许 ICMP Ping",
|
"privateResourceAllowIcmpPing": "允许 ICMP Ping",
|
||||||
"privateResourceNetworkAccess": "网络访问",
|
"privateResourceNetworkAccess": "网络访问",
|
||||||
@@ -3268,7 +3270,7 @@
|
|||||||
"editInternalResourceDialogAddUsers": "添加用户",
|
"editInternalResourceDialogAddUsers": "添加用户",
|
||||||
"editInternalResourceDialogAddClients": "添加客户端",
|
"editInternalResourceDialogAddClients": "添加客户端",
|
||||||
"editInternalResourceDialogDestinationLabel": "目标",
|
"editInternalResourceDialogDestinationLabel": "目标",
|
||||||
"editInternalResourceDialogDestinationDescription": "选择该资源运行位置及客户端访问方式",
|
"editInternalResourceDialogDestinationDescription": "配置客户端如何访问此资源。",
|
||||||
"internalResourceFormMultiSiteRoutingHelp": "选择多个站点可以实现高可用性的弹性路由和故障转移。",
|
"internalResourceFormMultiSiteRoutingHelp": "选择多个站点可以实现高可用性的弹性路由和故障转移。",
|
||||||
"internalResourceFormMultiSiteRoutingHelpLearnMore": "了解更多",
|
"internalResourceFormMultiSiteRoutingHelpLearnMore": "了解更多",
|
||||||
"editInternalResourceDialogPortRestrictionsDescription": "限制访问特定的TCP/UDP端口或允许/阻止所有端口。",
|
"editInternalResourceDialogPortRestrictionsDescription": "限制访问特定的TCP/UDP端口或允许/阻止所有端口。",
|
||||||
|
|||||||
@@ -1099,6 +1099,7 @@
|
|||||||
"actionGenerateAccessToken": "生成訪問令牌",
|
"actionGenerateAccessToken": "生成訪問令牌",
|
||||||
"actionDeleteAccessToken": "刪除訪問令牌",
|
"actionDeleteAccessToken": "刪除訪問令牌",
|
||||||
"actionListAccessTokens": "訪問令牌",
|
"actionListAccessTokens": "訪問令牌",
|
||||||
|
"actionCreateResourceSessionToken": "建立資源工作階段權杖",
|
||||||
"actionCreateResourceRule": "創建資源規則",
|
"actionCreateResourceRule": "創建資源規則",
|
||||||
"actionDeleteResourceRule": "刪除資源規則",
|
"actionDeleteResourceRule": "刪除資源規則",
|
||||||
"actionListResourceRules": "列出資源規則",
|
"actionListResourceRules": "列出資源規則",
|
||||||
|
|||||||
Generated
+4
-4
@@ -12,7 +12,7 @@
|
|||||||
"@asteasolutions/zod-to-openapi": "8.5.0",
|
"@asteasolutions/zod-to-openapi": "8.5.0",
|
||||||
"@aws-sdk/client-s3": "3.1056.0",
|
"@aws-sdk/client-s3": "3.1056.0",
|
||||||
"@devolutions/iron-remote-desktop": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-0.0.0.tgz",
|
"@devolutions/iron-remote-desktop": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-0.0.0.tgz",
|
||||||
"@devolutions/iron-remote-desktop-rdp": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-rdp-0.0.0.tgz",
|
"@devolutions/iron-remote-desktop-rdp": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-rdp-0.0.1.tgz",
|
||||||
"@headlessui/react": "2.2.10",
|
"@headlessui/react": "2.2.10",
|
||||||
"@hookform/resolvers": "5.4.0",
|
"@hookform/resolvers": "5.4.0",
|
||||||
"@monaco-editor/react": "4.7.0",
|
"@monaco-editor/react": "4.7.0",
|
||||||
@@ -1124,9 +1124,9 @@
|
|||||||
"integrity": "sha512-9o7PkCw9fdvGTPs0hgsUJG10QleGgcdsSCw1ekLpUOlVXtWCuiuPH+0bPDFhLWxqbVA+8pyVhwqdOI+t1T3TNA=="
|
"integrity": "sha512-9o7PkCw9fdvGTPs0hgsUJG10QleGgcdsSCw1ekLpUOlVXtWCuiuPH+0bPDFhLWxqbVA+8pyVhwqdOI+t1T3TNA=="
|
||||||
},
|
},
|
||||||
"node_modules/@devolutions/iron-remote-desktop-rdp": {
|
"node_modules/@devolutions/iron-remote-desktop-rdp": {
|
||||||
"version": "0.0.0",
|
"version": "0.0.1",
|
||||||
"resolved": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-rdp-0.0.0.tgz",
|
"resolved": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-rdp-0.0.1.tgz",
|
||||||
"integrity": "sha512-O0YVpOJDwUzekH3N2QKj+48WP+56wI0sj4VmaJkGoW5XgyAj2ONn2k3i+vk17Eavx+Vg6vAg3lwYRAOK4kKIDQ=="
|
"integrity": "sha512-sIHllJ6rJfAgClsUFjJfVGFjIxm6ZQRyGfinwCzHYgwnHAMFE+Kvm0YzR9tg811Fhjm5F6gNUSLAll+7Eh0Deg=="
|
||||||
},
|
},
|
||||||
"node_modules/@dotenvx/dotenvx": {
|
"node_modules/@dotenvx/dotenvx": {
|
||||||
"version": "1.69.1",
|
"version": "1.69.1",
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@asteasolutions/zod-to-openapi": "8.5.0",
|
"@asteasolutions/zod-to-openapi": "8.5.0",
|
||||||
"@devolutions/iron-remote-desktop": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-0.0.0.tgz",
|
"@devolutions/iron-remote-desktop": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-0.0.0.tgz",
|
||||||
"@devolutions/iron-remote-desktop-rdp": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-rdp-0.0.0.tgz",
|
"@devolutions/iron-remote-desktop-rdp": "https://static.pangolin.net/packages/devolutions-iron-remote-desktop-rdp-0.0.1.tgz",
|
||||||
"@aws-sdk/client-s3": "3.1056.0",
|
"@aws-sdk/client-s3": "3.1056.0",
|
||||||
"@headlessui/react": "2.2.10",
|
"@headlessui/react": "2.2.10",
|
||||||
"@hookform/resolvers": "5.4.0",
|
"@hookform/resolvers": "5.4.0",
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ export enum ActionsEnum {
|
|||||||
setResourceWhitelist = "setResourceWhitelist",
|
setResourceWhitelist = "setResourceWhitelist",
|
||||||
getResourceWhitelist = "getResourceWhitelist",
|
getResourceWhitelist = "getResourceWhitelist",
|
||||||
generateAccessToken = "generateAccessToken",
|
generateAccessToken = "generateAccessToken",
|
||||||
|
createResourceSessionToken = "createResourceSessionToken",
|
||||||
deleteAcessToken = "deleteAcessToken",
|
deleteAcessToken = "deleteAcessToken",
|
||||||
listAccessTokens = "listAccessTokens",
|
listAccessTokens = "listAccessTokens",
|
||||||
createResourceRule = "createResourceRule",
|
createResourceRule = "createResourceRule",
|
||||||
|
|||||||
@@ -200,7 +200,10 @@ export const resources = pgTable(
|
|||||||
authDaemonMode: varchar("authDaemonMode", { length: 32 })
|
authDaemonMode: varchar("authDaemonMode", { length: 32 })
|
||||||
.$type<"site" | "remote" | "native">()
|
.$type<"site" | "remote" | "native">()
|
||||||
.default("site"),
|
.default("site"),
|
||||||
authDaemonPort: integer("authDaemonPort").default(22123)
|
authDaemonPort: integer("authDaemonPort").default(22123),
|
||||||
|
status: varchar("status")
|
||||||
|
.$type<"pending" | "approved">()
|
||||||
|
.default("approved")
|
||||||
},
|
},
|
||||||
(t) => [
|
(t) => [
|
||||||
index("idx_resources_fulldomain")
|
index("idx_resources_fulldomain")
|
||||||
@@ -451,7 +454,10 @@ export const siteResources = pgTable(
|
|||||||
onDelete: "set null"
|
onDelete: "set null"
|
||||||
}),
|
}),
|
||||||
subdomain: varchar("subdomain"),
|
subdomain: varchar("subdomain"),
|
||||||
fullDomain: varchar("fullDomain")
|
fullDomain: varchar("fullDomain"),
|
||||||
|
status: varchar("status")
|
||||||
|
.$type<"pending" | "approved">()
|
||||||
|
.default("approved")
|
||||||
},
|
},
|
||||||
(t) => [index("idx_siteresources_orgid_niceid").on(t.orgId, t.niceId)]
|
(t) => [index("idx_siteresources_orgid_niceid").on(t.orgId, t.niceId)]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -209,7 +209,8 @@ export const resources = sqliteTable("resources", {
|
|||||||
authDaemonMode: text("authDaemonMode")
|
authDaemonMode: text("authDaemonMode")
|
||||||
.$type<"site" | "remote" | "native">()
|
.$type<"site" | "remote" | "native">()
|
||||||
.default("site"),
|
.default("site"),
|
||||||
authDaemonPort: integer("authDaemonPort").default(22123)
|
authDaemonPort: integer("authDaemonPort").default(22123),
|
||||||
|
status: text("status").$type<"pending" | "approved">().default("approved")
|
||||||
});
|
});
|
||||||
|
|
||||||
export const labels = sqliteTable("labels", {
|
export const labels = sqliteTable("labels", {
|
||||||
@@ -447,7 +448,8 @@ export const siteResources = sqliteTable("siteResources", {
|
|||||||
onDelete: "set null"
|
onDelete: "set null"
|
||||||
}),
|
}),
|
||||||
subdomain: text("subdomain"),
|
subdomain: text("subdomain"),
|
||||||
fullDomain: text("fullDomain")
|
fullDomain: text("fullDomain"),
|
||||||
|
status: text("status").$type<"pending" | "approved">().default("approved")
|
||||||
});
|
});
|
||||||
|
|
||||||
export const networks = sqliteTable("networks", {
|
export const networks = sqliteTable("networks", {
|
||||||
|
|||||||
@@ -34,12 +34,6 @@ import {
|
|||||||
rebuildClientAssociationsFromSiteResource,
|
rebuildClientAssociationsFromSiteResource,
|
||||||
waitForSiteResourceRebuildIdle
|
waitForSiteResourceRebuildIdle
|
||||||
} from "../rebuildClientAssociations";
|
} from "../rebuildClientAssociations";
|
||||||
import { build } from "@server/build";
|
|
||||||
import HttpCode from "@server/types/HttpCode";
|
|
||||||
import createHttpError from "http-errors";
|
|
||||||
import next from "next";
|
|
||||||
import { LimitId } from "../billing";
|
|
||||||
import { usageService } from "../billing/usageService";
|
|
||||||
|
|
||||||
type ApplyBlueprintArgs = {
|
type ApplyBlueprintArgs = {
|
||||||
orgId: string;
|
orgId: string;
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ import { createCertificate } from "#dynamic/routers/certificates/createCertifica
|
|||||||
import { isLicensedOrSubscribed } from "#dynamic/lib/isLicencedOrSubscribed";
|
import { isLicensedOrSubscribed } from "#dynamic/lib/isLicencedOrSubscribed";
|
||||||
import { tierMatrix } from "../billing/tierMatrix";
|
import { tierMatrix } from "../billing/tierMatrix";
|
||||||
import { build } from "@server/build";
|
import { build } from "@server/build";
|
||||||
import HttpCode from "@server/types/HttpCode";
|
|
||||||
import createHttpError from "http-errors";
|
|
||||||
import next from "next";
|
|
||||||
import { LimitId } from "../billing";
|
import { LimitId } from "../billing";
|
||||||
import { usageService } from "../billing/usageService";
|
import { usageService } from "../billing/usageService";
|
||||||
|
|
||||||
@@ -201,17 +198,19 @@ export async function updatePrivateResources(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let resourceStatusFromSite: "approved" | "pending" = "approved";
|
||||||
if (siteId && allSites.length === 0) {
|
if (siteId && allSites.length === 0) {
|
||||||
// only add if there are not provided sites
|
// only add if there are not provided sites
|
||||||
// Use the provided siteId directly, but verify it belongs to the org
|
// Use the provided siteId directly, but verify it belongs to the org
|
||||||
const [siteSingle] = await trx
|
const [siteSingle] = await trx
|
||||||
.select({ siteId: sites.siteId })
|
.select({ siteId: sites.siteId, status: sites.status })
|
||||||
.from(sites)
|
.from(sites)
|
||||||
.where(and(eq(sites.siteId, siteId), eq(sites.orgId, orgId)))
|
.where(and(eq(sites.siteId, siteId), eq(sites.orgId, orgId)))
|
||||||
.limit(1);
|
.limit(1);
|
||||||
if (siteSingle) {
|
if (siteSingle) {
|
||||||
allSites.push(siteSingle);
|
allSites.push(siteSingle);
|
||||||
}
|
}
|
||||||
|
resourceStatusFromSite = siteSingle.status ?? "approved";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allSites.length === 0) {
|
if (allSites.length === 0) {
|
||||||
@@ -220,6 +219,13 @@ export async function updatePrivateResources(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const resourceEnabled =
|
||||||
|
resourceData.enabled == undefined || resourceData.enabled == null
|
||||||
|
? true
|
||||||
|
: resourceStatusFromSite === "pending"
|
||||||
|
? false
|
||||||
|
: resourceData.enabled;
|
||||||
|
|
||||||
if (existingResource) {
|
if (existingResource) {
|
||||||
let domainInfo:
|
let domainInfo:
|
||||||
| { subdomain: string | null; domainId: string }
|
| { subdomain: string | null; domainId: string }
|
||||||
@@ -243,8 +249,7 @@ export async function updatePrivateResources(
|
|||||||
scheme: resourceData.scheme,
|
scheme: resourceData.scheme,
|
||||||
destination: resourceData.destination,
|
destination: resourceData.destination,
|
||||||
destinationPort: resourceData["destination-port"],
|
destinationPort: resourceData["destination-port"],
|
||||||
enabled: true, // hardcoded for now
|
enabled: resourceEnabled,
|
||||||
// enabled: resourceData.enabled ?? true,
|
|
||||||
alias: resourceData.alias || null,
|
alias: resourceData.alias || null,
|
||||||
disableIcmp:
|
disableIcmp:
|
||||||
resourceData["disable-icmp"] ||
|
resourceData["disable-icmp"] ||
|
||||||
@@ -263,7 +268,8 @@ export async function updatePrivateResources(
|
|||||||
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
||||||
authDaemonMode:
|
authDaemonMode:
|
||||||
resourceData["auth-daemon"]?.mode || "native",
|
resourceData["auth-daemon"]?.mode || "native",
|
||||||
authDaemonPort: resourceData["auth-daemon"]?.port || 22123
|
authDaemonPort: resourceData["auth-daemon"]?.port || 22123,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.where(
|
.where(
|
||||||
eq(
|
eq(
|
||||||
@@ -496,8 +502,7 @@ export async function updatePrivateResources(
|
|||||||
scheme: resourceData.scheme,
|
scheme: resourceData.scheme,
|
||||||
destination: resourceData.destination,
|
destination: resourceData.destination,
|
||||||
destinationPort: resourceData["destination-port"],
|
destinationPort: resourceData["destination-port"],
|
||||||
enabled: true, // hardcoded for now
|
enabled: resourceEnabled,
|
||||||
// enabled: resourceData.enabled ?? true,
|
|
||||||
alias: resourceData.alias || null,
|
alias: resourceData.alias || null,
|
||||||
aliasAddress: aliasAddress,
|
aliasAddress: aliasAddress,
|
||||||
disableIcmp:
|
disableIcmp:
|
||||||
@@ -517,7 +522,8 @@ export async function updatePrivateResources(
|
|||||||
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
||||||
authDaemonMode:
|
authDaemonMode:
|
||||||
resourceData["auth-daemon"]?.mode || "native",
|
resourceData["auth-daemon"]?.mode || "native",
|
||||||
authDaemonPort: resourceData["auth-daemon"]?.port || 22123
|
authDaemonPort: resourceData["auth-daemon"]?.port || 22123,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.returning();
|
.returning();
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import {
|
|||||||
rolePolicies,
|
rolePolicies,
|
||||||
roleResources,
|
roleResources,
|
||||||
roles,
|
roles,
|
||||||
|
Site,
|
||||||
sites,
|
sites,
|
||||||
Target,
|
Target,
|
||||||
TargetHealthCheck,
|
TargetHealthCheck,
|
||||||
@@ -74,19 +75,40 @@ export async function updatePublicResources(
|
|||||||
)) {
|
)) {
|
||||||
const targetsToUpdate: Target[] = [];
|
const targetsToUpdate: Target[] = [];
|
||||||
const healthchecksToUpdate: TargetHealthCheck[] = [];
|
const healthchecksToUpdate: TargetHealthCheck[] = [];
|
||||||
|
|
||||||
let resource: Resource;
|
let resource: Resource;
|
||||||
|
let resourceStatusFromSite: "approved" | "pending" = "approved";
|
||||||
|
let providedSite: Partial<Site> | undefined;
|
||||||
|
if (siteId) {
|
||||||
|
// Use the provided siteId directly, but verify it belongs to the org
|
||||||
|
[providedSite] = await trx
|
||||||
|
.select({
|
||||||
|
siteId: sites.siteId,
|
||||||
|
type: sites.type,
|
||||||
|
status: sites.status
|
||||||
|
})
|
||||||
|
.from(sites)
|
||||||
|
.where(and(eq(sites.siteId, siteId), eq(sites.orgId, orgId)))
|
||||||
|
.limit(1);
|
||||||
|
|
||||||
|
resourceStatusFromSite = providedSite?.status ?? "approved";
|
||||||
|
}
|
||||||
|
|
||||||
async function createTarget( // reusable function to create a target
|
async function createTarget( // reusable function to create a target
|
||||||
resourceId: number,
|
resourceId: number,
|
||||||
targetData: TargetData
|
targetData: TargetData
|
||||||
) {
|
) {
|
||||||
const targetSiteId = targetData.site;
|
const targetSiteId = targetData.site;
|
||||||
let site;
|
let site: Partial<Site> | undefined;
|
||||||
|
|
||||||
if (targetSiteId) {
|
if (targetSiteId) {
|
||||||
// Look up site by niceId
|
// Look up site by niceId
|
||||||
[site] = await trx
|
[site] = await trx
|
||||||
.select({ siteId: sites.siteId, type: sites.type })
|
.select({
|
||||||
|
siteId: sites.siteId,
|
||||||
|
type: sites.type,
|
||||||
|
status: sites.status
|
||||||
|
})
|
||||||
.from(sites)
|
.from(sites)
|
||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
@@ -95,15 +117,9 @@ export async function updatePublicResources(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
.limit(1);
|
.limit(1);
|
||||||
} else if (siteId) {
|
} else if (siteId && providedSite) {
|
||||||
// Use the provided siteId directly, but verify it belongs to the org
|
// Use the provided siteId directly, but verify it belongs to the org
|
||||||
[site] = await trx
|
site = providedSite;
|
||||||
.select({ siteId: sites.siteId, type: sites.type })
|
|
||||||
.from(sites)
|
|
||||||
.where(
|
|
||||||
and(eq(sites.siteId, siteId), eq(sites.orgId, orgId))
|
|
||||||
)
|
|
||||||
.limit(1);
|
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Target site is required`);
|
throw new Error(`Target site is required`);
|
||||||
}
|
}
|
||||||
@@ -139,7 +155,7 @@ export async function updatePublicResources(
|
|||||||
.insert(targets)
|
.insert(targets)
|
||||||
.values({
|
.values({
|
||||||
resourceId: resourceId,
|
resourceId: resourceId,
|
||||||
siteId: site.siteId,
|
siteId: site.siteId!,
|
||||||
ip: targetData.hostname,
|
ip: targetData.hostname,
|
||||||
mode: resourceData.mode as Target["mode"],
|
mode: resourceData.mode as Target["mode"],
|
||||||
method: targetData.method,
|
method: targetData.method,
|
||||||
@@ -172,7 +188,7 @@ export async function updatePublicResources(
|
|||||||
.insert(targetHealthCheck)
|
.insert(targetHealthCheck)
|
||||||
.values({
|
.values({
|
||||||
name: `${targetData.hostname}:${targetData.port}`,
|
name: `${targetData.hostname}:${targetData.port}`,
|
||||||
siteId: site.siteId,
|
siteId: site.siteId!,
|
||||||
targetId: newTarget.targetId,
|
targetId: newTarget.targetId,
|
||||||
orgId: orgId,
|
orgId: orgId,
|
||||||
hcEnabled: healthcheckData?.enabled || false,
|
hcEnabled: healthcheckData?.enabled || false,
|
||||||
@@ -230,7 +246,10 @@ export async function updatePublicResources(
|
|||||||
const resourceEnabled =
|
const resourceEnabled =
|
||||||
resourceData.enabled == undefined || resourceData.enabled == null
|
resourceData.enabled == undefined || resourceData.enabled == null
|
||||||
? true
|
? true
|
||||||
: resourceData.enabled;
|
: resourceStatusFromSite === "pending"
|
||||||
|
? false
|
||||||
|
: resourceData.enabled;
|
||||||
|
|
||||||
const resourceSsl =
|
const resourceSsl =
|
||||||
resourceData.ssl == undefined || resourceData.ssl == null
|
resourceData.ssl == undefined || resourceData.ssl == null
|
||||||
? true
|
? true
|
||||||
@@ -406,7 +425,8 @@ export async function updatePublicResources(
|
|||||||
? (resourceData["proxy-protocol-version"] ??
|
? (resourceData["proxy-protocol-version"] ??
|
||||||
1)
|
1)
|
||||||
: 1,
|
: 1,
|
||||||
resourcePolicyId: sharedPolicy.resourcePolicyId
|
resourcePolicyId: sharedPolicy.resourcePolicyId,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.where(
|
.where(
|
||||||
eq(
|
eq(
|
||||||
@@ -590,7 +610,8 @@ export async function updatePublicResources(
|
|||||||
authDaemonPort:
|
authDaemonPort:
|
||||||
resourceData["auth-daemon"]?.port || 22123,
|
resourceData["auth-daemon"]?.port || 22123,
|
||||||
resourcePolicyId: null,
|
resourcePolicyId: null,
|
||||||
defaultResourcePolicyId: inlinePolicyId
|
defaultResourcePolicyId: inlinePolicyId,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.where(
|
.where(
|
||||||
eq(
|
eq(
|
||||||
@@ -1131,6 +1152,7 @@ export async function updatePublicResources(
|
|||||||
.values({
|
.values({
|
||||||
orgId,
|
orgId,
|
||||||
niceId: resourceNiceId,
|
niceId: resourceNiceId,
|
||||||
|
status: resourceStatusFromSite,
|
||||||
name: resourceData.name || "Unnamed Resource",
|
name: resourceData.name || "Unnamed Resource",
|
||||||
mode: resourceData.mode,
|
mode: resourceData.mode,
|
||||||
proxyPort: ["http", "ssh", "rdp", "vnc"].includes(
|
proxyPort: ["http", "ssh", "rdp", "vnc"].includes(
|
||||||
|
|||||||
@@ -470,7 +470,7 @@ export const PrivateResourceSchema = z
|
|||||||
// proxyPort: z.int().positive().optional(),
|
// proxyPort: z.int().positive().optional(),
|
||||||
"destination-port": z.int().positive().optional(),
|
"destination-port": z.int().positive().optional(),
|
||||||
destination: z.string().min(1).optional(),
|
destination: z.string().min(1).optional(),
|
||||||
// enabled: z.boolean().default(true),
|
enabled: z.boolean().default(true),
|
||||||
"tcp-ports": portRangeStringSchema.optional().default("*"),
|
"tcp-ports": portRangeStringSchema.optional().default("*"),
|
||||||
"udp-ports": portRangeStringSchema.optional().default("*"),
|
"udp-ports": portRangeStringSchema.optional().default("*"),
|
||||||
"disable-icmp": z.boolean().optional().default(false),
|
"disable-icmp": z.boolean().optional().default(false),
|
||||||
|
|||||||
@@ -496,6 +496,7 @@ export function generateRemoteSubnets(
|
|||||||
): string[] {
|
): string[] {
|
||||||
const remoteSubnets = allSiteResources
|
const remoteSubnets = allSiteResources
|
||||||
.filter((sr) => {
|
.filter((sr) => {
|
||||||
|
if (!sr.enabled) return false;
|
||||||
if (!sr.destination) return false;
|
if (!sr.destination) return false;
|
||||||
|
|
||||||
if (sr.mode === "cidr") {
|
if (sr.mode === "cidr") {
|
||||||
@@ -530,6 +531,7 @@ export function generateAliasConfig(allSiteResources: SiteResource[]): Alias[] {
|
|||||||
return allSiteResources
|
return allSiteResources
|
||||||
.filter(
|
.filter(
|
||||||
(sr) =>
|
(sr) =>
|
||||||
|
sr.enabled &&
|
||||||
sr.aliasAddress &&
|
sr.aliasAddress &&
|
||||||
((sr.alias && (sr.mode == "host" || sr.mode == "ssh")) ||
|
((sr.alias && (sr.mode == "host" || sr.mode == "ssh")) ||
|
||||||
(sr.fullDomain && sr.mode == "http"))
|
(sr.fullDomain && sr.mode == "http"))
|
||||||
@@ -662,6 +664,13 @@ export async function generateSubnetProxyTargetV2(
|
|||||||
subnet: string | null;
|
subnet: string | null;
|
||||||
}[]
|
}[]
|
||||||
): Promise<SubnetProxyTargetV2[] | undefined> {
|
): Promise<SubnetProxyTargetV2[] | undefined> {
|
||||||
|
if (!siteResource.enabled) {
|
||||||
|
logger.debug(
|
||||||
|
`Site resource ${siteResource.siteResourceId} is disabled, skipping target generation.`
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (clients.length === 0) {
|
if (clients.length === 0) {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`No clients have access to site resource ${siteResource.siteResourceId}, skipping target generation.`
|
`No clients have access to site resource ${siteResource.siteResourceId}, skipping target generation.`
|
||||||
|
|||||||
@@ -1561,9 +1561,19 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
updatedSiteResource.udpPortRangeString ||
|
updatedSiteResource.udpPortRangeString ||
|
||||||
existingSiteResource.disableIcmp !==
|
existingSiteResource.disableIcmp !==
|
||||||
updatedSiteResource.disableIcmp);
|
updatedSiteResource.disableIcmp);
|
||||||
|
// Toggling enabled on/off doesn't change any of the fields above, but it
|
||||||
|
// does change whether targets/peer data should exist at all, so it needs
|
||||||
|
// to drive the same old->new diff machinery: going enabled->disabled
|
||||||
|
// diffs "real data" against "nothing" (a remove), and disabled->enabled
|
||||||
|
// diffs "nothing" against "real data" (an add). generateSubnetProxyTargetV2/
|
||||||
|
// generateRemoteSubnets/generateAliasConfig already return nothing for a
|
||||||
|
// disabled resource, so no other changes are needed here.
|
||||||
|
const enabledChanged =
|
||||||
|
existingSiteResource &&
|
||||||
|
existingSiteResource.enabled !== updatedSiteResource.enabled;
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`handleMessagingForUpdatedSiteResource: change flags destinationChanged=${Boolean(destinationChanged)} destinationPortChanged=${Boolean(destinationPortChanged)} aliasChanged=${Boolean(aliasChanged)} fullDomainChanged=${Boolean(fullDomainChanged)} sslChanged=${Boolean(sslChanged)} portRangesChanged=${Boolean(portRangesChanged)}`
|
`handleMessagingForUpdatedSiteResource: change flags destinationChanged=${Boolean(destinationChanged)} destinationPortChanged=${Boolean(destinationPortChanged)} aliasChanged=${Boolean(aliasChanged)} fullDomainChanged=${Boolean(fullDomainChanged)} sslChanged=${Boolean(sslChanged)} portRangesChanged=${Boolean(portRangesChanged)} enabledChanged=${Boolean(enabledChanged)}`
|
||||||
);
|
);
|
||||||
|
|
||||||
// if the existingSiteResource is undefined (new resource) we don't need to do anything here, the rebuild above handled it all
|
// if the existingSiteResource is undefined (new resource) we don't need to do anything here, the rebuild above handled it all
|
||||||
@@ -1574,14 +1584,16 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
fullDomainChanged ||
|
fullDomainChanged ||
|
||||||
sslChanged ||
|
sslChanged ||
|
||||||
portRangesChanged ||
|
portRangesChanged ||
|
||||||
destinationPortChanged
|
destinationPortChanged ||
|
||||||
|
enabledChanged
|
||||||
) {
|
) {
|
||||||
const shouldUpdateTargets =
|
const shouldUpdateTargets =
|
||||||
destinationChanged ||
|
destinationChanged ||
|
||||||
sslChanged ||
|
sslChanged ||
|
||||||
portRangesChanged ||
|
portRangesChanged ||
|
||||||
fullDomainChanged ||
|
fullDomainChanged ||
|
||||||
destinationPortChanged;
|
destinationPortChanged ||
|
||||||
|
enabledChanged;
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`handleMessagingForUpdatedSiteResource: entering unchanged-site update path shouldUpdateTargets=${shouldUpdateTargets}`
|
`handleMessagingForUpdatedSiteResource: entering unchanged-site update path shouldUpdateTargets=${shouldUpdateTargets}`
|
||||||
@@ -1657,20 +1669,22 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
peerDataUpdateBatch.push({
|
peerDataUpdateBatch.push({
|
||||||
clientId: client.clientId,
|
clientId: client.clientId,
|
||||||
siteId,
|
siteId,
|
||||||
remoteSubnets: destinationChanged
|
remoteSubnets:
|
||||||
? {
|
destinationChanged || enabledChanged
|
||||||
oldRemoteSubnets: !oldDestinationStillInUseBySite
|
? {
|
||||||
? generateRemoteSubnets([
|
oldRemoteSubnets:
|
||||||
existingSiteResource
|
!oldDestinationStillInUseBySite
|
||||||
])
|
? generateRemoteSubnets([
|
||||||
: [],
|
existingSiteResource
|
||||||
newRemoteSubnets: generateRemoteSubnets([
|
])
|
||||||
updatedSiteResource
|
: [],
|
||||||
])
|
newRemoteSubnets: generateRemoteSubnets([
|
||||||
}
|
updatedSiteResource
|
||||||
: undefined,
|
])
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
aliases:
|
aliases:
|
||||||
aliasChanged || fullDomainChanged // the full domain is sent down as an alias
|
aliasChanged || fullDomainChanged || enabledChanged // the full domain is sent down as an alias
|
||||||
? {
|
? {
|
||||||
oldAliases: generateAliasConfig([
|
oldAliases: generateAliasConfig([
|
||||||
existingSiteResource
|
existingSiteResource
|
||||||
|
|||||||
@@ -736,11 +736,14 @@ export async function verifyResourceSession(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If headerAuthExtendedCompatibility is activated but no clientHeaderAuth provided, force client to challenge
|
// If headerAuthExtendedCompatibility is activated but no clientHeaderAuth provided, force client to challenge.
|
||||||
|
// Skip the challenge when SSO is also enabled so browsers get the SSO redirect instead of a native Basic
|
||||||
|
// Auth dialog; clients that proactively send Authorization: Basic are still accepted above.
|
||||||
if (
|
if (
|
||||||
headerAuthExtendedCompatibility &&
|
headerAuthExtendedCompatibility &&
|
||||||
headerAuthExtendedCompatibility.extendedCompatibilityIsActivated &&
|
headerAuthExtendedCompatibility.extendedCompatibilityIsActivated &&
|
||||||
!clientHeaderAuth
|
!clientHeaderAuth &&
|
||||||
|
!sso
|
||||||
) {
|
) {
|
||||||
return headerAuthChallenged(res, redirectPath, resource.orgId);
|
return headerAuthChallenged(res, redirectPath, resource.orgId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -808,6 +808,16 @@ authenticated.post(
|
|||||||
accessToken.generateAccessToken
|
accessToken.generateAccessToken
|
||||||
);
|
);
|
||||||
|
|
||||||
|
authenticated.post(
|
||||||
|
`/resource/:resourceId/session-token`,
|
||||||
|
verifyApiKeyResourceAccess,
|
||||||
|
verifyApiKeyUserAccess,
|
||||||
|
verifyLimits,
|
||||||
|
verifyApiKeyHasAction(ActionsEnum.createResourceSessionToken),
|
||||||
|
logActionAudit(ActionsEnum.createResourceSessionToken),
|
||||||
|
resource.createResourceSessionToken
|
||||||
|
);
|
||||||
|
|
||||||
authenticated.delete(
|
authenticated.delete(
|
||||||
`/access-token/:accessTokenId`,
|
`/access-token/:accessTokenId`,
|
||||||
verifyApiKeyAccessTokenAccess,
|
verifyApiKeyAccessTokenAccess,
|
||||||
|
|||||||
@@ -157,7 +157,8 @@ async function resolveAccessibleIdsUncached(
|
|||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
eq(userResources.userId, userId),
|
eq(userResources.userId, userId),
|
||||||
eq(resources.orgId, orgId)
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
userRoleIds.length > 0
|
userRoleIds.length > 0
|
||||||
@@ -171,7 +172,8 @@ async function resolveAccessibleIdsUncached(
|
|||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
inArray(roleResources.roleId, userRoleIds),
|
inArray(roleResources.roleId, userRoleIds),
|
||||||
eq(resources.orgId, orgId)
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
: Promise.resolve([]),
|
: Promise.resolve([]),
|
||||||
@@ -183,7 +185,11 @@ async function resolveAccessibleIdsUncached(
|
|||||||
eq(effectiveResourcePolicyId, userPolicies.resourcePolicyId)
|
eq(effectiveResourcePolicyId, userPolicies.resourcePolicyId)
|
||||||
)
|
)
|
||||||
.where(
|
.where(
|
||||||
and(eq(userPolicies.userId, userId), eq(resources.orgId, orgId))
|
and(
|
||||||
|
eq(userPolicies.userId, userId),
|
||||||
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
|
)
|
||||||
),
|
),
|
||||||
userRoleIds.length > 0
|
userRoleIds.length > 0
|
||||||
? db
|
? db
|
||||||
@@ -199,21 +205,48 @@ async function resolveAccessibleIdsUncached(
|
|||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
inArray(rolePolicies.roleId, userRoleIds),
|
inArray(rolePolicies.roleId, userRoleIds),
|
||||||
eq(resources.orgId, orgId)
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
: Promise.resolve([]),
|
: Promise.resolve([]),
|
||||||
db
|
db
|
||||||
.select({ siteResourceId: userSiteResources.siteResourceId })
|
.select({ siteResourceId: userSiteResources.siteResourceId })
|
||||||
.from(userSiteResources)
|
.from(userSiteResources)
|
||||||
.where(eq(userSiteResources.userId, userId)),
|
.innerJoin(
|
||||||
|
siteResources,
|
||||||
|
eq(
|
||||||
|
userSiteResources.siteResourceId,
|
||||||
|
siteResources.siteResourceId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
eq(userSiteResources.userId, userId),
|
||||||
|
eq(siteResources.orgId, orgId),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
|
)
|
||||||
|
),
|
||||||
userRoleIds.length > 0
|
userRoleIds.length > 0
|
||||||
? db
|
? db
|
||||||
.select({
|
.select({
|
||||||
siteResourceId: roleSiteResources.siteResourceId
|
siteResourceId: roleSiteResources.siteResourceId
|
||||||
})
|
})
|
||||||
.from(roleSiteResources)
|
.from(roleSiteResources)
|
||||||
.where(inArray(roleSiteResources.roleId, userRoleIds))
|
.innerJoin(
|
||||||
|
siteResources,
|
||||||
|
eq(
|
||||||
|
roleSiteResources.siteResourceId,
|
||||||
|
siteResources.siteResourceId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
inArray(roleSiteResources.roleId, userRoleIds),
|
||||||
|
eq(siteResources.orgId, orgId),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
|
)
|
||||||
|
)
|
||||||
: Promise.resolve([])
|
: Promise.resolve([])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -365,6 +398,7 @@ async function filterPublicResourceIdsByTextSearch(
|
|||||||
inArray(resources.resourceId, resourceIds),
|
inArray(resources.resourceId, resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true),
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved"),
|
||||||
textMatch
|
textMatch
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -402,6 +436,7 @@ async function filterSiteResourceIdsByTextSearch(
|
|||||||
inArray(siteResources.siteResourceId, siteResourceIds),
|
inArray(siteResources.siteResourceId, siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true),
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved"),
|
||||||
textMatch
|
textMatch
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -503,7 +538,8 @@ async function listSiteGroups(
|
|||||||
const publicConditions = [
|
const publicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchPublic) {
|
if (searchPublic) {
|
||||||
publicConditions.push(searchPublic);
|
publicConditions.push(searchPublic);
|
||||||
@@ -558,7 +594,8 @@ async function listSiteGroups(
|
|||||||
const siteConditions = [
|
const siteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchSite) {
|
if (searchSite) {
|
||||||
siteConditions.push(searchSite);
|
siteConditions.push(searchSite);
|
||||||
@@ -621,7 +658,8 @@ async function listSiteGroups(
|
|||||||
const noSitePublicConditions = [
|
const noSitePublicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchPublic) {
|
if (searchPublic) {
|
||||||
noSitePublicConditions.push(searchPublic);
|
noSitePublicConditions.push(searchPublic);
|
||||||
@@ -655,7 +693,8 @@ async function listSiteGroups(
|
|||||||
const noSiteSiteConditions = [
|
const noSiteSiteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchSite) {
|
if (searchSite) {
|
||||||
noSiteSiteConditions.push(searchSite);
|
noSiteSiteConditions.push(searchSite);
|
||||||
@@ -746,7 +785,8 @@ async function listLabelGroups(
|
|||||||
const publicConditions = [
|
const publicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
const searchPublic = buildSearchConditionForPublic(query.query);
|
const searchPublic = buildSearchConditionForPublic(query.query);
|
||||||
if (searchPublic) {
|
if (searchPublic) {
|
||||||
@@ -810,7 +850,8 @@ async function listLabelGroups(
|
|||||||
const siteConditions = [
|
const siteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
const searchSite = buildSearchConditionForSiteResource(query.query);
|
const searchSite = buildSearchConditionForSiteResource(query.query);
|
||||||
if (searchSite) {
|
if (searchSite) {
|
||||||
@@ -997,6 +1038,7 @@ async function mapPublicResources(
|
|||||||
inArray(resources.resourceId, resourceIds),
|
inArray(resources.resourceId, resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true),
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved"),
|
||||||
siteIdFilter != null
|
siteIdFilter != null
|
||||||
? eq(sites.siteId, siteIdFilter)
|
? eq(sites.siteId, siteIdFilter)
|
||||||
: undefined
|
: undefined
|
||||||
@@ -1088,6 +1130,7 @@ async function mapSiteResources(
|
|||||||
inArray(siteResources.siteResourceId, siteResourceIds),
|
inArray(siteResources.siteResourceId, siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true),
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved"),
|
||||||
siteIdFilter != null
|
siteIdFilter != null
|
||||||
? eq(sites.siteId, siteIdFilter)
|
? eq(sites.siteId, siteIdFilter)
|
||||||
: undefined
|
: undefined
|
||||||
@@ -1382,7 +1425,8 @@ async function collectAccessibleSites(
|
|||||||
const publicConditions = [
|
const publicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
if (siteNameSearch) {
|
if (siteNameSearch) {
|
||||||
publicConditions.push(siteNameSearch);
|
publicConditions.push(siteNameSearch);
|
||||||
@@ -1422,7 +1466,8 @@ async function collectAccessibleSites(
|
|||||||
const siteConditions = [
|
const siteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
if (siteNameSearch) {
|
if (siteNameSearch) {
|
||||||
siteConditions.push(siteNameSearch);
|
siteConditions.push(siteNameSearch);
|
||||||
@@ -1476,6 +1521,7 @@ async function collectAccessibleLabels(
|
|||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true),
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved"),
|
||||||
eq(labels.orgId, orgId)
|
eq(labels.orgId, orgId)
|
||||||
];
|
];
|
||||||
if (labelNameSearch) {
|
if (labelNameSearch) {
|
||||||
@@ -1511,6 +1557,7 @@ async function collectAccessibleLabels(
|
|||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true),
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved"),
|
||||||
eq(labels.orgId, orgId)
|
eq(labels.orgId, orgId)
|
||||||
];
|
];
|
||||||
if (labelNameSearch) {
|
if (labelNameSearch) {
|
||||||
|
|||||||
@@ -148,7 +148,12 @@ export async function buildClientConfigurationForNewtClient(
|
|||||||
.from(siteResources)
|
.from(siteResources)
|
||||||
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
||||||
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
||||||
.where(eq(siteNetworks.siteId, siteId))
|
.where(
|
||||||
|
and(
|
||||||
|
eq(siteNetworks.siteId, siteId),
|
||||||
|
eq(siteResources.enabled, true)
|
||||||
|
)
|
||||||
|
)
|
||||||
.then((rows) => rows.map((r) => r.siteResources));
|
.then((rows) => rows.map((r) => r.siteResources));
|
||||||
|
|
||||||
const targetsToSend: SubnetProxyTargetV2[] = [];
|
const targetsToSend: SubnetProxyTargetV2[] = [];
|
||||||
|
|||||||
@@ -94,7 +94,13 @@ async function flushSitePingsToDb(): Promise<void> {
|
|||||||
const pingsToFlush = new Map(pendingSitePings);
|
const pingsToFlush = new Map(pendingSitePings);
|
||||||
pendingSitePings.clear();
|
pendingSitePings.clear();
|
||||||
|
|
||||||
const entries = Array.from(pingsToFlush.entries());
|
// Sort by id ascending so concurrent writers (other app replicas, or
|
||||||
|
// unrelated single-row updates elsewhere in the app) always acquire row
|
||||||
|
// locks in the same order. Without this, overlapping batches/updates
|
||||||
|
// that touch the same rows in different orders can deadlock each other.
|
||||||
|
const entries = Array.from(pingsToFlush.entries()).sort(
|
||||||
|
([a], [b]) => a - b
|
||||||
|
);
|
||||||
|
|
||||||
const BATCH_SIZE = 50;
|
const BATCH_SIZE = 50;
|
||||||
for (let i = 0; i < entries.length; i += BATCH_SIZE) {
|
for (let i = 0; i < entries.length; i += BATCH_SIZE) {
|
||||||
@@ -193,7 +199,11 @@ async function flushClientPingsToDb(): Promise<void> {
|
|||||||
|
|
||||||
// ── Flush client pings ─────────────────────────────────────────────
|
// ── Flush client pings ─────────────────────────────────────────────
|
||||||
if (pingsToFlush.size > 0) {
|
if (pingsToFlush.size > 0) {
|
||||||
const entries = Array.from(pingsToFlush.entries());
|
// Sort ascending for consistent lock ordering (see note in
|
||||||
|
// flushSitePingsToDb).
|
||||||
|
const entries = Array.from(pingsToFlush.entries()).sort(
|
||||||
|
([a], [b]) => a - b
|
||||||
|
);
|
||||||
|
|
||||||
const BATCH_SIZE = 50;
|
const BATCH_SIZE = 50;
|
||||||
for (let i = 0; i < entries.length; i += BATCH_SIZE) {
|
for (let i = 0; i < entries.length; i += BATCH_SIZE) {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
generateRemoteSubnets
|
generateRemoteSubnets
|
||||||
} from "@server/lib/ip";
|
} from "@server/lib/ip";
|
||||||
import logger from "@server/logger";
|
import logger from "@server/logger";
|
||||||
import { eq, inArray } from "drizzle-orm";
|
import { and, eq, inArray } from "drizzle-orm";
|
||||||
import { addPeer, deletePeer } from "../newt/peers";
|
import { addPeer, deletePeer } from "../newt/peers";
|
||||||
import config from "@server/lib/config";
|
import config from "@server/lib/config";
|
||||||
|
|
||||||
@@ -70,7 +70,13 @@ export async function buildSiteConfigurationForOlmClient(
|
|||||||
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
||||||
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
||||||
.where(
|
.where(
|
||||||
eq(clientSiteResourcesAssociationsCache.clientId, client.clientId)
|
and(
|
||||||
|
eq(
|
||||||
|
clientSiteResourcesAssociationsCache.clientId,
|
||||||
|
client.clientId
|
||||||
|
),
|
||||||
|
eq(siteResources.enabled, true)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const siteResourcesBySiteId = new Map<number, SiteResource[]>();
|
const siteResourcesBySiteId = new Map<number, SiteResource[]>();
|
||||||
|
|||||||
@@ -0,0 +1,133 @@
|
|||||||
|
import { Request, Response, NextFunction } from "express";
|
||||||
|
import { z } from "zod";
|
||||||
|
import { db } from "@server/db";
|
||||||
|
import { resources, users, userOrgs } from "@server/db";
|
||||||
|
import { eq, and } from "drizzle-orm";
|
||||||
|
import { createResourceSession } from "@server/auth/sessions/resource";
|
||||||
|
import HttpCode from "@server/types/HttpCode";
|
||||||
|
import createHttpError from "http-errors";
|
||||||
|
import { fromError } from "zod-validation-error";
|
||||||
|
import logger from "@server/logger";
|
||||||
|
import { createSession, generateSessionToken } from "@server/auth/sessions/app";
|
||||||
|
import { response } from "@server/lib/response";
|
||||||
|
|
||||||
|
const createResourceSessionTokenParams = z.strictObject({
|
||||||
|
resourceId: z.coerce.number().int().positive()
|
||||||
|
});
|
||||||
|
|
||||||
|
const createResourceSessionTokenBody = z.strictObject({
|
||||||
|
userId: z.string().nonempty(),
|
||||||
|
idpId: z.coerce.number().int().positive().optional()
|
||||||
|
});
|
||||||
|
|
||||||
|
export type CreateResourceSessionTokenResponse = {
|
||||||
|
requestToken: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export async function createResourceSessionToken(
|
||||||
|
req: Request,
|
||||||
|
res: Response,
|
||||||
|
next: NextFunction
|
||||||
|
): Promise<any> {
|
||||||
|
try {
|
||||||
|
const parsedParams = createResourceSessionTokenParams.safeParse(
|
||||||
|
req.params
|
||||||
|
);
|
||||||
|
if (!parsedParams.success) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
fromError(parsedParams.error).toString()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const parsedBody = createResourceSessionTokenBody.safeParse(req.body);
|
||||||
|
if (!parsedBody.success) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
fromError(parsedBody.error).toString()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const { resourceId } = parsedParams.data;
|
||||||
|
const { userId, idpId } = parsedBody.data;
|
||||||
|
|
||||||
|
const [resource] = await db
|
||||||
|
.select()
|
||||||
|
.from(resources)
|
||||||
|
.where(eq(resources.resourceId, resourceId))
|
||||||
|
.limit(1);
|
||||||
|
|
||||||
|
if (!resource) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.NOT_FOUND,
|
||||||
|
`Resource with ID ${resourceId} not found`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const candidates = await db
|
||||||
|
.select({ userId: users.userId })
|
||||||
|
.from(userOrgs)
|
||||||
|
.innerJoin(users, eq(userOrgs.userId, users.userId))
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
eq(users.userId, userId),
|
||||||
|
eq(userOrgs.orgId, resource.orgId)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (candidates.length === 0) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.NOT_FOUND,
|
||||||
|
`User not found in the organization that owns this resource`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (candidates.length > 1) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
"Multiple users match this username (external users from different identity providers). Specify idpId to disambiguate."
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const targetUserId = candidates[0].userId;
|
||||||
|
|
||||||
|
const appSessionToken = generateSessionToken();
|
||||||
|
const appSession = await createSession(appSessionToken, targetUserId);
|
||||||
|
|
||||||
|
const requestToken = generateSessionToken();
|
||||||
|
await createResourceSession({
|
||||||
|
resourceId,
|
||||||
|
token: requestToken,
|
||||||
|
userSessionId: appSession.sessionId,
|
||||||
|
isRequestToken: true,
|
||||||
|
expiresAt: Date.now() + 1000 * 30, // 30 seconds
|
||||||
|
sessionLength: 1000 * 30,
|
||||||
|
doNotExtend: true
|
||||||
|
});
|
||||||
|
|
||||||
|
logger.debug("Resource session token created successfully");
|
||||||
|
|
||||||
|
return response<CreateResourceSessionTokenResponse>(res, {
|
||||||
|
data: { requestToken },
|
||||||
|
success: true,
|
||||||
|
error: false,
|
||||||
|
message: "Resource session token created successfully",
|
||||||
|
status: HttpCode.OK
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
logger.error(error);
|
||||||
|
return next(
|
||||||
|
createHttpError(HttpCode.INTERNAL_SERVER_ERROR, "An error occurred")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,6 +17,7 @@ export * from "./getResourceWhitelist";
|
|||||||
export * from "./authWithWhitelist";
|
export * from "./authWithWhitelist";
|
||||||
export * from "./authWithAccessToken";
|
export * from "./authWithAccessToken";
|
||||||
export * from "./getExchangeToken";
|
export * from "./getExchangeToken";
|
||||||
|
export * from "./createResourceSessionToken";
|
||||||
export * from "./createResourceRule";
|
export * from "./createResourceRule";
|
||||||
export * from "./deleteResourceRule";
|
export * from "./deleteResourceRule";
|
||||||
export * from "./listResourceRules";
|
export * from "./listResourceRules";
|
||||||
|
|||||||
@@ -138,6 +138,15 @@ const listResourcesSchema = z.strictObject({
|
|||||||
description:
|
description:
|
||||||
"When set, only resources that have at least one target on this site are returned"
|
"When set, only resources that have at least one target on this site are returned"
|
||||||
}),
|
}),
|
||||||
|
status: z
|
||||||
|
.enum(["pending", "approved"])
|
||||||
|
.optional()
|
||||||
|
.catch(undefined)
|
||||||
|
.openapi({
|
||||||
|
type: "string",
|
||||||
|
enum: ["pending", "approved"],
|
||||||
|
description: "Filter by resource status"
|
||||||
|
}),
|
||||||
labels: z
|
labels: z
|
||||||
.preprocess((val) => {
|
.preprocess((val) => {
|
||||||
if (val === undefined || val === null || val === "") {
|
if (val === undefined || val === null || val === "") {
|
||||||
@@ -451,6 +460,7 @@ export async function listResources(
|
|||||||
sort_by,
|
sort_by,
|
||||||
order,
|
order,
|
||||||
siteId,
|
siteId,
|
||||||
|
status,
|
||||||
labels: labelFilter
|
labels: labelFilter
|
||||||
} = parsedQuery.data;
|
} = parsedQuery.data;
|
||||||
|
|
||||||
@@ -660,6 +670,10 @@ export async function listResources(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof status !== "undefined") {
|
||||||
|
conditions.push(eq(resources.status, status));
|
||||||
|
}
|
||||||
|
|
||||||
if (siteId != null) {
|
if (siteId != null) {
|
||||||
const resourcesWithSite = db
|
const resourcesWithSite = db
|
||||||
.select({ resourceId: targets.resourceId })
|
.select({ resourceId: targets.resourceId })
|
||||||
|
|||||||
@@ -45,18 +45,19 @@ function userResourceAliasesCacheKey(
|
|||||||
page: number,
|
page: number,
|
||||||
pageSize: number,
|
pageSize: number,
|
||||||
includeLabels: boolean,
|
includeLabels: boolean,
|
||||||
labelFilter: string[]
|
labelFilter: string[],
|
||||||
|
status?: "pending" | "approved"
|
||||||
) {
|
) {
|
||||||
const labelsKey =
|
const labelsKey =
|
||||||
labelFilter.length > 0 ? labelFilter.slice().sort().join(",") : "all";
|
labelFilter.length > 0 ? labelFilter.slice().sort().join(",") : "all";
|
||||||
return `userResourceAliases:${orgId}:${userId}:${page}:${pageSize}:${includeLabels ? "labels" : "plain"}:${labelsKey}`;
|
return `userResourceAliases:${orgId}:${userId}:${page}:${pageSize}:${includeLabels ? "labels" : "plain"}:${labelsKey}:${status ?? "all"}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const listUserResourceAliasesParamsSchema = z.strictObject({
|
const listUserResourceAliasesParamsSchema = z.strictObject({
|
||||||
orgId: z.string()
|
orgId: z.string()
|
||||||
});
|
});
|
||||||
|
|
||||||
const listUserResourceAliasesQuerySchema = z.strictObject({
|
const listUserResourceAliasesQuerySchema = z.object({
|
||||||
pageSize: z.coerce
|
pageSize: z.coerce
|
||||||
.number<string>()
|
.number<string>()
|
||||||
.int()
|
.int()
|
||||||
@@ -96,7 +97,16 @@ const listUserResourceAliasesQuerySchema = z.strictObject({
|
|||||||
type: "array",
|
type: "array",
|
||||||
description:
|
description:
|
||||||
"Filter by resource labels. A resource matches when it has any of the given labels (OR)."
|
"Filter by resource labels. A resource matches when it has any of the given labels (OR)."
|
||||||
})
|
}),
|
||||||
|
status: z
|
||||||
|
.enum(["pending", "approved"])
|
||||||
|
.optional()
|
||||||
|
.catch(undefined)
|
||||||
|
.openapi({
|
||||||
|
type: "string",
|
||||||
|
enum: ["pending", "approved"],
|
||||||
|
description: "Filter by site resource status"
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
export type UserResourceAliasItem = {
|
export type UserResourceAliasItem = {
|
||||||
@@ -130,7 +140,8 @@ export async function listUserResourceAliases(
|
|||||||
page,
|
page,
|
||||||
pageSize,
|
pageSize,
|
||||||
includeLabels,
|
includeLabels,
|
||||||
labels: labelFilter
|
labels: labelFilter,
|
||||||
|
status
|
||||||
} = parsedQuery.data;
|
} = parsedQuery.data;
|
||||||
|
|
||||||
const parsedParams = listUserResourceAliasesParamsSchema.safeParse(
|
const parsedParams = listUserResourceAliasesParamsSchema.safeParse(
|
||||||
@@ -172,7 +183,8 @@ export async function listUserResourceAliases(
|
|||||||
page,
|
page,
|
||||||
pageSize,
|
pageSize,
|
||||||
includeLabels,
|
includeLabels,
|
||||||
labelFilter ?? []
|
labelFilter ?? [],
|
||||||
|
status
|
||||||
);
|
);
|
||||||
const cachedData: ListUserResourceAliasesResponse | undefined =
|
const cachedData: ListUserResourceAliasesResponse | undefined =
|
||||||
await cache.get(cacheKey);
|
await cache.get(cacheKey);
|
||||||
@@ -257,6 +269,10 @@ export async function listUserResourceAliases(
|
|||||||
inArray(siteResources.siteResourceId, accessibleSiteResourceIds)
|
inArray(siteResources.siteResourceId, accessibleSiteResourceIds)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (typeof status !== "undefined") {
|
||||||
|
whereConditions.push(eq(siteResources.status, status));
|
||||||
|
}
|
||||||
|
|
||||||
if (labelFilter && labelFilter.length > 0) {
|
if (labelFilter && labelFilter.length > 0) {
|
||||||
whereConditions.push(
|
whereConditions.push(
|
||||||
inArray(
|
inArray(
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ const createSiteResourceSchema = z
|
|||||||
siteId: z.number().int().positive().optional(), // DEPRECATED: for backward compatibility, we will convert this to siteIds array if provided
|
siteId: z.number().int().positive().optional(), // DEPRECATED: for backward compatibility, we will convert this to siteIds array if provided
|
||||||
destinationPort: z.int().positive().optional(),
|
destinationPort: z.int().positive().optional(),
|
||||||
destination: z.string().min(1).nullish(),
|
destination: z.string().min(1).nullish(),
|
||||||
enabled: z.boolean().default(true),
|
|
||||||
alias: z
|
alias: z
|
||||||
.string()
|
.string()
|
||||||
.regex(
|
.regex(
|
||||||
@@ -275,7 +274,6 @@ export async function createSiteResource(
|
|||||||
scheme,
|
scheme,
|
||||||
destinationPort,
|
destinationPort,
|
||||||
destination,
|
destination,
|
||||||
enabled,
|
|
||||||
ssl,
|
ssl,
|
||||||
alias,
|
alias,
|
||||||
userIds,
|
userIds,
|
||||||
@@ -539,7 +537,6 @@ export async function createSiteResource(
|
|||||||
destination: destination, // the ssh can be null
|
destination: destination, // the ssh can be null
|
||||||
scheme,
|
scheme,
|
||||||
destinationPort,
|
destinationPort,
|
||||||
enabled,
|
|
||||||
alias: alias ? alias.trim() : null,
|
alias: alias ? alias.trim() : null,
|
||||||
aliasAddress,
|
aliasAddress,
|
||||||
tcpPortRangeString: tcpPortRangeStringAdjusted,
|
tcpPortRangeString: tcpPortRangeStringAdjusted,
|
||||||
|
|||||||
@@ -86,6 +86,15 @@ const listAllSiteResourcesByOrgQuerySchema = z.strictObject({
|
|||||||
description:
|
description:
|
||||||
"When set, only site resources associated with this site (via network) are returned"
|
"When set, only site resources associated with this site (via network) are returned"
|
||||||
}),
|
}),
|
||||||
|
status: z
|
||||||
|
.enum(["pending", "approved"])
|
||||||
|
.optional()
|
||||||
|
.catch(undefined)
|
||||||
|
.openapi({
|
||||||
|
type: "string",
|
||||||
|
enum: ["pending", "approved"],
|
||||||
|
description: "Filter by site resource status"
|
||||||
|
}),
|
||||||
labels: z
|
labels: z
|
||||||
.preprocess((val) => {
|
.preprocess((val) => {
|
||||||
if (val === undefined || val === null || val === "") {
|
if (val === undefined || val === null || val === "") {
|
||||||
@@ -283,6 +292,7 @@ export async function listAllSiteResourcesByOrg(
|
|||||||
sort_by,
|
sort_by,
|
||||||
order,
|
order,
|
||||||
siteId,
|
siteId,
|
||||||
|
status,
|
||||||
labels: labelFilter
|
labels: labelFilter
|
||||||
} = parsedQuery.data;
|
} = parsedQuery.data;
|
||||||
|
|
||||||
@@ -315,6 +325,10 @@ export async function listAllSiteResourcesByOrg(
|
|||||||
conditions.push(eq(siteResources.mode, mode));
|
conditions.push(eq(siteResources.mode, mode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof status !== "undefined") {
|
||||||
|
conditions.push(eq(siteResources.status, status));
|
||||||
|
}
|
||||||
|
|
||||||
if (labelFilter && labelFilter.length > 0) {
|
if (labelFilter && labelFilter.length > 0) {
|
||||||
conditions.push(
|
conditions.push(
|
||||||
inArray(
|
inArray(
|
||||||
|
|||||||
@@ -47,6 +47,15 @@ const listSiteResourcesQuerySchema = z.strictObject({
|
|||||||
enum: ["asc", "desc"],
|
enum: ["asc", "desc"],
|
||||||
default: "asc",
|
default: "asc",
|
||||||
description: "Sort order"
|
description: "Sort order"
|
||||||
|
}),
|
||||||
|
status: z
|
||||||
|
.enum(["pending", "approved"])
|
||||||
|
.optional()
|
||||||
|
.catch(undefined)
|
||||||
|
.openapi({
|
||||||
|
type: "string",
|
||||||
|
enum: ["pending", "approved"],
|
||||||
|
description: "Filter by site resource status"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -110,7 +119,7 @@ export async function listSiteResources(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { siteId, orgId } = parsedParams.data;
|
const { siteId, orgId } = parsedParams.data;
|
||||||
const { limit, offset, sort_by, order } = parsedQuery.data;
|
const { limit, offset, sort_by, order, status } = parsedQuery.data;
|
||||||
|
|
||||||
// Verify the site exists and belongs to the org
|
// Verify the site exists and belongs to the org
|
||||||
const site = await db
|
const site = await db
|
||||||
@@ -124,6 +133,15 @@ export async function listSiteResources(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get site resources by joining networks to siteResources via siteNetworks
|
// Get site resources by joining networks to siteResources via siteNetworks
|
||||||
|
const conditions = [
|
||||||
|
eq(siteNetworks.siteId, siteId),
|
||||||
|
eq(siteResources.orgId, orgId)
|
||||||
|
];
|
||||||
|
|
||||||
|
if (typeof status !== "undefined") {
|
||||||
|
conditions.push(eq(siteResources.status, status));
|
||||||
|
}
|
||||||
|
|
||||||
const siteResourcesList = await db
|
const siteResourcesList = await db
|
||||||
.select()
|
.select()
|
||||||
.from(siteNetworks)
|
.from(siteNetworks)
|
||||||
@@ -132,12 +150,7 @@ export async function listSiteResources(
|
|||||||
siteResources,
|
siteResources,
|
||||||
eq(siteResources.networkId, networks.networkId)
|
eq(siteResources.networkId, networks.networkId)
|
||||||
)
|
)
|
||||||
.where(
|
.where(and(...conditions))
|
||||||
and(
|
|
||||||
eq(siteNetworks.siteId, siteId),
|
|
||||||
eq(siteResources.orgId, orgId)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.orderBy(
|
.orderBy(
|
||||||
sort_by
|
sort_by
|
||||||
? order === "asc"
|
? order === "asc"
|
||||||
|
|||||||
@@ -152,6 +152,11 @@ const updateSiteResourceSchema = z
|
|||||||
)
|
)
|
||||||
.refine(
|
.refine(
|
||||||
(data) => {
|
(data) => {
|
||||||
|
// this is a partial update; only enforce destination when the
|
||||||
|
// caller is actually changing mode or destination
|
||||||
|
if (data.mode === undefined && data.destination === undefined) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// destination is only optional for ssh mode with native authDaemonMode
|
// destination is only optional for ssh mode with native authDaemonMode
|
||||||
if (data.mode === "ssh" && data.authDaemonMode === "native") {
|
if (data.mode === "ssh" && data.authDaemonMode === "native") {
|
||||||
return true;
|
return true;
|
||||||
@@ -411,8 +416,10 @@ export async function updateSiteResource(
|
|||||||
: [];
|
: [];
|
||||||
const existingSiteIds = existingSiteNetworks.map((sn) => sn.siteId);
|
const existingSiteIds = existingSiteNetworks.map((sn) => sn.siteId);
|
||||||
|
|
||||||
let fullDomain: string | null = null;
|
// undefined means "leave unchanged" (partial update); only nulled out
|
||||||
let finalSubdomain: string | null = null;
|
// when the mode is explicitly being changed away from http
|
||||||
|
let fullDomain: string | null | undefined = undefined;
|
||||||
|
let finalSubdomain: string | null | undefined = undefined;
|
||||||
if (domainId) {
|
if (domainId) {
|
||||||
// Validate domain and construct full domain
|
// Validate domain and construct full domain
|
||||||
const domainResult = await validateAndConstructDomain(
|
const domainResult = await validateAndConstructDomain(
|
||||||
@@ -448,6 +455,11 @@ export async function updateSiteResource(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
} else if (mode !== undefined && mode !== "http") {
|
||||||
|
// mode is explicitly changing away from http, so the resource
|
||||||
|
// can no longer have a domain associated with it
|
||||||
|
fullDomain = null;
|
||||||
|
finalSubdomain = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the alias is unique within the org if provided
|
// make sure the alias is unique within the org if provided
|
||||||
@@ -516,15 +528,28 @@ export async function updateSiteResource(
|
|||||||
destination: destination,
|
destination: destination,
|
||||||
destinationPort: destinationPort,
|
destinationPort: destinationPort,
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
alias: alias ? alias.trim() : null,
|
alias:
|
||||||
|
alias !== undefined
|
||||||
|
? alias
|
||||||
|
? alias.trim()
|
||||||
|
: null
|
||||||
|
: mode !== undefined &&
|
||||||
|
mode !== "host" &&
|
||||||
|
mode !== "ssh"
|
||||||
|
? null
|
||||||
|
: undefined,
|
||||||
tcpPortRangeString: tcpPortRangeStringAdjusted,
|
tcpPortRangeString: tcpPortRangeStringAdjusted,
|
||||||
udpPortRangeString:
|
udpPortRangeString:
|
||||||
mode == "http" || mode == "ssh"
|
mode == "http" || mode == "ssh"
|
||||||
? ""
|
? ""
|
||||||
: udpPortRangeString,
|
: udpPortRangeString,
|
||||||
disableIcmp:
|
disableIcmp:
|
||||||
disableIcmp ||
|
mode !== undefined
|
||||||
(mode == "http" || mode == "ssh" ? true : false),
|
? disableIcmp ||
|
||||||
|
(mode == "http" || mode == "ssh"
|
||||||
|
? true
|
||||||
|
: false)
|
||||||
|
: disableIcmp,
|
||||||
domainId,
|
domainId,
|
||||||
subdomain: finalSubdomain,
|
subdomain: finalSubdomain,
|
||||||
fullDomain,
|
fullDomain,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import { useActionState, useEffect } from "react";
|
import { useActionState, useEffect } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { PrivateResourceAccessFields } from "../../PrivateResourceAccessFields";
|
import { PrivateResourceAccessFields } from "@app/components/PrivateResourceAccessFields";
|
||||||
|
|
||||||
export default function PrivateResourceAccessPage() {
|
export default function PrivateResourceAccessPage() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ import { useTranslations } from "next-intl";
|
|||||||
import { useActionState, useMemo, useState } from "react";
|
import { useActionState, useMemo, useState } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { PrivateResourceSitesField } from "../../PrivateResourceSitesField";
|
import { PrivateResourceSitesField } from "@app/components/PrivateResourceSitesField";
|
||||||
import { PrivateResourceCidrDestinationField } from "../../PrivateResourceDestinationFields";
|
import { PrivateResourceCidrDestinationField } from "@app/components/PrivateResourceDestinationFields";
|
||||||
import { PrivateResourcePortRanges } from "../../PrivateResourcePortRanges";
|
import { PrivateResourcePortRanges } from "@app/components/PrivateResourcePortRanges";
|
||||||
import { buildSelectedSitesForResource } from "../../privateResourceUtils";
|
import { useSaveSiteResource } from "@app/hooks/useSaveSiteResource";
|
||||||
import { asAnyControl, asAnySetValue } from "../../formControlUtils";
|
import { asAnyControl, asAnySetValue } from "@app/lib/formControlUtils";
|
||||||
import { useSaveSiteResource } from "../../useSaveSiteResource";
|
import { buildSelectedSitesForResource } from "@app/lib/privateResourceUtils";
|
||||||
|
|
||||||
export default function PrivateResourceCidrPage() {
|
export default function PrivateResourceCidrPage() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
|||||||
@@ -16,19 +16,21 @@ import { Button } from "@app/components/ui/button";
|
|||||||
import {
|
import {
|
||||||
Form,
|
Form,
|
||||||
FormControl,
|
FormControl,
|
||||||
|
FormDescription,
|
||||||
FormField,
|
FormField,
|
||||||
FormItem,
|
FormItem,
|
||||||
FormLabel,
|
FormLabel,
|
||||||
FormMessage
|
FormMessage
|
||||||
} from "@app/components/ui/form";
|
} from "@app/components/ui/form";
|
||||||
import { Input } from "@app/components/ui/input";
|
import { Input } from "@app/components/ui/input";
|
||||||
|
import { SwitchInput } from "@app/components/SwitchInput";
|
||||||
import { createGeneralFormSchema } from "@app/lib/privateResourceForm";
|
import { createGeneralFormSchema } from "@app/lib/privateResourceForm";
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import { useActionState, useMemo } from "react";
|
import { useActionState, useMemo } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { useSaveSiteResource } from "../../useSaveSiteResource";
|
import { useSaveSiteResource } from "@app/hooks/useSaveSiteResource";
|
||||||
|
|
||||||
export default function PrivateResourceGeneralPage() {
|
export default function PrivateResourceGeneralPage() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
@@ -41,7 +43,8 @@ export default function PrivateResourceGeneralPage() {
|
|||||||
resolver: zodResolver(formSchema),
|
resolver: zodResolver(formSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
name: siteResource.name,
|
name: siteResource.name,
|
||||||
niceId: siteResource.niceId
|
niceId: siteResource.niceId,
|
||||||
|
enabled: siteResource.enabled
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -52,7 +55,8 @@ export default function PrivateResourceGeneralPage() {
|
|||||||
const data = form.getValues();
|
const data = form.getValues();
|
||||||
await save({
|
await save({
|
||||||
name: data.name,
|
name: data.name,
|
||||||
niceId: data.niceId
|
niceId: data.niceId,
|
||||||
|
enabled: data.enabled
|
||||||
});
|
});
|
||||||
}, null);
|
}, null);
|
||||||
|
|
||||||
@@ -64,7 +68,7 @@ export default function PrivateResourceGeneralPage() {
|
|||||||
{t("resourceGeneral")}
|
{t("resourceGeneral")}
|
||||||
</SettingsSectionTitle>
|
</SettingsSectionTitle>
|
||||||
<SettingsSectionDescription>
|
<SettingsSectionDescription>
|
||||||
{t("resourceGeneralDescription")}
|
{t("privateResourceGeneralDescription")}
|
||||||
</SettingsSectionDescription>
|
</SettingsSectionDescription>
|
||||||
</SettingsSectionHeader>
|
</SettingsSectionHeader>
|
||||||
|
|
||||||
@@ -76,6 +80,42 @@ export default function PrivateResourceGeneralPage() {
|
|||||||
id="private-resource-general-form"
|
id="private-resource-general-form"
|
||||||
>
|
>
|
||||||
<SettingsFormGrid>
|
<SettingsFormGrid>
|
||||||
|
<SettingsFormCell span="full">
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="enabled"
|
||||||
|
render={() => (
|
||||||
|
<FormItem>
|
||||||
|
<FormControl>
|
||||||
|
<SwitchInput
|
||||||
|
id="enable-resource"
|
||||||
|
defaultChecked={
|
||||||
|
siteResource.enabled
|
||||||
|
}
|
||||||
|
label={t(
|
||||||
|
"resourceEnable"
|
||||||
|
)}
|
||||||
|
onCheckedChange={(
|
||||||
|
val
|
||||||
|
) =>
|
||||||
|
form.setValue(
|
||||||
|
"enabled",
|
||||||
|
val
|
||||||
|
)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
<FormDescription>
|
||||||
|
{t(
|
||||||
|
"disabledResourceDescription"
|
||||||
|
)}
|
||||||
|
</FormDescription>
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</SettingsFormCell>
|
||||||
|
|
||||||
<SettingsFormCell span="half">
|
<SettingsFormCell span="half">
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
|
|||||||
@@ -20,16 +20,16 @@ import { useTranslations } from "next-intl";
|
|||||||
import { useActionState, useMemo, useState } from "react";
|
import { useActionState, useMemo, useState } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { PrivateResourceSitesField } from "../../PrivateResourceSitesField";
|
import { PrivateResourceSitesField } from "@app/components/PrivateResourceSitesField";
|
||||||
import { PrivateResourceHostDestinationFields } from "../../PrivateResourceDestinationFields";
|
import { PrivateResourceHostDestinationFields } from "@app/components/PrivateResourceDestinationFields";
|
||||||
import { PrivateResourcePortRanges } from "../../PrivateResourcePortRanges";
|
import { PrivateResourcePortRanges } from "@app/components/PrivateResourcePortRanges";
|
||||||
import { buildSelectedSitesForResource } from "../../privateResourceUtils";
|
import { useSaveSiteResource } from "@app/hooks/useSaveSiteResource";
|
||||||
import {
|
import {
|
||||||
asAnyControl,
|
asAnyControl,
|
||||||
asAnySetValue,
|
asAnySetValue,
|
||||||
asAnyWatch
|
asAnyWatch
|
||||||
} from "../../formControlUtils";
|
} from "@app/lib/formControlUtils";
|
||||||
import { useSaveSiteResource } from "../../useSaveSiteResource";
|
import { buildSelectedSitesForResource } from "@app/lib/privateResourceUtils";
|
||||||
|
|
||||||
export default function PrivateResourceHostPage() {
|
export default function PrivateResourceHostPage() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
|||||||
@@ -22,15 +22,15 @@ import { useTranslations } from "next-intl";
|
|||||||
import { useActionState, useMemo, useState } from "react";
|
import { useActionState, useMemo, useState } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { PrivateResourceSitesField } from "../../PrivateResourceSitesField";
|
import { PrivateResourceSitesField } from "@app/components/PrivateResourceSitesField";
|
||||||
import { PrivateResourceHttpFields } from "../../PrivateResourceHttpFields";
|
import { PrivateResourceHttpFields } from "@app/components/PrivateResourceHttpFields";
|
||||||
import { buildSelectedSitesForResource } from "../../privateResourceUtils";
|
import { useSaveSiteResource } from "@app/hooks/useSaveSiteResource";
|
||||||
import {
|
import {
|
||||||
asAnyControl,
|
asAnyControl,
|
||||||
asAnySetValue,
|
asAnySetValue,
|
||||||
asAnyWatch
|
asAnyWatch
|
||||||
} from "../../formControlUtils";
|
} from "@app/lib/formControlUtils";
|
||||||
import { useSaveSiteResource } from "../../useSaveSiteResource";
|
import { buildSelectedSitesForResource } from "@app/lib/privateResourceUtils";
|
||||||
|
|
||||||
export default function PrivateResourceHttpPage() {
|
export default function PrivateResourceHttpPage() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
|||||||
@@ -26,15 +26,15 @@ import { useTranslations } from "next-intl";
|
|||||||
import { useActionState, useMemo, useState } from "react";
|
import { useActionState, useMemo, useState } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { PrivateResourceSshFields } from "../../PrivateResourceSshFields";
|
import { PrivateResourceSshFields } from "@app/components/PrivateResourceSshFields";
|
||||||
import { buildSelectedSitesForResource } from "../../privateResourceUtils";
|
import type { Selectedsite } from "@app/components/site-selector";
|
||||||
|
import { useSaveSiteResource } from "@app/hooks/useSaveSiteResource";
|
||||||
import {
|
import {
|
||||||
asAnyControl,
|
asAnyControl,
|
||||||
asAnySetValue,
|
asAnySetValue,
|
||||||
asAnyWatch
|
asAnyWatch
|
||||||
} from "../../formControlUtils";
|
} from "@app/lib/formControlUtils";
|
||||||
import { useSaveSiteResource } from "../../useSaveSiteResource";
|
import { buildSelectedSitesForResource } from "@app/lib/privateResourceUtils";
|
||||||
import type { Selectedsite } from "@app/components/site-selector";
|
|
||||||
|
|
||||||
export default function PrivateResourceSshPage() {
|
export default function PrivateResourceSshPage() {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
|||||||
@@ -50,16 +50,20 @@ import { useParams, useRouter, useSearchParams } from "next/navigation";
|
|||||||
import { useEffect, useMemo, useState, useTransition } from "react";
|
import { useEffect, useMemo, useState, useTransition } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { PrivateResourceSitesField } from "../PrivateResourceSitesField";
|
import { PrivateResourceSitesField } from "@app/components/PrivateResourceSitesField";
|
||||||
import { PrivateResourceHttpFields } from "../PrivateResourceHttpFields";
|
import { PrivateResourceHttpFields } from "@app/components/PrivateResourceHttpFields";
|
||||||
import { PrivateResourceSshFields } from "../PrivateResourceSshFields";
|
import { PrivateResourceSshFields } from "@app/components/PrivateResourceSshFields";
|
||||||
import { PrivateResourcePortRanges } from "../PrivateResourcePortRanges";
|
import { PrivateResourcePortRanges } from "@app/components/PrivateResourcePortRanges";
|
||||||
import {
|
import {
|
||||||
PrivateResourceAliasField,
|
PrivateResourceAliasField,
|
||||||
PrivateResourceCidrDestinationField,
|
PrivateResourceCidrDestinationField,
|
||||||
PrivateResourceHostDestinationFields
|
PrivateResourceHostDestinationFields
|
||||||
} from "../PrivateResourceDestinationFields";
|
} from "@app/components/PrivateResourceDestinationFields";
|
||||||
import { asAnyControl, asAnySetValue, asAnyWatch } from "../formControlUtils";
|
import {
|
||||||
|
asAnyControl,
|
||||||
|
asAnySetValue,
|
||||||
|
asAnyWatch
|
||||||
|
} from "@app/lib/formControlUtils";
|
||||||
|
|
||||||
export default function CreatePrivateResourcePage() {
|
export default function CreatePrivateResourcePage() {
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export default async function ClientResourcesPage(
|
|||||||
const params = await props.params;
|
const params = await props.params;
|
||||||
const t = await getTranslations();
|
const t = await getTranslations();
|
||||||
const searchParams = new URLSearchParams(await props.searchParams);
|
const searchParams = new URLSearchParams(await props.searchParams);
|
||||||
|
searchParams.set("status", "approved");
|
||||||
|
|
||||||
let siteResources: ListAllSiteResourcesByOrgResponse["siteResources"] = [];
|
let siteResources: ListAllSiteResourcesByOrgResponse["siteResources"] = [];
|
||||||
let pagination: ListAllSiteResourcesByOrgResponse["pagination"] = {
|
let pagination: ListAllSiteResourcesByOrgResponse["pagination"] = {
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export default async function ProxyResourcesPage(
|
|||||||
const params = await props.params;
|
const params = await props.params;
|
||||||
const t = await getTranslations();
|
const t = await getTranslations();
|
||||||
const searchParams = new URLSearchParams(await props.searchParams);
|
const searchParams = new URLSearchParams(await props.searchParams);
|
||||||
|
searchParams.set("status", "approved");
|
||||||
|
|
||||||
let resources: ListResourcesResponse["resources"] = [];
|
let resources: ListResourcesResponse["resources"] = [];
|
||||||
let pagination: ListResourcesResponse["pagination"] = {
|
let pagination: ListResourcesResponse["pagination"] = {
|
||||||
|
|||||||
@@ -77,7 +77,8 @@ function getActionsCategories(root: boolean) {
|
|||||||
[t("actionDeleteSiteResource")]: "deleteSiteResource",
|
[t("actionDeleteSiteResource")]: "deleteSiteResource",
|
||||||
[t("actionGetSiteResource")]: "getSiteResource",
|
[t("actionGetSiteResource")]: "getSiteResource",
|
||||||
[t("actionListSiteResources")]: "listSiteResources",
|
[t("actionListSiteResources")]: "listSiteResources",
|
||||||
[t("actionUpdateSiteResource")]: "updateSiteResource"
|
[t("actionUpdateSiteResource")]: "updateSiteResource",
|
||||||
|
[t("actionCreateResourceSessionToken")]: "createResourceSessionToken"
|
||||||
},
|
},
|
||||||
|
|
||||||
Target: {
|
Target: {
|
||||||
|
|||||||
+10
-4
@@ -106,17 +106,23 @@ export function PrivateResourceNetworkAccessFields({
|
|||||||
embedInParentGrid = false
|
embedInParentGrid = false
|
||||||
}: PrivateResourceNetworkAccessFieldsProps) {
|
}: PrivateResourceNetworkAccessFieldsProps) {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
const resolvedInitialTcp = initialTcp !== undefined ? initialTcp : "*";
|
||||||
|
const resolvedInitialUdp = initialUdp !== undefined ? initialUdp : "*";
|
||||||
const [tcpPortMode, setTcpPortMode] = useState<PortMode>(() =>
|
const [tcpPortMode, setTcpPortMode] = useState<PortMode>(() =>
|
||||||
getPortModeFromString(initialTcp)
|
getPortModeFromString(resolvedInitialTcp)
|
||||||
);
|
);
|
||||||
const [udpPortMode, setUdpPortMode] = useState<PortMode>(() =>
|
const [udpPortMode, setUdpPortMode] = useState<PortMode>(() =>
|
||||||
getPortModeFromString(initialUdp)
|
getPortModeFromString(resolvedInitialUdp)
|
||||||
);
|
);
|
||||||
const [tcpCustomPorts, setTcpCustomPorts] = useState(() =>
|
const [tcpCustomPorts, setTcpCustomPorts] = useState(() =>
|
||||||
initialTcp && initialTcp !== "*" ? initialTcp : ""
|
resolvedInitialTcp && resolvedInitialTcp !== "*"
|
||||||
|
? resolvedInitialTcp
|
||||||
|
: ""
|
||||||
);
|
);
|
||||||
const [udpCustomPorts, setUdpCustomPorts] = useState(() =>
|
const [udpCustomPorts, setUdpCustomPorts] = useState(() =>
|
||||||
initialUdp && initialUdp !== "*" ? initialUdp : ""
|
resolvedInitialUdp && resolvedInitialUdp !== "*"
|
||||||
|
? resolvedInitialUdp
|
||||||
|
: ""
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
+1
-1
@@ -23,7 +23,7 @@ import {
|
|||||||
import { ChevronsUpDown } from "lucide-react";
|
import { ChevronsUpDown } from "lucide-react";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import type { Control, FieldPath, FieldValues } from "react-hook-form";
|
import type { Control, FieldPath, FieldValues } from "react-hook-form";
|
||||||
import { PrivateResourceMultiSiteRoutingHelp } from "./PrivateResourceMultiSiteRoutingHelp";
|
import { PrivateResourceMultiSiteRoutingHelp } from "@app/components/PrivateResourceMultiSiteRoutingHelp";
|
||||||
|
|
||||||
type PrivateResourceSitesFieldProps<T extends FieldValues> = {
|
type PrivateResourceSitesFieldProps<T extends FieldValues> = {
|
||||||
control: Control<T>;
|
control: Control<T>;
|
||||||
+3
-3
@@ -9,10 +9,10 @@ import {
|
|||||||
} from "@app/components/Settings";
|
} from "@app/components/Settings";
|
||||||
import { PaidFeaturesAlert } from "@app/components/PaidFeaturesAlert";
|
import { PaidFeaturesAlert } from "@app/components/PaidFeaturesAlert";
|
||||||
import { SshServerSettingsFields } from "@app/components/SshServerSettingsFields";
|
import { SshServerSettingsFields } from "@app/components/SshServerSettingsFields";
|
||||||
import { PrivateResourceAliasField } from "./PrivateResourceDestinationFields";
|
import { PrivateResourceAliasField } from "@app/components/PrivateResourceDestinationFields";
|
||||||
import { PrivateResourceSitesField } from "./PrivateResourceSitesField";
|
import { PrivateResourceSitesField } from "@app/components/PrivateResourceSitesField";
|
||||||
import { getSshUseMultiSiteTargetForm } from "./privateResourceUtils";
|
|
||||||
import { inferSshPamMode } from "@app/lib/privateResourceForm";
|
import { inferSshPamMode } from "@app/lib/privateResourceForm";
|
||||||
|
import { getSshUseMultiSiteTargetForm } from "@app/lib/privateResourceUtils";
|
||||||
import {
|
import {
|
||||||
FormControl,
|
FormControl,
|
||||||
FormField,
|
FormField,
|
||||||
@@ -23,6 +23,7 @@ import {
|
|||||||
PopoverContent,
|
PopoverContent,
|
||||||
PopoverTrigger
|
PopoverTrigger
|
||||||
} from "@app/components/ui/popover";
|
} from "@app/components/ui/popover";
|
||||||
|
import { Switch } from "@app/components/ui/switch";
|
||||||
import { useEnvContext } from "@app/hooks/useEnvContext";
|
import { useEnvContext } from "@app/hooks/useEnvContext";
|
||||||
import { useNavigationContext } from "@app/hooks/useNavigationContext";
|
import { useNavigationContext } from "@app/hooks/useNavigationContext";
|
||||||
import { useOptimisticLabels } from "@app/hooks/useOptimisticLabels";
|
import { useOptimisticLabels } from "@app/hooks/useOptimisticLabels";
|
||||||
@@ -36,7 +37,9 @@ import { getPrivateResourceSettingsHref } from "@app/lib/launcherResourceAdminHr
|
|||||||
import { getNextSortOrder, getSortDirection } from "@app/lib/sortColumn";
|
import { getNextSortOrder, getSortDirection } from "@app/lib/sortColumn";
|
||||||
import { build } from "@server/build";
|
import { build } from "@server/build";
|
||||||
import { tierMatrix } from "@server/lib/billing/tierMatrix";
|
import { tierMatrix } from "@server/lib/billing/tierMatrix";
|
||||||
|
import { UpdateSiteResourceResponse } from "@server/routers/siteResource";
|
||||||
import type { PaginationState } from "@tanstack/react-table";
|
import type { PaginationState } from "@tanstack/react-table";
|
||||||
|
import { AxiosResponse } from "axios";
|
||||||
import {
|
import {
|
||||||
ArrowDown01Icon,
|
ArrowDown01Icon,
|
||||||
ArrowRight,
|
ArrowRight,
|
||||||
@@ -49,8 +52,17 @@ import {
|
|||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { startTransition, useMemo, useState, useTransition } from "react";
|
import {
|
||||||
|
startTransition,
|
||||||
|
useMemo,
|
||||||
|
useOptimistic,
|
||||||
|
useRef,
|
||||||
|
useState,
|
||||||
|
useTransition,
|
||||||
|
type ComponentRef
|
||||||
|
} from "react";
|
||||||
import { useDebouncedCallback } from "use-debounce";
|
import { useDebouncedCallback } from "use-debounce";
|
||||||
|
import z from "zod";
|
||||||
import { ColumnFilterButton } from "./ColumnFilterButton";
|
import { ColumnFilterButton } from "./ColumnFilterButton";
|
||||||
import { LabelColumnFilterButton } from "./LabelColumnFilterButton";
|
import { LabelColumnFilterButton } from "./LabelColumnFilterButton";
|
||||||
import { LabelsTableCell } from "./LabelsTableCell";
|
import { LabelsTableCell } from "./LabelsTableCell";
|
||||||
@@ -114,6 +126,11 @@ function isSafeUrlForLink(href: string): boolean {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const booleanSearchFilterSchema = z
|
||||||
|
.enum(["true", "false"])
|
||||||
|
.optional()
|
||||||
|
.catch(undefined);
|
||||||
|
|
||||||
type ClientResourcesTableProps = {
|
type ClientResourcesTableProps = {
|
||||||
internalResources: InternalResourceRow[];
|
internalResources: InternalResourceRow[];
|
||||||
orgId: string;
|
orgId: string;
|
||||||
@@ -174,6 +191,30 @@ export default function PrivateResourcesTable({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
async function toggleInternalResourceEnabled(
|
||||||
|
val: boolean,
|
||||||
|
resourceId: number
|
||||||
|
) {
|
||||||
|
try {
|
||||||
|
await api.post<AxiosResponse<UpdateSiteResourceResponse>>(
|
||||||
|
`site-resource/${resourceId}`,
|
||||||
|
{
|
||||||
|
enabled: val
|
||||||
|
}
|
||||||
|
);
|
||||||
|
router.refresh();
|
||||||
|
} catch (e) {
|
||||||
|
toast({
|
||||||
|
variant: "destructive",
|
||||||
|
title: t("resourcesErrorUpdate"),
|
||||||
|
description: formatAxiosError(
|
||||||
|
e,
|
||||||
|
t("resourcesErrorUpdateDescription")
|
||||||
|
)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const deleteInternalResource = async (
|
const deleteInternalResource = async (
|
||||||
resourceId: number,
|
resourceId: number,
|
||||||
siteId: number
|
siteId: number
|
||||||
@@ -429,6 +470,36 @@ export default function PrivateResourcesTable({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
accessorKey: "enabled",
|
||||||
|
friendlyName: t("enabled"),
|
||||||
|
header: () => (
|
||||||
|
<ColumnFilterButton
|
||||||
|
options={[
|
||||||
|
{ value: "true", label: t("enabled") },
|
||||||
|
{ value: "false", label: t("disabled") }
|
||||||
|
]}
|
||||||
|
selectedValue={booleanSearchFilterSchema.parse(
|
||||||
|
searchParams.get("enabled")
|
||||||
|
)}
|
||||||
|
onValueChange={(value) =>
|
||||||
|
handleFilterChange("enabled", value)
|
||||||
|
}
|
||||||
|
searchPlaceholder={t("searchPlaceholder")}
|
||||||
|
emptyMessage={t("emptySearchOptions")}
|
||||||
|
label={t("enabled")}
|
||||||
|
className="p-3"
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
cell: ({ row }) => (
|
||||||
|
<InternalResourceEnabledForm
|
||||||
|
resource={row.original}
|
||||||
|
onToggleInternalResourceEnabled={
|
||||||
|
toggleInternalResourceEnabled
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "labels",
|
id: "labels",
|
||||||
accessorKey: "labels",
|
accessorKey: "labels",
|
||||||
@@ -643,3 +714,39 @@ function ClientResourceLabelCell({
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type InternalResourceEnabledFormProps = {
|
||||||
|
resource: InternalResourceRow;
|
||||||
|
onToggleInternalResourceEnabled: (
|
||||||
|
val: boolean,
|
||||||
|
resourceId: number
|
||||||
|
) => Promise<void>;
|
||||||
|
};
|
||||||
|
|
||||||
|
function InternalResourceEnabledForm({
|
||||||
|
resource,
|
||||||
|
onToggleInternalResourceEnabled
|
||||||
|
}: InternalResourceEnabledFormProps) {
|
||||||
|
const [optimisticEnabled, setOptimisticEnabled] = useOptimistic(
|
||||||
|
resource.enabled
|
||||||
|
);
|
||||||
|
|
||||||
|
const formRef = useRef<ComponentRef<"form">>(null);
|
||||||
|
|
||||||
|
async function submitAction(formData: FormData) {
|
||||||
|
const newEnabled = !(formData.get("enabled") === "on");
|
||||||
|
setOptimisticEnabled(newEnabled);
|
||||||
|
await onToggleInternalResourceEnabled(newEnabled, resource.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<form action={submitAction} ref={formRef}>
|
||||||
|
<Switch
|
||||||
|
checked={optimisticEnabled}
|
||||||
|
disabled={optimisticEnabled !== resource.enabled}
|
||||||
|
name="enabled"
|
||||||
|
onCheckedChange={() => formRef.current?.requestSubmit()}
|
||||||
|
/>
|
||||||
|
</form>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ export function buildCreateSiteResourcePayload(
|
|||||||
siteIds: data.siteIds,
|
siteIds: data.siteIds,
|
||||||
mode: data.mode,
|
mode: data.mode,
|
||||||
destination: isNativeSsh ? undefined : (data.destination ?? undefined),
|
destination: isNativeSsh ? undefined : (data.destination ?? undefined),
|
||||||
enabled: true,
|
|
||||||
...(data.mode === "http" && {
|
...(data.mode === "http" && {
|
||||||
scheme: data.scheme,
|
scheme: data.scheme,
|
||||||
ssl: data.ssl ?? false,
|
ssl: data.ssl ?? false,
|
||||||
@@ -342,7 +341,8 @@ export function createGeneralFormSchema(t: TranslateFn) {
|
|||||||
.string()
|
.string()
|
||||||
.min(1)
|
.min(1)
|
||||||
.max(255)
|
.max(255)
|
||||||
.regex(/^[a-zA-Z0-9-]+$/)
|
.regex(/^[a-zA-Z0-9-]+$/),
|
||||||
|
enabled: z.boolean()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user