mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-30 17:59:05 +02:00
show exit nodes in resource launcher
This commit is contained in:
@@ -125,6 +125,16 @@ export function formatPublicResourceAccess(
|
||||
export function formatSiteResourceAccess(
|
||||
resource: SiteResourceAccessInput
|
||||
): LauncherAccessFields {
|
||||
// Exit node (gateway) destinations are always 0.0.0.0/0 — not useful to
|
||||
// show or copy. The launcher UI renders a localized capability label.
|
||||
if (resource.mode === "gateway") {
|
||||
return {
|
||||
accessDisplay: "",
|
||||
accessCopyValue: "",
|
||||
accessUrl: null
|
||||
};
|
||||
}
|
||||
|
||||
if (
|
||||
(resource.mode === "http" || resource.mode === "inference") &&
|
||||
resource.fullDomain
|
||||
|
||||
@@ -55,12 +55,12 @@ const listAllSiteResourcesByOrgQuerySchema = z.strictObject({
|
||||
}),
|
||||
query: z.string().optional(),
|
||||
mode: z
|
||||
.enum(["host", "cidr", "http", "ssh", "inference"])
|
||||
.enum(["host", "cidr", "http", "ssh", "inference", "gateway"])
|
||||
.optional()
|
||||
.catch(undefined)
|
||||
.openapi({
|
||||
type: "string",
|
||||
enum: ["host", "cidr", "http", "ssh", "inference"],
|
||||
enum: ["host", "cidr", "http", "ssh", "inference", "gateway"],
|
||||
description: "Filter site resources by mode"
|
||||
}),
|
||||
sort_by: z
|
||||
|
||||
Reference in New Issue
Block a user