Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

"No Gateway"

x032205c0b95a5d124b
diff --git a/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsx b/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsx
index 97eb6ca250..5478299826 100644
--- a/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsx
+++ b/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsx
@@ -1,5 +1,5 @@
import { useQuery } from "@tanstack/react-query";
-import { GlobeIcon, Layers3Icon, ServerIcon } from "lucide-react";
+import { GlobeIcon, Layers3Icon, type LucideIcon, ServerIcon } from "lucide-react";
import { useSubscription } from "@app/context";
import { gatewayPoolsQueryKeys } from "@app/hooks/api/gateway-pools/queries";
@@ -29,6 +29,8 @@ type Props = {
isRequired?: boolean;
placeholder?: string;
isError?: boolean;
+ noGatewayLabel?: string;
+ noGatewayIcon?: LucideIcon;
};
const SectionLabel = ({ children }: { children: React.ReactNode }) => (
@@ -44,7 +46,9 @@ export const GatewayPicker = ({
className,
isRequired,
placeholder,
- isError
+ isError,
+ noGatewayLabel = "Internet Gateway",
+ noGatewayIcon: NoGatewayIcon = GlobeIcon
}: Props) => {
const { subscription } = useSubscription();
const showPools = subscription?.gatewayPool;
@@ -87,8 +91,8 @@ export const GatewayPicker = ({
{!isRequired && (
<SelectItem value="internet">
<span className="flex items-center gap-2">
- <GlobeIcon className="size-3.5 text-muted" />
- Internet Gateway
+ <NoGatewayIcon className="size-3.5 text-muted" />
+ {noGatewayLabel}
</span>
</SelectItem>
)}
diff --git a/frontend/src/pages/pam/PamTemplatesPage/components/TemplateDetailSheet.tsx b/frontend/src/pages/pam/PamTemplatesPage/components/TemplateDetailSheet.tsx
index b5b6016f57..290e551083 100644
--- a/frontend/src/pages/pam/PamTemplatesPage/components/TemplateDetailSheet.tsx
+++ b/frontend/src/pages/pam/PamTemplatesPage/components/TemplateDetailSheet.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
+import { Ban } from "lucide-react";
import { z } from "zod";
import { createNotification } from "@app/components/notifications";
@@ -327,6 +328,8 @@ const SettingsTab = ({
setValue("gatewayId", value.gatewayId, { shouldDirty: true });
setValue("gatewayPoolId", value.gatewayPoolId, { shouldDirty: true });
}}
+ noGatewayLabel="No Gateway"
+ noGatewayIcon={Ban}
/>
<FieldDescription>
Used to reach accounts unless overridden on the account.