Skip to content

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

Patch integration issues

Tuan Dangb1285b401b9d
diff --git a/backend-pg/src/db/migrations/20231222172455_integration.ts b/backend-pg/src/db/migrations/20231222172455_integration.ts
index cedbde23ee..4ef34cab13 100644
--- a/backend-pg/src/db/migrations/20231222172455_integration.ts
+++ b/backend-pg/src/db/migrations/20231222172455_integration.ts
@@ -12,13 +12,13 @@ export async function up(knex: Knex): Promise<void> {
t.string("url"); // for self hosted
t.string("namespace"); // hashicorp specific
t.string("accountId"); // netlify
- t.string("refreshCiphertext");
+ t.text("refreshCiphertext");
t.string("refreshIV");
t.string("refreshTag");
t.string("accessIdCiphertext");
t.string("accessIdIV");
t.string("accessIdTag");
- t.string("accessCiphertext");
+ t.text("accessCiphertext");
t.string("accessIV");
t.string("accessTag");
t.datetime("accessExpiresAt");
diff --git a/backend-pg/src/server/routes/v1/integration-auth-router.ts b/backend-pg/src/server/routes/v1/integration-auth-router.ts
index 188d07c660..92edc8c6af 100644
--- a/backend-pg/src/server/routes/v1/integration-auth-router.ts
+++ b/backend-pg/src/server/routes/v1/integration-auth-router.ts
@@ -18,6 +18,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
.object({
name: z.string(),
slug: z.string(),
+ clientSlug: z.string().optional(),
image: z.string(),
isAvailable: z.boolean().optional(),
type: z.string(),
@@ -192,7 +193,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
apps: z
.object({
name: z.string(),
- appId: z.string().optional(),
+ appId: z.coerce.string().optional(),
owner: z.string().optional()
})
.array()
@@ -533,7 +534,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
type: z.string(),
is_private: z.boolean(),
created_on: z.string(),
- updated_on: z.string()
+ updated_on: z.string().optional()
})
.array()
})
diff --git a/backend-pg/src/services/integration-auth/integration-auth-service.ts b/backend-pg/src/services/integration-auth/integration-auth-service.ts
index 41d2434c52..7c1c0cad7c 100644
--- a/backend-pg/src/services/integration-auth/integration-auth-service.ts
+++ b/backend-pg/src/services/integration-auth/integration-auth-service.ts
@@ -770,7 +770,7 @@ export const integrationAuthServiceFactory = ({
`;
const variables = {
- projectId: appId
+ id: appId
};
const {