Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Patch self-hosted gitlab integration
Tuan Dang32bec03adfef
diff --git a/backend/src/helpers/integration.ts b/backend/src/helpers/integration.tsindex 8fe7be9da8..6b94d5916c 100644--- a/backend/src/helpers/integration.ts+++ b/backend/src/helpers/integration.ts@@ -15,6 +15,7 @@ import { IntegrationAuthMetadata } from "../models/integrationAuth/types";interface Update {workspace: string;integration: string;+ url?: string;teamId?: string;accountId?: string;metadata?: IntegrationAuthMetadata@@ -63,6 +64,10 @@ export const handleOAuthExchangeHelper = async ({workspace: workspaceId,integration};++ if (res.url) {+ update.url = res.url;+ }switch (integration) {case INTEGRATION_VERCEL:diff --git a/backend/src/integrations/exchange.ts b/backend/src/integrations/exchange.tsindex a97a9db09b..37382e79e3 100644--- a/backend/src/integrations/exchange.ts+++ b/backend/src/integrations/exchange.ts@@ -423,6 +423,7 @@ const exchangeCodeGitlab = async ({accessToken: res.access_token,refreshToken: res.refresh_token,accessExpiresAt,+ url};};diff --git a/frontend/src/pages/integrations/gitlab/create.tsx b/frontend/src/pages/integrations/gitlab/create.tsxindex ecf787ee5c..33e7ef5e6d 100644--- a/frontend/src/pages/integrations/gitlab/create.tsx+++ b/frontend/src/pages/integrations/gitlab/create.tsx@@ -84,6 +84,7 @@ export default function GitLabCreateIntegrationPage() {const selectedSourceEnvironment = watch("selectedSourceEnvironment");const targetEntity = watch("targetEntity");const targetTeamId = watch("targetTeamId");+ const targetAppIdValue = watch("targetAppId");const { mutateAsync } = useCreateIntegration();@@ -440,6 +441,7 @@ export default function GitLabCreateIntegrationPage() {size="sm"type="submit"isLoading={isLoading}+ isDisabled={targetAppIdValue === "none"}>Create Integration</Button>