Merge pull request #4854 from Infisical/pam-preview-mcp-resource

pam: mcp resource type preview
This commit is contained in:
Andre
2025-11-11 23:24:47 -05:00
committed by GitHub
4 changed files with 8 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -3,7 +3,8 @@ export enum PamResourceType {
MySQL = "mysql", MySQL = "mysql",
RDP = "rdp", RDP = "rdp",
SSH = "ssh", SSH = "ssh",
Kubernetes = "kubernetes" Kubernetes = "kubernetes",
MCP = "mcp"
} }
export enum PamSessionStatus { export enum PamSessionStatus {

View File

@@ -8,5 +8,6 @@ export const PAM_RESOURCE_TYPE_MAP: Record<
[PamResourceType.MySQL]: { name: "MySQL", image: "MySql.png" }, [PamResourceType.MySQL]: { name: "MySQL", image: "MySql.png" },
[PamResourceType.RDP]: { name: "RDP", image: "RDP.png" }, [PamResourceType.RDP]: { name: "RDP", image: "RDP.png" },
[PamResourceType.SSH]: { name: "SSH", image: "SSH.png" }, [PamResourceType.SSH]: { name: "SSH", image: "SSH.png" },
[PamResourceType.Kubernetes]: { name: "Kubernetes", image: "Kubernetes.png" } [PamResourceType.Kubernetes]: { name: "Kubernetes", image: "Kubernetes.png" },
[PamResourceType.MCP]: { name: "MCP", image: "MCP.png" }
}; };

View File

@@ -28,7 +28,8 @@ export const ResourceTypeSelect = ({ onSelect }: Props) => {
// We are temporarily showing these resources so that we can gauge interest before committing // We are temporarily showing these resources so that we can gauge interest before committing
{ name: "RDP", resource: PamResourceType.RDP }, { name: "RDP", resource: PamResourceType.RDP },
{ name: "SSH", resource: PamResourceType.SSH }, { name: "SSH", resource: PamResourceType.SSH },
{ name: "Kubernetes", resource: PamResourceType.Kubernetes } { name: "Kubernetes", resource: PamResourceType.Kubernetes },
{ name: "MCP", resource: PamResourceType.MCP }
]; ];
}, [resourceOptions]); }, [resourceOptions]);
@@ -65,7 +66,8 @@ export const ResourceTypeSelect = ({ onSelect }: Props) => {
if ( if (
resource === PamResourceType.RDP || resource === PamResourceType.RDP ||
resource === PamResourceType.SSH || resource === PamResourceType.SSH ||
resource === PamResourceType.Kubernetes resource === PamResourceType.Kubernetes ||
resource === PamResourceType.MCP
) { ) {
handlePopUpOpen("upgradePlan", { handlePopUpOpen("upgradePlan", {
text: "Your current plan does not include access to this resource type. To unlock this feature, please upgrade to Infisical Enterprise plan.", text: "Your current plan does not include access to this resource type. To unlock this feature, please upgrade to Infisical Enterprise plan.",