Skip to content

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

Merge branch 'main' into feature/ldap-gateway-support

Victor Santos34d92f90808d
diff --cc backend/src/services/app-connection/ldap/ldap-connection-schemas.ts
index 109173ec0c,c201d22f1d..54a6335f49
--- a/backend/src/services/app-connection/ldap/ldap-connection-schemas.ts
+++ b/backend/src/services/app-connection/ldap/ldap-connection-schemas.ts
@@@ -85,16 -84,14 +86,18 @@@ export const UpdateLdapConnectionSchem
AppConnections.UPDATE(AppConnection.LDAP).credentials
)
})
- .and(GenericUpdateAppConnectionFieldsSchema(AppConnection.LDAP));
+ .and(
+ GenericUpdateAppConnectionFieldsSchema(AppConnection.LDAP, {
+ supportsGateways: true
+ })
+ );
- export const LdapConnectionListItemSchema = z.object({
- name: z.literal("LDAP"),
- app: z.literal(AppConnection.LDAP),
- // the below is preferable but currently breaks with our zod to json schema parser
- // methods: z.tuple([z.literal(AwsConnectionMethod.ServicePrincipal), z.literal(AwsConnectionMethod.AccessKey)]),
- methods: z.nativeEnum(LdapConnectionMethod).array()
- });
+ export const LdapConnectionListItemSchema = z
+ .object({
+ name: z.literal("LDAP"),
+ app: z.literal(AppConnection.LDAP),
+ // the below is preferable but currently breaks with our zod to json schema parser
+ // methods: z.tuple([z.literal(AwsConnectionMethod.ServicePrincipal), z.literal(AwsConnectionMethod.AccessKey)]),
+ methods: z.nativeEnum(LdapConnectionMethod).array()
+ })
+ .describe(JSON.stringify({ title: APP_CONNECTION_NAME_MAP[AppConnection.LDAP] }));