Skip to content

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

lint

Matheus Nogueira7e650ae57943
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 0e278b8446..f684db8c6e 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
@@ -74,13 +74,12 @@ export const ValidateAzureAppConfigurationConnectionCredentialsSchema = z.discri
})
]);
-export const CreateAzureAppConfigurationConnectionSchema = ValidateAzureAppConfigurationConnectionCredentialsSchema
- .and(
+export const CreateAzureAppConfigurationConnectionSchema =
+ ValidateAzureAppConfigurationConnectionCredentialsSchema.and(
GenericCreateAppConnectionFieldsSchema(AppConnection.AzureAppConfiguration, {
supportsCredentialRotation: true
})
- )
- .superRefine((data, ctx) => {
+ ).superRefine((data, ctx) => {
if (data.method !== AzureAppConfigurationConnectionMethod.ClientSecret && data.isAutoRotationEnabled) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
diff --git a/backend/src/services/app-connection/azure-client-secrets/azure-client-secrets-connection-schemas.ts b/backend/src/services/app-connection/azure-client-secrets/azure-client-secrets-connection-schemas.ts
index cd55943dc2..47d3274016 100644
--- a/backend/src/services/app-connection/azure-client-secrets/azure-client-secrets-connection-schemas.ts
+++ b/backend/src/services/app-connection/azure-client-secrets/azure-client-secrets-connection-schemas.ts
@@ -126,11 +126,10 @@ export const ValidateAzureClientSecretsConnectionCredentialsSchema = z.discrimin
})
]);
-export const CreateAzureClientSecretsConnectionSchema = ValidateAzureClientSecretsConnectionCredentialsSchema
- .and(
+export const CreateAzureClientSecretsConnectionSchema =
+ ValidateAzureClientSecretsConnectionCredentialsSchema.and(
GenericCreateAppConnectionFieldsSchema(AppConnection.AzureClientSecrets, { supportsCredentialRotation: true })
- )
- .superRefine((data, ctx) => {
+ ).superRefine((data, ctx) => {
if (data.method !== AzureClientSecretsConnectionMethod.ClientSecret && data.isAutoRotationEnabled) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
diff --git a/backend/src/services/app-connection/azure-devops/azure-devops-schemas.ts b/backend/src/services/app-connection/azure-devops/azure-devops-schemas.ts
index e22240b9dc..092f1e6df0 100644
--- a/backend/src/services/app-connection/azure-devops/azure-devops-schemas.ts
+++ b/backend/src/services/app-connection/azure-devops/azure-devops-schemas.ts
@@ -111,13 +111,12 @@ export const ValidateAzureDevOpsConnectionCredentialsSchema = z.discriminatedUni
})
]);
-export const CreateAzureDevOpsConnectionSchema = ValidateAzureDevOpsConnectionCredentialsSchema
- .and(
+export const CreateAzureDevOpsConnectionSchema =
+ ValidateAzureDevOpsConnectionCredentialsSchema.and(
GenericCreateAppConnectionFieldsSchema(AppConnection.AzureDevOps, {
supportsCredentialRotation: true
})
- )
- .superRefine((data, ctx) => {
+ ).superRefine((data, ctx) => {
if (data.method !== AzureDevOpsConnectionMethod.ClientSecret && data.isAutoRotationEnabled) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
diff --git a/backend/src/services/app-connection/azure-key-vault/azure-key-vault-connection-schemas.ts b/backend/src/services/app-connection/azure-key-vault/azure-key-vault-connection-schemas.ts
index f224938ab2..38631cab86 100644
--- a/backend/src/services/app-connection/azure-key-vault/azure-key-vault-connection-schemas.ts
+++ b/backend/src/services/app-connection/azure-key-vault/azure-key-vault-connection-schemas.ts
@@ -98,14 +98,13 @@ export const ValidateAzureKeyVaultConnectionCredentialsSchema = z.discriminatedU
})
]);
-export const CreateAzureKeyVaultConnectionSchema = ValidateAzureKeyVaultConnectionCredentialsSchema
- .and(
+export const CreateAzureKeyVaultConnectionSchema =
+ ValidateAzureKeyVaultConnectionCredentialsSchema.and(
GenericCreateAppConnectionFieldsSchema(AppConnection.AzureKeyVault, {
supportsCredentialRotation: true,
supportsGateways: true
})
- )
- .superRefine((data, ctx) => {
+ ).superRefine((data, ctx) => {
if (data.method !== AzureKeyVaultConnectionMethod.ClientSecret && data.isAutoRotationEnabled) {
ctx.addIssue({
code: z.ZodIssueCode.custom,