Skip to content

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

missing fields

Matheus Nogueira03d32c4c66c1
diff --git a/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-fns.ts b/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-fns.ts
index d173a47b57..5ddfab6cb6 100644
--- a/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-fns.ts
+++ b/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-fns.ts
@@ -103,10 +103,11 @@ export const validateAzureAppConfigurationConnectionCredentials = async (
};
case AzureAppConfigurationConnectionMethod.ClientSecret:
- const { tenantId, clientId, clientSecret } = inputCredentials as {
+ const { tenantId, clientId, clientSecret, clientSecretKeyId } = inputCredentials as {
tenantId: string;
clientId: string;
clientSecret: string;
+ clientSecretKeyId?: string;
};
try {
@@ -125,7 +126,8 @@ export const validateAzureAppConfigurationConnectionCredentials = async (
accessToken: clientData.access_token,
expiresAt: Date.now() + clientData.expires_in * 1000,
clientId,
- clientSecret
+ clientSecret,
+ clientSecretKeyId
};
} catch (e: unknown) {
if (e instanceof AxiosError) {
diff --git a/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-schemas.ts b/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-schemas.ts
index 4594408434..875713c3a6 100644
--- a/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-schemas.ts
+++ b/backend/src/services/app-connection/azure-app-configuration/azure-app-configuration-connection-schemas.ts
@@ -50,6 +50,7 @@ export const AzureAppConfigurationConnectionClientSecretOutputCredentialsSchema
clientId: z.string(),
clientSecret: z.string(),
tenantId: z.string(),
+ clientSecretKeyId: z.string().optional(),
accessToken: z.string(),
expiresAt: z.number()
});
diff --git a/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-fns.ts b/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-fns.ts
index e1e467c80e..e5bfa4458c 100644
--- a/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-fns.ts
+++ b/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-fns.ts
@@ -122,10 +122,11 @@ export const validateAzureEntraIdConnectionCredentials = async (config: TAzureEn
switch (method) {
case AzureEntraIdConnectionMethod.ClientSecret: {
- const { tenantId, clientId, clientSecret } = inputCredentials as {
+ const { tenantId, clientId, clientSecret, clientSecretKeyId } = inputCredentials as {
tenantId: string;
clientId: string;
clientSecret: string;
+ clientSecretKeyId?: string;
};
try {
@@ -144,7 +145,8 @@ export const validateAzureEntraIdConnectionCredentials = async (config: TAzureEn
accessToken: clientData.access_token,
expiresAt: Date.now() + clientData.expires_in * 1000,
clientId,
- clientSecret
+ clientSecret,
+ clientSecretKeyId
};
} catch (e: unknown) {
if (e instanceof AxiosError) {
diff --git a/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-schemas.ts b/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-schemas.ts
index 192ce487fd..394d0bd75d 100644
--- a/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-schemas.ts
+++ b/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-schemas.ts
@@ -34,6 +34,7 @@ export const AzureEntraIdConnectionClientSecretOutputCredentialsSchema = z.objec
clientId: z.string(),
clientSecret: z.string(),
tenantId: z.string(),
+ clientSecretKeyId: z.string().optional(),
accessToken: z.string(),
expiresAt: z.number()
});