pam: mcp resource type preview

This commit is contained in:
x032205
2025-11-11 23:15:16 -05:00
parent 0d43e485b2
commit c63480a4d4
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",
RDP = "rdp",
SSH = "ssh",
Kubernetes = "kubernetes"
Kubernetes = "kubernetes",
MCP = "mcp"
}
export enum PamSessionStatus {

View File

@@ -8,5 +8,6 @@ export const PAM_RESOURCE_TYPE_MAP: Record<
[PamResourceType.MySQL]: { name: "MySQL", image: "MySql.png" },
[PamResourceType.RDP]: { name: "RDP", image: "RDP.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
{ name: "RDP", resource: PamResourceType.RDP },
{ name: "SSH", resource: PamResourceType.SSH },
{ name: "Kubernetes", resource: PamResourceType.Kubernetes }
{ name: "Kubernetes", resource: PamResourceType.Kubernetes },
{ name: "MCP", resource: PamResourceType.MCP }
];
}, [resourceOptions]);
@@ -65,7 +66,8 @@ export const ResourceTypeSelect = ({ onSelect }: Props) => {
if (
resource === PamResourceType.RDP ||
resource === PamResourceType.SSH ||
resource === PamResourceType.Kubernetes
resource === PamResourceType.Kubernetes ||
resource === PamResourceType.MCP
) {
handlePopUpOpen("upgradePlan", {
text: "Your current plan does not include access to this resource type. To unlock this feature, please upgrade to Infisical Enterprise plan.",