Skip to content

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

Merge remote-tracking branch 'origin/main' into feat/pam-mssql

Sheen Capadngan1098de0fb612
diff --cc backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts
index 36ac2e6e5c,a18b099cd5..f1ee9144c6
--- 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
@@@ -23,17 -22,22 +23,23 @@@ import { verifyAuth } from "@app/server
import { ActorType, AuthMode } from "@app/services/auth/auth-type";
import { TokenType } from "@app/services/auth-token/auth-token-types";
- const SanitizedAccountSchema = z.discriminatedUnion("resourceType", [
- SanitizedKubernetesAccountWithResourceSchema,
- SanitizedSSHAccountWithResourceSchema,
- SanitizedPostgresAccountWithResourceSchema,
- SanitizedMySQLAccountWithResourceSchema,
- SanitizedMsSQLAccountWithResourceSchema,
- SanitizedRedisAccountWithResourceSchema,
- SanitizedAwsIamAccountWithResourceSchema,
- SanitizedWindowsAccountWithResourceSchema,
- SanitizedActiveDirectoryAccountWithResourceSchema
- ]);
+ const SanitizedAccountSchema = z
+ .discriminatedUnion("resourceType", [
+ SanitizedKubernetesAccountWithResourceSchema,
+ SanitizedSSHAccountWithResourceSchema,
+ SanitizedPostgresAccountWithResourceSchema,
+ SanitizedMySQLAccountWithResourceSchema,
++ SanitizedMsSQLAccountWithResourceSchema,
+ SanitizedRedisAccountWithResourceSchema,
+ SanitizedAwsIamAccountWithResourceSchema,
+ SanitizedWindowsAccountWithResourceSchema,
+ SanitizedActiveDirectoryAccountWithResourceSchema
+ ])
+ .and(
+ z.object({
+ credentialsConfigured: z.boolean()
+ })
+ );
const ListPamAccountsResponseSchema = z.object({
accounts: SanitizedAccountSchema.array(),
diff --cc backend/src/ee/services/pam-resource/pam-resource-fns.ts
index bf3fe99494,3171f2348c..5cd269f602
--- a/backend/src/ee/services/pam-resource/pam-resource-fns.ts
+++ b/backend/src/ee/services/pam-resource/pam-resource-fns.ts
@@@ -6,9 -6,8 +6,9 @@@ import { decryptAccountCredentials } fr
import { getActiveDirectoryResourceListItem } from "./active-directory/active-directory-resource-fns";
import { getAwsIamResourceListItem } from "./aws-iam/aws-iam-resource-fns";
import { getKubernetesResourceListItem } from "./kubernetes/kubernetes-resource-fns";
+import { getMsSQLResourceListItem } from "./mssql/mssql-resource-fns";
import { getMySQLResourceListItem } from "./mysql/mysql-resource-fns";
- import { TPamResource, TPamResourceConnectionDetails, TPamResourceMetadata } from "./pam-resource-types";
+ import { TPamResource, TPamResourceConnectionDetails, TPamResourceInternalMetadata } from "./pam-resource-types";
import { getPostgresResourceListItem } from "./postgres/postgres-resource-fns";
import { getRedisResourceListItem } from "./redis/redis-resource-fns";
import { getWindowsResourceListItem } from "./windows-server/windows-server-resource-fns";