Skip to content

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

misc: added missing

Sheen Capadngan283b9636f926
diff --git a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts
index 751b198a1e..36ac2e6e5c 100644
--- a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts
+++ b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts
@@ -6,6 +6,7 @@ import { PamAccountOrderBy, PamAccountView } from "@app/ee/services/pam-account/
import { SanitizedActiveDirectoryAccountWithResourceSchema } from "@app/ee/services/pam-resource/active-directory/active-directory-resource-schemas";
import { SanitizedAwsIamAccountWithResourceSchema } from "@app/ee/services/pam-resource/aws-iam/aws-iam-resource-schemas";
import { SanitizedKubernetesAccountWithResourceSchema } from "@app/ee/services/pam-resource/kubernetes/kubernetes-resource-schemas";
+import { SanitizedMsSQLAccountWithResourceSchema } from "@app/ee/services/pam-resource/mssql/mssql-resource-schemas";
import { SanitizedMySQLAccountWithResourceSchema } from "@app/ee/services/pam-resource/mysql/mysql-resource-schemas";
import { PamResource } from "@app/ee/services/pam-resource/pam-resource-enums";
import { GatewayAccessResponseSchema } from "@app/ee/services/pam-resource/pam-resource-schemas";
@@ -27,6 +28,7 @@ const SanitizedAccountSchema = z.discriminatedUnion("resourceType", [
SanitizedSSHAccountWithResourceSchema,
SanitizedPostgresAccountWithResourceSchema,
SanitizedMySQLAccountWithResourceSchema,
+ SanitizedMsSQLAccountWithResourceSchema,
SanitizedRedisAccountWithResourceSchema,
SanitizedAwsIamAccountWithResourceSchema,
SanitizedWindowsAccountWithResourceSchema,
@@ -246,9 +248,10 @@ export const registerPamAccountRouter = async (server: FastifyZodProvider) => {
}),
response: {
200: z.discriminatedUnion("resourceType", [
- // Gateway-based resources (Postgres, MySQL, Redis, SSH)
+ // Gateway-based resources (Postgres, MySQL, MsSQL, Redis, SSH)
GatewayAccessResponseSchema.extend({ resourceType: z.literal(PamResource.Postgres) }),
GatewayAccessResponseSchema.extend({ resourceType: z.literal(PamResource.MySQL) }),
+ GatewayAccessResponseSchema.extend({ resourceType: z.literal(PamResource.MsSQL) }),
GatewayAccessResponseSchema.extend({ resourceType: z.literal(PamResource.Redis) }),
GatewayAccessResponseSchema.extend({ resourceType: z.literal(PamResource.SSH) }),
GatewayAccessResponseSchema.extend({ resourceType: z.literal(PamResource.Kubernetes) }),
diff --git a/backend/src/ee/routes/v1/pam-resource-routers/pam-resource-router.ts b/backend/src/ee/routes/v1/pam-resource-routers/pam-resource-router.ts
index 64f1240d26..630e29d1fa 100644
--- a/backend/src/ee/routes/v1/pam-resource-routers/pam-resource-router.ts
+++ b/backend/src/ee/routes/v1/pam-resource-routers/pam-resource-router.ts
@@ -13,6 +13,10 @@ import {
KubernetesResourceListItemSchema,
SanitizedKubernetesResourceSchema
} from "@app/ee/services/pam-resource/kubernetes/kubernetes-resource-schemas";
+import {
+ MsSQLResourceListItemSchema,
+ SanitizedMsSQLResourceSchema
+} from "@app/ee/services/pam-resource/mssql/mssql-resource-schemas";
import {
MySQLResourceListItemSchema,
SanitizedMySQLResourceSchema
@@ -42,6 +46,7 @@ import { AuthMode } from "@app/services/auth/auth-type";
const SanitizedResourceSchema = z.discriminatedUnion("resourceType", [
SanitizedPostgresResourceSchema,
SanitizedMySQLResourceSchema,
+ SanitizedMsSQLResourceSchema,
SanitizedSSHResourceSchema,
SanitizedKubernetesResourceSchema,
SanitizedAwsIamResourceSchema,
@@ -53,6 +58,7 @@ const SanitizedResourceSchema = z.discriminatedUnion("resourceType", [
const ResourceOptionsSchema = z.discriminatedUnion("resource", [
PostgresResourceListItemSchema,
MySQLResourceListItemSchema,
+ MsSQLResourceListItemSchema,
SSHResourceListItemSchema,
KubernetesResourceListItemSchema,
AwsIamResourceListItemSchema,
diff --git a/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountCredentialsSection.tsx b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountCredentialsSection.tsx
index e25e1e47ee..c160415291 100644
--- a/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountCredentialsSection.tsx
+++ b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountCredentialsSection.tsx
@@ -107,6 +107,7 @@ const CredentialsContent = ({ account }: { account: TPamAccount }) => {
switch (resourceType) {
case PamResourceType.Postgres:
case PamResourceType.MySQL:
+ case PamResourceType.MsSQL:
case PamResourceType.Redis:
return <SqlCredentialsContent credentials={account.credentials as TBaseSqlCredentials} />;
case PamResourceType.SSH:
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx
index a7765625c6..b0d11b61cc 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx
@@ -73,6 +73,7 @@ export const PamAccessAccountModal = ({ isOpen, onOpenChange, account, projectId
switch (account.resource.resourceType) {
case PamResourceType.Postgres:
case PamResourceType.MySQL:
+ case PamResourceType.MsSQL:
return `infisical pam db access --resource ${account.resource.name} --account ${account.name} --project-id ${projectId} --duration ${cliDuration} --domain ${siteURL}`;
case PamResourceType.Redis:
return `infisical pam redis access --resource ${account.resource.name} --account ${account.name} --project-id ${projectId} --duration ${cliDuration} --domain ${siteURL}`;
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx
index 21a82d7749..d40f89f2db 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx
@@ -188,6 +188,7 @@ const ConnectionDetailsContent = ({ resource }: Props) => {
switch (resource.resourceType) {
case PamResourceType.Postgres:
case PamResourceType.MySQL:
+ case PamResourceType.MsSQL:
return <SqlConnectionDetails connectionDetails={resource.connectionDetails} />;
case PamResourceType.SSH:
return <SSHConnectionDetails connectionDetails={resource.connectionDetails} />;
diff --git a/frontend/src/pages/pam/PamResourcesPage/components/ResourceTypeSelect.tsx b/frontend/src/pages/pam/PamResourcesPage/components/ResourceTypeSelect.tsx
index 6ddd95d7bd..acd396a682 100644
--- a/frontend/src/pages/pam/PamResourcesPage/components/ResourceTypeSelect.tsx
+++ b/frontend/src/pages/pam/PamResourcesPage/components/ResourceTypeSelect.tsx
@@ -26,7 +26,6 @@ export const ResourceTypeSelect = ({ onSelect }: Props) => {
// We are temporarily showing these resources so that we can gauge interest before committing
{ name: "OracleDB", resource: PamResourceType.OracleDB },
{ name: "SQLite", resource: PamResourceType.SQLite },
- { name: "Microsoft SQL Server", resource: PamResourceType.MsSQL },
{ name: "MongoDB", resource: PamResourceType.MongoDB },
{ name: "Cassandra", resource: PamResourceType.Cassandra },
{ name: "CockroachDB", resource: PamResourceType.CockroachDB },
@@ -34,7 +33,6 @@ export const ResourceTypeSelect = ({ onSelect }: Props) => {
{ name: "Snowflake", resource: PamResourceType.Snowflake },
{ name: "Elasticsearch", resource: PamResourceType.Elasticsearch },
{ name: "RDP", resource: PamResourceType.RDP },
- { name: "SSH", resource: PamResourceType.SSH },
{ name: "MCP", resource: PamResourceType.MCP },
{ name: "Web Application", resource: PamResourceType.WebApp }
];
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
index a6d50c1387..f4313a4f8e 100644
--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
@@ -23,6 +23,7 @@ export const PamSessionLogsSection = ({ session }: Props) => {
const isDatabaseSession =
session.resourceType === PamResourceType.Postgres ||
session.resourceType === PamResourceType.MySQL ||
+ session.resourceType === PamResourceType.MsSQL ||
session.resourceType === PamResourceType.Redis;
const isHttpSession = session.resourceType === PamResourceType.Kubernetes;
const isAwsIamSession = session.resourceType === PamResourceType.AwsIam;