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
feat: completed migration of all integrations pages
=322536d73867
diff --git a/frontend-v2/src/const/routes.ts b/frontend-v2/src/const/routes.tsindex 1299ebc12f..221917b94a 100644--- a/frontend-v2/src/const/routes.ts+++ b/frontend-v2/src/const/routes.ts@@ -67,7 +67,189 @@ export const ROUTE_PATHS = Object.freeze({IntegrationDetailsByIDPage: setRoute("/secret-manager/$projectId/integrations/$integrationId","/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/$integrationId"- )+ ),+ Integratons: {+ SelectIntegrationAuth: setRoute(+ "/secret-manager/$projectId/integrations/select-integration-auth",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth"+ ),+ HerokuOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/heroku/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback"+ ),+ HerokuConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/heroku/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create"+ ),+ AwsParameterStoreConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/aws-parameter-store/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create"+ ),+ AwsSecretManagerConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/aws-secret-manager/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create"+ ),+ AzureAppConfigurationsOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback"+ ),+ AzureAppConfigurationsConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/azure-app-configuration/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create"+ ),+ AzureDevopsConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/azure-devops/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create"+ ),+ AzureKeyVaultOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback"+ ),+ AzureKeyVaultConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/azure-key-vault/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create"+ ),+ BitbucketOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/bitbucket/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback"+ ),+ BitbucketConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/bitbucket/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create"+ ),+ ChecklyConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/checkly/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create"+ ),+ CircleConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/circleci/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create"+ ),+ CloudflarePagesConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/cloudflare-pages/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create"+ ),+ DigitalOceanAppPlatformConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/digital-ocean-app-platform/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create"+ ),+ CloudflareWorkersConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/cloudflare-workers/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create"+ ),+ CodefreshConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/codefresh/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create"+ ),+ GcpSecretManagerConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/gcp-secret-manager/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create"+ ),+ GcpSecretManagerOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback"+ ),+ GithubConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/github/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create"+ ),+ GithubOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/github/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback"+ ),+ GitlabConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/gitlab/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create"+ ),+ GitlabOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/gitlab/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback"+ ),+ VercelOauthCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/vercel/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback"+ ),+ VercelConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/vercel/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create"+ ),+ FlyioConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/flyio/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create"+ ),+ HashicorpVaultConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/hashicorp-vault/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create"+ ),+ HasuraCloudConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/hasura-cloud/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create"+ ),+ LaravelForgeConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/laravel-forge/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create"+ ),+ NorthflankConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/northflank/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create"+ ),+ RailwayConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/railway/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create"+ ),+ RenderConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/render/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create"+ ),+ RundeckConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/rundeck/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create"+ ),+ WindmillConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/windmill/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create"+ ),+ TravisCIConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/travisci/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create"+ ),+ TerraformCloudConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/terraform-cloud/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create"+ ),+ TeamcityConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/teamcity/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create"+ ),+ SupabaseConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/supabase/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create"+ ),+ OctopusDeployCloudConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/octopus-deploy/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create"+ ),+ DatabricksConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/databricks/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create"+ ),+ QoveryConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/qovery/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create"+ ),+ Cloud66ConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/cloud-66/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create"+ ),+ NetlifyConfigurePage: setRoute(+ "/secret-manager/$projectId/integrations/netlify/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create"+ ),+ NetlifyOuathCallbackPage: setRoute(+ "/secret-manager/$projectId/integrations/netlify/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback"+ )+ }},CertManager: {CertAuthDetailsByIDPage: setRoute(diff --git a/frontend-v2/src/helpers/localStorage.ts b/frontend-v2/src/helpers/localStorage.tsnew file mode 100644index 0000000000..7a265d18e4--- /dev/null+++ b/frontend-v2/src/helpers/localStorage.ts@@ -0,0 +1,9 @@+const INTEGRATION_PROJECT_ID = "integration_project_id";+export const localStorageService = {+ getIintegrationProjectId() {+ return localStorage.getItem(INTEGRATION_PROJECT_ID);+ },+ setIntegrationProjectId(projectId: string) {+ return localStorage.setItem(INTEGRATION_PROJECT_ID, projectId);+ }+};diff --git a/frontend-v2/src/hooks/api/integrationAuth/index.tsx b/frontend-v2/src/hooks/api/integrationAuth/index.tsxindex 0ae3511def..e7ee5928a4 100644--- a/frontend-v2/src/hooks/api/integrationAuth/index.tsx+++ b/frontend-v2/src/hooks/api/integrationAuth/index.tsx@@ -7,6 +7,7 @@ export {useGetIntegrationAuthBitBucketWorkspaces,useGetIntegrationAuthById,useGetIntegrationAuthChecklyGroups,+ useGetIntegrationAuthCircleCIOrganizations,useGetIntegrationAuthGithubEnvs,useGetIntegrationAuthGithubOrgs,useGetIntegrationAuthNorthflankSecretGroups,diff --git a/frontend-v2/src/hooks/api/integrationAuth/queries.tsx b/frontend-v2/src/hooks/api/integrationAuth/queries.tsxindex ed5a913654..44b199a247 100644--- a/frontend-v2/src/hooks/api/integrationAuth/queries.tsx+++ b/frontend-v2/src/hooks/api/integrationAuth/queries.tsx@@ -9,6 +9,7 @@ import {BitBucketEnvironment,BitBucketWorkspace,ChecklyGroup,+ CircleCIOrganization,Environment,HerokuPipelineCoupling,IntegrationAuth,@@ -129,7 +130,9 @@ const integrationAuthKeys = {integrationAuthId,...params}: TGetIntegrationAuthOctopusDeployScopeValuesDTO) =>- [{ integrationAuthId }, "getIntegrationAuthOctopusDeployScopeValues", params] as const+ [{ integrationAuthId }, "getIntegrationAuthOctopusDeployScopeValues", params] as const,+ getIntegrationAuthCircleCIOrganizations: (integrationAuthId: string) =>+ [{ integrationAuthId }, "getIntegrationAuthCircleCIOrganizations"] as const};const fetchIntegrationAuthById = async (integrationAuthId: string) => {@@ -835,6 +838,21 @@ export const useGetIntegrationAuthBitBucketEnvironments = (});};+const fetchIntegrationAuthCircleCIOrganizations = async (integrationAuthId: string) => {+ const {+ data: { organizations }+ } = await apiRequest.get<{+ organizations: CircleCIOrganization[];+ }>(`/api/v1/integration-auth/${integrationAuthId}/circleci/organizations`);+ return organizations;+};+export const useGetIntegrationAuthCircleCIOrganizations = (integrationAuthId: string) => {+ return useQuery({+ queryKey: integrationAuthKeys.getIntegrationAuthCircleCIOrganizations(integrationAuthId),+ queryFn: () => fetchIntegrationAuthCircleCIOrganizations(integrationAuthId)+ });+};+export const useGetIntegrationAuthNorthflankSecretGroups = ({integrationAuthId,appIddiff --git a/frontend-v2/src/pages/organization/SshOverviewPage/route.tsx b/frontend-v2/src/pages/organization/SshOverviewPage/route.tsxindex 8d08e049d8..4fd99a812e 100644--- a/frontend-v2/src/pages/organization/SshOverviewPage/route.tsx+++ b/frontend-v2/src/pages/organization/SshOverviewPage/route.tsx@@ -1,9 +1,9 @@-import { createFileRoute } from '@tanstack/react-router'+import { createFileRoute } from "@tanstack/react-router";-import { SshOverviewPage } from './SshOverviewPage'+import { SshOverviewPage } from "./SshOverviewPage";export const Route = createFileRoute(- '/_authenticate/_inject-org-details/organization/_layout/ssh/overview',+ "/_authenticate/_inject-org-details/organization/_layout/ssh/overview")({- component: SshOverviewPage,-})+ component: SshOverviewPage+});diff --git a/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsxindex 2fca1ca838..5d87bbcf6e 100644--- a/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx+++ b/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx@@ -1,6 +1,7 @@import { useCallback, useEffect, useState } from "react";import { Helmet } from "react-helmet";import { useTranslation } from "react-i18next";+import { useNavigate } from "@tanstack/react-router";import { motion } from "framer-motion";import { createNotification } from "@app/components/notifications";@@ -29,6 +30,7 @@ enum IntegrationView {const Page = () => {const { currentWorkspace } = useWorkspace();+ const navigate = useNavigate();const { environments, id: workspaceId } = currentWorkspace;const [view, setView] = useState<IntegrationView>(IntegrationView.New);@@ -97,7 +99,7 @@ const Page = () => {if (!selectedCloudIntegration) return;try {- redirectForProviderAuth(selectedCloudIntegration);+ redirectForProviderAuth(currentWorkspace.id, navigate, selectedCloudIntegration);} catch (error) {console.error(error);}diff --git a/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsx b/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsxindex ce31f743f5..439ada69d7 100644--- a/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsx+++ b/frontend-v2/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsx@@ -1,10 +1,13 @@import crypto from "crypto";+import { NavigateFn } from "@tanstack/react-router";+import { createNotification } from "@app/components/notifications";import {decryptAssymmetric,encryptAssymmetric} from "@app/components/utilities/cryptography/crypto";+import { localStorageService } from "@app/helpers/localStorage";import { TCloudIntegration, UserWsKeyPair } from "@app/hooks/api/types";export const generateBotKey = (botPublicKey: string, latestKey: UserWsKeyPair) => {@@ -52,154 +55,309 @@ export const createIntegrationMissingEnvVarsNotification = (title: "Missing Environment Variables"});-export const redirectForProviderAuth = (integrationOption: TCloudIntegration) => {+export const redirectForProviderAuth = (+ projectId: string,+ navigate: NavigateFn,+ integrationOption: TCloudIntegration+) => {try {// generate CSRF token for OAuth2 code-token exchange integrationsconst state = crypto.randomBytes(16).toString("hex");localStorage.setItem("latestCSRFToken", state);+ localStorageService.setIntegrationProjectId(projectId);- let link = "";switch (integrationOption.slug) {case "gcp-secret-manager":- link = `${window.location.origin}/integrations/gcp-secret-manager/authorize`;- break;- case "azure-key-vault":+ navigate({+ to: "/secret-manager/$projectId/integrations/gcp-secret-manager/authorize",+ params: {+ projectId+ }+ });+ break;+ case "azure-key-vault": {if (!integrationOption.clientId) {createIntegrationMissingEnvVarsNotification(integrationOption.slug);return;}- link = `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${integrationOption.clientId}&response_type=code&redirect_uri=${window.location.origin}/integrations/azure-key-vault/oauth2/callback&response_mode=query&scope=https://vault.azure.net/.default openid offline_access&state=${state}`;+ const link = `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${integrationOption.clientId}&response_type=code&redirect_uri=${window.location.origin}/integrations/azure-key-vault/oauth2/callback&response_mode=query&scope=https://vault.azure.net/.default openid offline_access&state=${state}`;+ window.location.assign(link);break;- case "azure-app-configuration":+ }+ case "azure-app-configuration": {if (!integrationOption.clientId) {createIntegrationMissingEnvVarsNotification(integrationOption.slug);return;}- link = `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${integrationOption.clientId}&response_type=code&redirect_uri=${window.location.origin}/integrations/azure-app-configuration/oauth2/callback&response_mode=query&scope=https://azconfig.io/.default openid offline_access&state=${state}`;+ const link = `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${integrationOption.clientId}&response_type=code&redirect_uri=${window.location.origin}/integrations/azure-app-configuration/oauth2/callback&response_mode=query&scope=https://azconfig.io/.default openid offline_access&state=${state}`;+ window.location.assign(link);break;+ }case "aws-parameter-store":- link = `${window.location.origin}/integrations/aws-parameter-store/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/aws-parameter-store/authorize",+ params: {+ projectId+ }+ });break;case "aws-secret-manager":- link = `${window.location.origin}/integrations/aws-secret-manager/authorize`;- break;- case "heroku":+ navigate({+ to: "/secret-manager/$projectId/integrations/aws-secret-manager/authorize",+ params: {+ projectId+ }+ });+ break;+ case "heroku": {if (!integrationOption.clientId) {createIntegrationMissingEnvVarsNotification(integrationOption.slug);return;}- link = `https://id.heroku.com/oauth/authorize?client_id=${integrationOption.clientId}&response_type=code&scope=write-protected&state=${state}`;+ const link = `https://id.heroku.com/oauth/authorize?client_id=${integrationOption.clientId}&response_type=code&scope=write-protected&state=${state}`;+ window.location.assign(link);break;- case "vercel":+ }+ case "vercel": {if (!integrationOption.clientSlug) {createIntegrationMissingEnvVarsNotification(integrationOption.slug);return;}- link = `https://vercel.com/integrations/${integrationOption.clientSlug}/new?state=${state}`;+ const link = `https://vercel.com/integrations/${integrationOption.clientSlug}/new?state=${state}`;+ window.location.assign(link);break;- case "netlify":+ }+ case "netlify": {if (!integrationOption.clientId) {createIntegrationMissingEnvVarsNotification(integrationOption.slug);return;}- link = `https://app.netlify.com/authorize?client_id=${integrationOption.clientId}&response_type=code&state=${state}&redirect_uri=${window.location.origin}/integrations/netlify/oauth2/callback`;+ const link = `https://app.netlify.com/authorize?client_id=${integrationOption.clientId}&response_type=code&state=${state}&redirect_uri=${window.location.origin}/integrations/netlify/oauth2/callback`;++ window.location.assign(link);break;+ }case "github":- link = `${window.location.origin}/integrations/github/auth-mode-selection`;+ navigate({+ to: "/secret-manager/$projectId/integrations/github/auth-mode-selection",+ params: {+ projectId+ }+ });break;case "gitlab":- link = `${window.location.origin}/integrations/gitlab/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/gitlab/authorize",+ params: {+ projectId+ }+ });break;case "render":- link = `${window.location.origin}/integrations/render/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/render/authorize",+ params: {+ projectId+ }+ });break;case "flyio":- link = `${window.location.origin}/integrations/flyio/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/flyio/authorize",+ params: {+ projectId+ }+ });break;case "circleci":- link = `${window.location.origin}/integrations/circleci/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/circleci/authorize",+ params: {+ projectId+ }+ });break;case "databricks":- link = `${window.location.origin}/integrations/databricks/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/databricks/authorize",+ params: {+ projectId+ }+ });break;case "laravel-forge":- link = `${window.location.origin}/integrations/laravel-forge/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/laravel-forge/authorize",+ params: {+ projectId+ }+ });break;case "travisci":- link = `${window.location.origin}/integrations/travisci/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/travisci/authorize",+ params: {+ projectId+ }+ });break;case "supabase":- link = `${window.location.origin}/integrations/supabase/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/supabase/authorize",+ params: {+ projectId+ }+ });break;case "checkly":- link = `${window.location.origin}/integrations/checkly/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/checkly/authorize",+ params: {+ projectId+ }+ });break;case "qovery":- link = `${window.location.origin}/integrations/qovery/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/qovery/authorize",+ params: {+ projectId+ }+ });break;case "railway":- link = `${window.location.origin}/integrations/railway/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/railway/authorize",+ params: {+ projectId+ }+ });break;case "terraform-cloud":- link = `${window.location.origin}/integrations/terraform-cloud/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/terraform-cloud/authorize",+ params: {+ projectId+ }+ });break;case "hashicorp-vault":- link = `${window.location.origin}/integrations/hashicorp-vault/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/hashicorp-vault/authorize",+ params: {+ projectId+ }+ });break;case "cloudflare-pages":- link = `${window.location.origin}/integrations/cloudflare-pages/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/cloudflare-pages/authorize",+ params: {+ projectId+ }+ });break;case "cloudflare-workers":- link = `${window.location.origin}/integrations/cloudflare-workers/authorize`;- break;- case "bitbucket":+ navigate({+ to: "/secret-manager/$projectId/integrations/cloudflare-workers/authorize",+ params: {+ projectId+ }+ });+ break;+ case "bitbucket": {if (!integrationOption.clientId) {createIntegrationMissingEnvVarsNotification(integrationOption.slug, "cicd");return;}- link = `https://bitbucket.org/site/oauth2/authorize?client_id=${integrationOption.clientId}&response_type=code&redirect_uri=${window.location.origin}/integrations/bitbucket/oauth2/callback&state=${state}`;+ const link = `https://bitbucket.org/site/oauth2/authorize?client_id=${integrationOption.clientId}&response_type=code&redirect_uri=${window.location.origin}/integrations/bitbucket/oauth2/callback&state=${state}`;+ window.location.assign(link);break;+ }case "codefresh":- link = `${window.location.origin}/integrations/codefresh/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/codefresh/authorize",+ params: {+ projectId+ }+ });break;case "digital-ocean-app-platform":- link = `${window.location.origin}/integrations/digital-ocean-app-platform/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/digital-ocean-app-platform/authorize",+ params: {+ projectId+ }+ });break;case "cloud-66":- link = `${window.location.origin}/integrations/cloud-66/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/cloud-66/authorize",+ params: {+ projectId+ }+ });break;case "northflank":- link = `${window.location.origin}/integrations/northflank/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/northflank/authorize",+ params: {+ projectId+ }+ });break;case "windmill":- link = `${window.location.origin}/integrations/windmill/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/windmill/authorize",+ params: {+ projectId+ }+ });break;case "teamcity":- link = `${window.location.origin}/integrations/teamcity/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/teamcity/authorize",+ params: {+ projectId+ }+ });break;case "hasura-cloud":- link = `${window.location.origin}/integrations/hasura-cloud/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/hasura-cloud/authorize",+ params: {+ projectId+ }+ });break;case "rundeck":- link = `${window.location.origin}/integrations/rundeck/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/rundeck/authorize",+ params: {+ projectId+ }+ });break;case "azure-devops":- link = `${window.location.origin}/integrations/azure-devops/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/azure-devops/authorize",+ params: {+ projectId+ }+ });break;case "octopus-deploy":- link = `${window.location.origin}/integrations/octopus-deploy/authorize`;+ navigate({+ to: "/secret-manager/$projectId/integrations/octopus-deploy/authorize",+ params: {+ projectId+ }+ });break;default:break;}-- if (link !== "") {- window.location.assign(link);- }} catch (err) {console.error(err);}};--export const redirectToIntegrationAppConfigScreen = (provider: string, integrationAuthId: string) =>- `/integrations/${provider}/create?integrationAuthId=${integrationAuthId}`;diff --git a/frontend-v2/src/pages/secret-manager/IntegrationsListPage/route.tsx b/frontend-v2/src/pages/secret-manager/IntegrationsListPage/route.tsxindex 7012affc6c..fbea3d346c 100644--- a/frontend-v2/src/pages/secret-manager/IntegrationsListPage/route.tsx+++ b/frontend-v2/src/pages/secret-manager/IntegrationsListPage/route.tsx@@ -1,9 +1,9 @@-import { createFileRoute } from '@tanstack/react-router'+import { createFileRoute } from "@tanstack/react-router";-import { IntegrationsListPage } from './IntegrationsListPage'+import { IntegrationsListPage } from "./IntegrationsListPage";export const Route = createFileRoute(- '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/',+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/")({- component: IntegrationsListPage,-})+ component: IntegrationsListPage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsxnew file mode 100644index 0000000000..c7fb512eb5--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx@@ -0,0 +1,207 @@+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate } from "@tanstack/react-router";+import { z } from "zod";++import {+ Button,+ Card,+ CardBody,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++enum AwsAuthType {+ AccessKey = "access-key",+ AssumeRole = "assume-role"+}++const formSchema = z.discriminatedUnion("type", [+ z.object({+ type: z.literal(AwsAuthType.AccessKey),+ accessKey: z.string().min(1),+ accessSecretKey: z.string().min(1)+ }),+ z.object({+ type: z.literal(AwsAuthType.AssumeRole),+ iamRoleArn: z.string().min(1)+ })+]);++type TForm = z.infer<typeof formSchema>;++export const AWSParameterStoreAuthorizeIntegrationPage = () => {+ const navigate = useNavigate();+ const { currentWorkspace } = useWorkspace();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const { control, handleSubmit, formState, watch } = useForm<TForm>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ type: AwsAuthType.AccessKey+ }+ });++ const formAwsAuthTypeField = watch("type");++ const handleFormSubmit = async (data: TForm) => {+ try {+ const integrationAuth = await mutateAsync({+ workspaceId: localStorage.getItem("projectData.id"),+ integration: "aws-parameter-store",+ ...(data.type === AwsAuthType.AssumeRole+ ? {+ awsAssumeIamRoleArn: data.iamRoleArn+ }+ : {+ accessId: data.accessKey,+ accessToken: data.accessSecretKey+ })+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/aws-parameter-store/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize AWS Parameter Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Amazon Web Services.png"+ height={35}+ width={35}+ alt="AWS logo"+ />+ </div>+ <span className="ml-1.5">AWS Parameter Store Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/aws-parameter-store"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <CardBody>+ <form onSubmit={handleSubmit(handleFormSubmit)}>+ <Controller+ control={control}+ name="type"+ defaultValue={AwsAuthType.AccessKey}+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Authentication Mode"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ {...field}+ onValueChange={(e) => onChange(e)}+ className="w-full"+ >+ <SelectItem value={AwsAuthType.AccessKey}>Access Key</SelectItem>+ <SelectItem value={AwsAuthType.AssumeRole}>AWS Assume Role</SelectItem>+ </Select>+ </FormControl>+ )}+ />+ {formAwsAuthTypeField === AwsAuthType.AccessKey ? (+ <>+ <Controller+ control={control}+ name="accessKey"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Access Key ID"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input placeholder="" {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="accessSecretKey"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secret Access Key"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input+ type="password"+ autoComplete="new-password"+ placeholder=""+ {...field}+ />+ </FormControl>+ )}+ />+ </>+ ) : (+ <Controller+ control={control}+ name="iamRoleArn"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="IAM Role ARN For Role Assumption"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input placeholder="" {...field} />+ </FormControl>+ )}+ />+ )}+ <Button+ type="submit"+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={formState.isSubmitting}+ >+ Connect to AWS Parameter Store+ </Button>+ </form>+ </CardBody>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsxnew file mode 100644index 0000000000..9053974c77--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { AWSParameterStoreAuthorizeIntegrationPage } from "./AwsParameterStoreAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize"+)({+ component: AWSParameterStoreAuthorizeIntegrationPage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsxnew file mode 100644index 0000000000..3bf787763f--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx@@ -0,0 +1,391 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import {+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { motion } from "framer-motion";++import {+ Badge,+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem,+ Switch,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import { useGetIntegrationAuthById } from "@app/hooks/api/integrationAuth";+import { useGetIntegrationAuthAwsKmsKeys } from "@app/hooks/api/integrationAuth/queries";++enum TabSections {+ Connection = "connection",+ Options = "options"+}++const awsRegions = [+ { name: "US East (Ohio)", slug: "us-east-2" },+ { name: "US East (N. Virginia)", slug: "us-east-1" },+ { name: "US West (N. California)", slug: "us-west-1" },+ { name: "US West (Oregon)", slug: "us-west-2" },+ { name: "Africa (Cape Town)", slug: "af-south-1" },+ { name: "Asia Pacific (Hong Kong)", slug: "ap-east-1" },+ { name: "Asia Pacific (Hyderabad)", slug: "ap-south-2" },+ { name: "Asia Pacific (Jakarta)", slug: "ap-southeast-3" },+ { name: "Asia Pacific (Melbourne)", slug: "ap-southeast-4" },+ { name: "Asia Pacific (Mumbai)", slug: "ap-south-1" },+ { name: "Asia Pacific (Osaka)", slug: "ap-northeast-3" },+ { name: "Asia Pacific (Seoul)", slug: "ap-northeast-2" },+ { name: "Asia Pacific (Singapore)", slug: "ap-southeast-1" },+ { name: "Asia Pacific (Sydney)", slug: "ap-southeast-2" },+ { name: "Asia Pacific (Tokyo)", slug: "ap-northeast-1" },+ { name: "Canada (Central)", slug: "ca-central-1" },+ { name: "Europe (Frankfurt)", slug: "eu-central-1" },+ { name: "Europe (Ireland)", slug: "eu-west-1" },+ { name: "Europe (London)", slug: "eu-west-2" },+ { name: "Europe (Milan)", slug: "eu-south-1" },+ { name: "Europe (Paris)", slug: "eu-west-3" },+ { name: "Europe (Spain)", slug: "eu-south-2" },+ { name: "Europe (Stockholm)", slug: "eu-north-1" },+ { name: "Europe (Zurich)", slug: "eu-central-2" },+ { name: "Middle East (Bahrain)", slug: "me-south-1" },+ { name: "Middle East (UAE)", slug: "me-central-1" },+ { name: "South America (Sao Paulo)", slug: "sa-east-1" },+ { name: "AWS GovCloud (US-East)", slug: "us-gov-east-1" },+ { name: "AWS GovCloud (US-West)", slug: "us-gov-west-1" }+];++export const AWSParameterStoreConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.AwsParameterStoreConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { currentWorkspace } = useWorkspace();++ const { data: integrationAuth, isPending: isintegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [selectedAWSRegion, setSelectedAWSRegion] = useState("");+ const [path, setPath] = useState("");+ const [pathErrorText, setPathErrorText] = useState("");++ const [isLoading, setIsLoading] = useState(false);+ const [shouldTag, setShouldTag] = useState(false);+ const [shouldDisableDelete, setShouldDisableDelete] = useState(false);+ const [tagKey, setTagKey] = useState("");+ const [tagValue, setTagValue] = useState("");+ const [kmsKeyId, setKmsKeyId] = useState("");++ useEffect(() => {+ if (currentWorkspace) {+ setSelectedSourceEnvironment(currentWorkspace.environments[0].slug);+ setSelectedAWSRegion(awsRegions[0].slug);+ }+ }, [currentWorkspace]);++ const { data: integrationAuthAwsKmsKeys, isPending: isIntegrationAuthAwsKmsKeysLoading } =+ useGetIntegrationAuthAwsKmsKeys({+ integrationAuthId: String(integrationAuthId),+ region: selectedAWSRegion+ });++ const isValidAWSParameterStorePath = (awsStorePath: string) => {+ const pattern = /^\/([\w-]+\/)*[\w-]+\/$/;+ return pattern.test(awsStorePath) && awsStorePath.length <= 2048;+ };++ const handleButtonClick = async () => {+ try {+ if (path !== "") {+ // case: path is not empty+ if (!isValidAWSParameterStorePath(path)) {+ // case: path is not valid for aws parameter store+ setPathErrorText("Path must be a valid path for SSM like /project/env/");+ return;+ }+ }++ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ sourceEnvironment: selectedSourceEnvironment,+ path,+ region: selectedAWSRegion,+ secretPath,+ metadata: {+ ...(shouldTag+ ? {+ secretAWSTag: [+ {+ key: tagKey,+ value: tagValue+ }+ ]+ }+ : {}),+ ...(kmsKeyId && { kmsKeyId }),+ ...(shouldDisableDelete && { shouldDisableDelete })+ }+ });++ setIsLoading(false);+ setPathErrorText("");++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && !isIntegrationAuthAwsKmsKeysLoading ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up AWS Parameter Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment in Infisical you want to sync to secerts in AWS Parameter Store."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Amazon Web Services.png"+ height={35}+ width={35}+ alt="AWS logo"+ />+ </div>+ <span className="ml-1.5">AWS Parameter Store Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/aws-parameter-store"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Tabs defaultValue={TabSections.Connection} className="px-6">+ <TabList>+ <div className="flex w-full flex-row border-b border-mineshaft-600">+ <Tab value={TabSections.Connection}>Connection</Tab>+ <Tab value={TabSections.Options}>Options</Tab>+ </div>+ </TabList>+ <TabPanel value={TabSections.Connection}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: 30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <FormControl label="Project Environment">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`flyio-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="AWS Region">+ <Select+ value={selectedAWSRegion}+ onValueChange={(val) => {+ setSelectedAWSRegion(val);+ setKmsKeyId("");+ }}+ className="w-full border border-mineshaft-500"+ >+ {awsRegions.map((awsRegion) => (+ <SelectItem value={awsRegion.slug} key={`aws-environment-${awsRegion.slug}`}>+ {awsRegion.name} <Badge variant="success">{awsRegion.slug}</Badge>+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Path" errorText={pathErrorText} isError={pathErrorText !== ""}>+ <Input+ placeholder={`/${currentWorkspace.name+ .toLowerCase()+ .replace(/ /g, "-")}/${selectedSourceEnvironment}/`}+ value={path}+ onChange={(e) => setPath(e.target.value)}+ />+ </FormControl>+ </motion.div>+ </TabPanel>+ <TabPanel value={TabSections.Options}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: -30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <div className="ml-1 mt-2">+ <Switch+ id="delete-aws"+ onCheckedChange={setShouldDisableDelete}+ isChecked={shouldDisableDelete}+ >+ Disable deleting secrets in AWS Parameter Store+ </Switch>+ </div>+ <div className="ml-1 mt-4">+ <Switch id="tag-aws" onCheckedChange={setShouldTag} isChecked={shouldTag}>+ Tag in AWS Parameter Store+ </Switch>+ </div>+ {shouldTag && (+ <div className="mt-4">+ <FormControl label="Tag Key">+ <Input+ placeholder="managed-by"+ value={tagKey}+ onChange={(e) => setTagKey(e.target.value)}+ />+ </FormControl>+ <FormControl label="Tag Value">+ <Input+ placeholder="infisical"+ value={tagValue}+ onChange={(e) => setTagValue(e.target.value)}+ />+ </FormControl>+ </div>+ )}+ <FormControl label="Encryption Key" className="mt-4">+ <Select+ value={kmsKeyId}+ onValueChange={(e) => {+ setKmsKeyId(e);+ }}+ className="w-full border border-mineshaft-500"+ >+ {integrationAuthAwsKmsKeys?.length ? (+ integrationAuthAwsKmsKeys.map((key) => {+ return (+ <SelectItem+ value={key.id as string}+ key={`repo-id-${key.id}`}+ className="w-[28.4rem] text-sm"+ >+ {key.alias}+ </SelectItem>+ );+ })+ ) : (+ <div />+ )}+ </Select>+ </FormControl>+ </motion.div>+ </TabPanel>+ </Tabs>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2"+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in AWS Parameter Store with secrets from+ Infisical.+ </span>+ </div>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up AWS Parameter Store Integration</title>+ </Helmet>+ {isintegrationAuthLoading || isIntegrationAuthAwsKmsKeysLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsxnew file mode 100644index 0000000000..3b8c4a3ea2--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AWSParameterStoreConfigurePage } from "./AwsParamterStoreConfigurePage";++const AwsParameterStoreConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create"+)({+ component: AWSParameterStoreConfigurePage,+ validateSearch: zodValidator(AwsParameterStoreConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsxnew file mode 100644index 0000000000..355283170e--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx@@ -0,0 +1,205 @@+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate } from "@tanstack/react-router";+import { z } from "zod";++import {+ Button,+ Card,+ CardBody,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++enum AwsAuthType {+ AccessKey = "access-key",+ AssumeRole = "assume-role"+}++const formSchema = z.discriminatedUnion("type", [+ z.object({+ type: z.literal(AwsAuthType.AccessKey),+ accessKey: z.string().min(1),+ accessSecretKey: z.string().min(1)+ }),+ z.object({+ type: z.literal(AwsAuthType.AssumeRole),+ iamRoleArn: z.string().min(1)+ })+]);++type TForm = z.infer<typeof formSchema>;++export const AWSSecretManagerAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const { control, handleSubmit, formState, watch } = useForm<TForm>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ type: AwsAuthType.AccessKey+ }+ });+ const formAwsAuthTypeField = watch("type");++ const handleFormSubmit = async (data: TForm) => {+ try {+ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "aws-secret-manager",+ ...(data.type === AwsAuthType.AssumeRole+ ? {+ awsAssumeIamRoleArn: data.iamRoleArn+ }+ : {+ accessId: data.accessKey,+ accessToken: data.accessSecretKey+ })+ });+ navigate({+ to: "/secret-manager/$projectId/integrations/aws-secret-manager/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize AWS Secrets Manager Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Amazon Web Services.png"+ height={35}+ width={35}+ alt="AWS logo"+ />+ </div>+ <span className="ml-1.5">AWS Secrets Manager Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/aws-secret-manager"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <CardBody>+ <form onSubmit={handleSubmit(handleFormSubmit)}>+ <Controller+ control={control}+ name="type"+ defaultValue={AwsAuthType.AccessKey}+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Authentication Mode"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ {...field}+ onValueChange={(e) => onChange(e)}+ className="w-full"+ >+ <SelectItem value={AwsAuthType.AccessKey}>Access Key</SelectItem>+ <SelectItem value={AwsAuthType.AssumeRole}>AWS Assume Role</SelectItem>+ </Select>+ </FormControl>+ )}+ />+ {formAwsAuthTypeField === AwsAuthType.AccessKey ? (+ <>+ <Controller+ control={control}+ name="accessKey"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Access Key ID"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input placeholder="" {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="accessSecretKey"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secret Access Key"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input+ type="password"+ autoComplete="new-password"+ placeholder=""+ {...field}+ />+ </FormControl>+ )}+ />+ </>+ ) : (+ <Controller+ control={control}+ name="iamRoleArn"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="IAM Role ARN For Role Assumption"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input placeholder="" {...field} />+ </FormControl>+ )}+ />+ )}+ <Button+ type="submit"+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={formState.isSubmitting}+ >+ Connect to AWS Secrets Manager+ </Button>+ </form>+ </CardBody>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsxnew file mode 100644index 0000000000..cf0172a4c9--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { AWSSecretManagerAuthorizePage } from "./AwsSecretManagerAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize"+)({+ component: AWSSecretManagerAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsxnew file mode 100644index 0000000000..0ba29ace5a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx@@ -0,0 +1,544 @@+import { useEffect } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import {+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { motion } from "framer-motion";+import z from "zod";++import {+ Badge,+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem,+ Switch,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import { useGetIntegrationAuthById } from "@app/hooks/api/integrationAuth";+import { useGetIntegrationAuthAwsKmsKeys } from "@app/hooks/api/integrationAuth/queries";+import { IntegrationMappingBehavior } from "@app/hooks/api/integrations/types";++enum TabSections {+ Connection = "connection",+ Options = "options"+}++const awsRegions = [+ { name: "US East (Ohio)", slug: "us-east-2" },+ { name: "US East (N. Virginia)", slug: "us-east-1" },+ { name: "US West (N. California)", slug: "us-west-1" },+ { name: "US West (Oregon)", slug: "us-west-2" },+ { name: "Africa (Cape Town)", slug: "af-south-1" },+ { name: "Asia Pacific (Hong Kong)", slug: "ap-east-1" },+ { name: "Asia Pacific (Hyderabad)", slug: "ap-south-2" },+ { name: "Asia Pacific (Jakarta)", slug: "ap-southeast-3" },+ { name: "Asia Pacific (Melbourne)", slug: "ap-southeast-4" },+ { name: "Asia Pacific (Mumbai)", slug: "ap-south-1" },+ { name: "Asia Pacific (Osaka)", slug: "ap-northeast-3" },+ { name: "Asia Pacific (Seoul)", slug: "ap-northeast-2" },+ { name: "Asia Pacific (Singapore)", slug: "ap-southeast-1" },+ { name: "Asia Pacific (Sydney)", slug: "ap-southeast-2" },+ { name: "Asia Pacific (Tokyo)", slug: "ap-northeast-1" },+ { name: "Canada (Central)", slug: "ca-central-1" },+ { name: "Europe (Frankfurt)", slug: "eu-central-1" },+ { name: "Europe (Ireland)", slug: "eu-west-1" },+ { name: "Europe (London)", slug: "eu-west-2" },+ { name: "Europe (Milan)", slug: "eu-south-1" },+ { name: "Europe (Paris)", slug: "eu-west-3" },+ { name: "Europe (Spain)", slug: "eu-south-2" },+ { name: "Europe (Stockholm)", slug: "eu-north-1" },+ { name: "Europe (Zurich)", slug: "eu-central-2" },+ { name: "Middle East (Bahrain)", slug: "me-south-1" },+ { name: "Middle East (UAE)", slug: "me-central-1" },+ { name: "South America (Sao Paulo)", slug: "sa-east-1" },+ { name: "AWS GovCloud (US-East)", slug: "us-gov-east-1" },+ { name: "AWS GovCloud (US-West)", slug: "us-gov-west-1" }+];++const mappingBehaviors = [+ {+ label: "Many to One (All Infisical secrets will be mapped to a single AWS secret)",+ value: IntegrationMappingBehavior.MANY_TO_ONE+ },+ {+ label: "One to One - (Each Infisical secret will be mapped to its own AWS secret)",+ value: IntegrationMappingBehavior.ONE_TO_ONE+ }+];++const schema = z+ .object({+ awsRegion: z.string().trim().min(1, { message: "AWS region is required" }),+ secretPath: z.string().trim().min(1, { message: "Secret path is required" }),+ sourceEnvironment: z.string().trim().min(1, { message: "Source environment is required" }),+ secretPrefix: z.string().default(""),+ secretName: z.string().trim().min(1).optional(),+ mappingBehavior: z.nativeEnum(IntegrationMappingBehavior),+ kmsKeyId: z.string().optional(),+ shouldTag: z.boolean().optional(),+ tags: z+ .object({+ key: z.string(),+ value: z.string()+ })+ .array()+ })+ .refine(+ (val) =>+ val.mappingBehavior === IntegrationMappingBehavior.ONE_TO_ONE ||+ (val.mappingBehavior === IntegrationMappingBehavior.MANY_TO_ONE &&+ val.secretName &&+ val.secretName !== ""),+ {+ message: "Secret name must be defined for many-to-one integrations",+ path: ["secretName"]+ }+ );++type TFormSchema = z.infer<typeof schema>;++export const AwsSecretManagerConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();+ const {+ control,+ setValue,+ handleSubmit,+ watch,+ formState: { isSubmitting }+ } = useForm<TFormSchema>({+ resolver: zodResolver(schema),+ defaultValues: {+ shouldTag: false,+ secretPath: "/",+ secretPrefix: "",+ mappingBehavior: IntegrationMappingBehavior.MANY_TO_ONE,+ tags: []+ }+ });++ const shouldTagState = watch("shouldTag");+ const selectedSourceEnvironment = watch("sourceEnvironment");+ const selectedAWSRegion = watch("awsRegion");+ const selectedMappingBehavior = watch("mappingBehavior");+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.AwsSecretManagerConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { currentWorkspace } = useWorkspace();+ const { data: integrationAuth, isLoading: isintegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );++ const { data: integrationAuthAwsKmsKeys, isLoading: isIntegrationAuthAwsKmsKeysLoading } =+ useGetIntegrationAuthAwsKmsKeys({+ integrationAuthId: String(integrationAuthId),+ region: selectedAWSRegion+ });++ useEffect(() => {+ if (currentWorkspace) {+ setValue("sourceEnvironment", currentWorkspace.environments[0].slug);+ setValue("awsRegion", awsRegions[0].slug);+ }+ }, [currentWorkspace]);++ const handleButtonClick = async ({+ secretName,+ sourceEnvironment,+ awsRegion,+ secretPath,+ shouldTag,+ tags,+ secretPrefix,+ kmsKeyId,+ mappingBehavior+ }: TFormSchema) => {+ try {+ if (!integrationAuth?.id) return;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: secretName,+ sourceEnvironment,+ region: awsRegion,+ secretPath,+ metadata: {+ ...(shouldTag+ ? {+ secretAWSTag: tags+ }+ : {}),+ ...(secretPrefix && { secretPrefix }),+ ...(kmsKeyId && { kmsKeyId }),+ mappingBehavior+ }+ });++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && !isIntegrationAuthAwsKmsKeysLoading ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up AWS Secrets Manager Integration</title>+ </Helmet>+ <form onSubmit={handleSubmit(handleButtonClick)}>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment in Infisical you want to sync to secerts in AWS Secrets Manager."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Amazon Web Services.png"+ height={35}+ width={35}+ alt="AWS logo"+ />+ </div>+ <span className="ml-1.5">AWS Secrets Manager Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/aws-secret-manager"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Tabs defaultValue={TabSections.Connection} className="px-6">+ <TabList>+ <div className="flex w-full flex-row border-b border-mineshaft-600">+ <Tab value={TabSections.Connection}>Connection</Tab>+ <Tab value={TabSections.Options}>Options</Tab>+ </div>+ </TabList>+ <TabPanel value={TabSections.Connection}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: 30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <Controller+ control={control}+ name="sourceEnvironment"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ className="w-full border border-mineshaft-500"+ dropdownContainerClassName="max-w-full"+ value={field.value}+ onValueChange={(val) => {+ field.onChange(val);+ }}+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secrets Path"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <SecretPathInput {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="awsRegion"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="AWS region"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ onValueChange={(e) => onChange(e)}+ className="w-full border border-mineshaft-500"+ dropdownContainerClassName="max-w-full"+ >+ {awsRegions.map((awsRegion) => (+ <SelectItem+ value={awsRegion.slug}+ className="flex w-full justify-between"+ key={`aws-environment-${awsRegion.slug}`}+ >+ {awsRegion.name} <Badge variant="success">{awsRegion.slug}</Badge>+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="mappingBehavior"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Mapping Behavior"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ onValueChange={(e) => onChange(e)}+ className="w-full border border-mineshaft-500"+ dropdownContainerClassName="max-w-full"+ >+ {mappingBehaviors.map((option) => (+ <SelectItem+ value={option.value}+ className="text-left"+ key={`mapping-behavior-${option.value}`}+ >+ {option.label}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ {selectedMappingBehavior === IntegrationMappingBehavior.MANY_TO_ONE && (+ <Controller+ control={control}+ name="secretName"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="AWS SM Secret Name"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input+ placeholder={`${currentWorkspace.name+ .toLowerCase()+ .replace(/ /g, "-")}/${selectedSourceEnvironment}`}+ {...field}+ />+ </FormControl>+ )}+ />+ )}+ </motion.div>+ </TabPanel>+ <TabPanel value={TabSections.Options}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: -30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <div className="ml-1 mt-2">+ <Controller+ control={control}+ name="shouldTag"+ render={({ field: { onChange, value } }) => (+ <Switch+ id="tag-aws"+ onCheckedChange={(isChecked) => onChange(isChecked)}+ isChecked={value}+ >+ Tag in AWS Secrets Manager+ </Switch>+ )}+ />+ </div>+ {shouldTagState && (+ <div className="mt-4 flex justify-between">+ <Controller+ control={control}+ name="tags.0.key"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Tag Key"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input placeholder="managed-by" {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="tags.0.value"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Tag Value"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input placeholder="infisical" {...field} />+ </FormControl>+ )}+ />+ </div>+ )}++ <Controller+ control={control}+ name="secretPrefix"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secret Prefix"+ errorText={error?.message}+ isError={Boolean(error)}+ className="mt-4"+ >+ <Input placeholder="INFISICAL_" {...field} />+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="kmsKeyId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Encryption Key"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ onValueChange={(e) => onChange(e)}+ className="w-full border border-mineshaft-500"+ dropdownContainerClassName="max-w-full"+ >+ {integrationAuthAwsKmsKeys?.length ? (+ integrationAuthAwsKmsKeys.map((key) => {+ return (+ <SelectItem+ value={key.id as string}+ key={`repo-id-${key.id}`}+ className="w-[28.4rem] text-sm"+ >+ {key.alias}+ </SelectItem>+ );+ })+ ) : (+ <SelectItem isDisabled value="no-keys" key="no-keys">+ No KMS keys available+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ />+ </motion.div>+ </TabPanel>+ </Tabs>+ <Button+ color="mineshaft"+ variant="outline_bg"+ type="submit"+ className="mb-6 ml-auto mr-6 mt-2"+ isLoading={isSubmitting}+ >+ Create Integration+ </Button>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in AWS Secrets Manager with secrets from+ Infisical.+ </span>+ </div>+ </form>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up AWS Secrets Manager Integration</title>+ </Helmet>+ {isintegrationAuthLoading || isIntegrationAuthAwsKmsKeysLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsxnew file mode 100644index 0000000000..2d8d0dafd5--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AwsSecretManagerConfigurePage } from "./AwsSecretManagerConfigurePage";++const AwsSecretManagerConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create"+)({+ component: AwsSecretManagerConfigurePage,+ validateSearch: zodValidator(AwsSecretManagerConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsxnew file mode 100644index 0000000000..a5c4538f3e--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx@@ -0,0 +1,325 @@+import { useEffect } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardTitle,+ FormControl,+ FormLabel,+ Input,+ Select,+ SelectItem,+ Switch+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import { useGetIntegrationAuthById } from "@app/hooks/api/integrationAuth";+import { IntegrationSyncBehavior } from "@app/hooks/api/integrations/types";+import { useGetWorkspaceById } from "@app/hooks/api/workspace";++const schema = z.object({+ baseUrl: z+ .string()+ .trim()+ .min(1, { message: "Azure App Configuration URL is required" })+ .url()+ .refine(+ (val) => val.endsWith(".azconfig.io"),+ "URL should have the following format: https://resource-name-here.azconfig.io"+ ),+ secretPath: z.string().trim().min(1, { message: "Secret path is required" }),+ sourceEnvironment: z.string().trim().min(1, { message: "Source environment is required" }),+ initialSyncBehavior: z.nativeEnum(IntegrationSyncBehavior),+ secretPrefix: z.string().default(""),+ useLabels: z.boolean().default(false),+ azureLabel: z.string().min(1).optional()+});++type TFormSchema = z.infer<typeof schema>;++const initialSyncBehaviors = [+ {+ label: "No Import - Overwrite all values in Azure App Configuration",+ value: IntegrationSyncBehavior.OVERWRITE_TARGET+ },+ {+ label: "Import - Prefer values from Azure App Configuration",+ value: IntegrationSyncBehavior.PREFER_TARGET+ },+ { label: "Import - Prefer values from Infisical", value: IntegrationSyncBehavior.PREFER_SOURCE }+];++export const AzureAppConfigurationConfigurePage = () => {+ const navigate = useNavigate();+ const {+ control,+ watch,+ setValue,+ handleSubmit,+ formState: { isSubmitting }+ } = useForm<TFormSchema>({+ resolver: zodResolver(schema),+ defaultValues: {+ secretPath: "/",+ secretPrefix: "",+ initialSyncBehavior: IntegrationSyncBehavior.PREFER_SOURCE+ }+ });++ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.AzureAppConfigurationsConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { currentWorkspace } = useWorkspace();++ const { data: workspace } = useGetWorkspaceById(currentWorkspace.id);+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");++ useEffect(() => {+ if (workspace) {+ setValue("sourceEnvironment", workspace.environments[0].slug);+ }+ }, [workspace]);++ const shouldUseLabels = watch("useLabels");++ const handleIntegrationSubmit = async ({+ secretPath,+ useLabels,+ sourceEnvironment,+ baseUrl,+ initialSyncBehavior,+ secretPrefix,+ azureLabel+ }: TFormSchema) => {+ try {+ if (!integrationAuth?.id) return;++ if (useLabels && !azureLabel) {+ createNotification({+ type: "error",+ text: "Label must be provided when 'Use Labels' is enabled"+ });+ return;+ }++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: baseUrl,+ sourceEnvironment,+ secretPath,+ metadata: {+ initialSyncBehavior,+ secretPrefix,+ ...(useLabels && { azureLabel })+ }+ });++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && workspace ? (+ <form+ onSubmit={handleSubmit(handleIntegrationSubmit)}+ className="flex h-full w-full flex-col items-center justify-center"+ >+ <Helmet>+ <title>Set Up Azure App Configuration Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="text-left text-xl"+ subTitle="Choose which environment in Infisical you want to sync to your Azure App Configuration."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Microsoft Azure.png"+ height={35}+ width={35}+ alt="Azure logo"+ />+ </div>+ <span className="ml-1.5">Azure App Configuration</span>+ <a+ href="https://infisical.com/docs/integrations/cloud/azure-app-configuration"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <div className="px-6">+ <div className="">+ <Controller+ control={control}+ name="sourceEnvironment"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ className="w-full border border-mineshaft-500"+ dropdownContainerClassName="max-w-full"+ value={field.value}+ onValueChange={(val) => {+ field.onChange(val);+ }}+ >+ {workspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />++ <div className="mb-2 flex w-full flex-col gap-1">+ <Controller+ control={control}+ name="useLabels"+ render={({ field: { onChange, value } }) => (+ <Switch+ id="use-environment-labels"+ onCheckedChange={(isChecked) => onChange(isChecked)}+ isChecked={value}+ >+ <FormLabel label="Use Labels" />+ </Switch>+ )}+ />++ {shouldUseLabels && (+ <Controller+ control={control}+ name="azureLabel"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ className=""+ // label="Label"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input {...field} placeholder="pre-prod" />+ </FormControl>+ )}+ />+ )}+ </div>+ </div>+ <Controller+ control={control}+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>+ <SecretPathInput {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="baseUrl"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Azure App Configuration URL"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input+ placeholder="https://infisical-configuration-integration-test.azconfig.io"+ {...field}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretPrefix"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="Key Prefix" errorText={error?.message} isError={Boolean(error)}>+ <Input {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="initialSyncBehavior"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Initial Sync Behavior"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ onValueChange={(e) => onChange(e)}+ className="w-full border border-mineshaft-500"+ dropdownContainerClassName="max-w-full"+ >+ {initialSyncBehaviors.map((b) => {+ return (+ <SelectItem+ value={b.value}+ key={`sync-behavior-${b.value}`}+ className="w-full"+ >+ {b.label}+ </SelectItem>+ );+ })}+ </Select>+ </FormControl>+ )}+ />+ <Button+ type="submit"+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mt-4"+ isLoading={isSubmitting}+ >+ Create Integration+ </Button>+ </div>+ </Card>+ </form>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsxnew file mode 100644index 0000000000..368db82e2b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AzureAppConfigurationConfigurePage } from "./AzureAppConfigurationConfigurePage";++const AzureAppConfigurationPageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create"+)({+ component: AzureAppConfigurationConfigurePage,+ validateSearch: zodValidator(AzureAppConfigurationPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsxnew file mode 100644index 0000000000..87931f3b93--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx@@ -0,0 +1,46 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const AzureAppConfigurationOauthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.HerokuOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ if (state !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "azure-app-configuration"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/azure-app-configuration/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..a52cffeac5--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AzureAppConfigurationOauthCallbackPage } from "./AzureAppConfigurationOauthCallbackPage";++export const AzureAppConfigurationOauthCallbackPageQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback"+)({+ component: AzureAppConfigurationOauthCallbackPage,+ validateSearch: zodValidator(AzureAppConfigurationOauthCallbackPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsxnew file mode 100644index 0000000000..5581cca4a6--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx@@ -0,0 +1,124 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const AzureDevopsAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [apiKey, setApiKey] = useState("");+ const [devopsOrgName, setDevopsOrgName] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);+ const { currentWorkspace } = useWorkspace();++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ localStorage.setItem("azure-devops-org-name", devopsOrgName);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "azure-devops",+ accessToken: btoa(`:${apiKey}`) // This is a base64 encoding of the API key without any username+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/azure-devops/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Azure DevOps Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Amazon Web Services.png"+ height={35}+ width={35}+ alt="Azure DevOps logo"+ />+ </div>+ <span className="ml-1.5">Azure DevOps Integration </span>+ <a+ target="_blank"+ href="https://infisical.com/docs/integrations/cloud/azure-devops"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>{" "}+ <FormControl+ className="px-6"+ label="Azure DevOps API Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <FormControl+ className="px-6"+ label="Azure DevOps Organization Name"+ tooltipText="This is the slug of the organization. An example would be 'my-acme-org'"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input+ placeholder=""+ value={devopsOrgName}+ onChange={(e) => setDevopsOrgName(e.target.value)}+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isLoading}+ >+ Connect to Azure DevOps+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/route.tsxnew file mode 100644index 0000000000..13091e083a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { AzureDevopsAuthorizePage } from "./AzureDevopsAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize"+)({+ component: AzureDevopsAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsxnew file mode 100644index 0000000000..82414b3afe--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx@@ -0,0 +1,192 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";+import { useGetWorkspaceById } from "@app/hooks/api/workspace";++export const AzureDevopsConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.AzureDevopsConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { currentWorkspace } = useWorkspace();++ const { data: workspace } = useGetWorkspaceById(currentWorkspace.id);+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? "",+ azureDevOpsOrgName: localStorage.getItem("azure-devops-org-name") ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [targetApp, setTargetApp] = useState("");++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (workspace) {+ setSelectedSourceEnvironment(workspace.environments[0].slug);+ }+ }, [workspace]);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: localStorage.getItem("azure-devops-org-name") || "",+ appId: targetApp,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth &&+ workspace &&+ selectedSourceEnvironment &&+ integrationAuthApps &&+ targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Azure DevOps Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment in Infisical you want to sync to secrets in Azure DevOps."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Amazon Web Services.png"+ height={35}+ width={35}+ alt="Azure DevOps logo"+ />+ </div>+ <span className="ml-1.5">Azure DevOps Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/azure-devops"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl label="Project Environment" className="mt-4 px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {workspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl className="px-6" label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Azure DevOps Project" className="px-6">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-environment-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/route.tsxnew file mode 100644index 0000000000..7585e904b0--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AzureDevopsConfigurePage } from "./AzureDevopsConfigurePage";++const AzureDevopsConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create"+)({+ component: AzureDevopsConfigurePage,+ validateSearch: zodValidator(AzureDevopsConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsxnew file mode 100644index 0000000000..aaf65289ac--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx@@ -0,0 +1,166 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import { useGetIntegrationAuthById } from "@app/hooks/api/integrationAuth";+import { IntegrationSyncBehavior } from "@app/hooks/api/integrations/types";+import { useGetWorkspaceById } from "@app/hooks/api/workspace";++const initialSyncBehaviors = [+ {+ label: "No Import - Overwrite all values in Azure Vault",+ value: IntegrationSyncBehavior.OVERWRITE_TARGET+ },+ {+ label: "Import - Prefer values from Azure Vault",+ value: IntegrationSyncBehavior.PREFER_TARGET+ },+ { label: "Import - Prefer values from Infisical", value: IntegrationSyncBehavior.PREFER_SOURCE }+];++export const AzureKeyVaultConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.AzureKeyVaultConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { currentWorkspace } = useWorkspace();++ const { data: workspace } = useGetWorkspaceById(currentWorkspace.id);+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState("");+ const [secretPath, setSecretPath] = useState("/");++ const [vaultBaseUrl, setVaultBaseUrl] = useState("");+ const [vaultBaseUrlErrorText, setVaultBaseUrlErrorText] = useState("");+ const [initialSyncBehavior, setInitialSyncBehavior] = useState(+ IntegrationSyncBehavior.PREFER_SOURCE+ );++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (workspace) {+ setSelectedSourceEnvironment(workspace.environments[0].slug);+ }+ }, [workspace]);++ const handleButtonClick = async () => {+ try {+ if (vaultBaseUrl.length === 0) {+ setVaultBaseUrlErrorText("Vault URI cannot be blank");+ return;+ }++ if (!vaultBaseUrl.startsWith("https://") || !vaultBaseUrl.endsWith("vault.azure.net")) {+ setVaultBaseUrlErrorText("Vault URI must be like https://<vault_name>.vault.azure.net");+ return;+ }++ if (!integrationAuth?.id) return;++ setIsLoading(true);+ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: vaultBaseUrl,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath,+ metadata: {+ initialSyncBehavior+ }+ });+ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && workspace && selectedSourceEnvironment ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Azure Key Vault Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {workspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`azure-key-vault-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl+ label="Vault URI"+ errorText={vaultBaseUrlErrorText}+ isError={vaultBaseUrlErrorText !== ""}+ >+ <Input+ placeholder="https://example.vault.azure.net"+ value={vaultBaseUrl}+ onChange={(e) => setVaultBaseUrl(e.target.value)}+ />+ </FormControl>+ <FormControl label="Initial Sync Behavior">+ <Select+ value={initialSyncBehavior}+ onValueChange={(e) => setInitialSyncBehavior(e as IntegrationSyncBehavior)}+ className="w-full"+ >+ {initialSyncBehaviors.map((b) => {+ return (+ <SelectItem value={b.value} key={`sync-behavior-${b.value}`}>+ {b.label}+ </SelectItem>+ );+ })}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsxnew file mode 100644index 0000000000..5bcbfdebc2--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AzureKeyVaultConfigurePage } from "./AzureKeyVaultConfigurePage";++const AzureKeyVaultConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create"+)({+ component: AzureKeyVaultConfigurePage,+ validateSearch: zodValidator(AzureKeyVaultConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsxnew file mode 100644index 0000000000..88c73aacb5--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx@@ -0,0 +1,46 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const AzureKeyVaultOauthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.AzureKeyVaultOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ if (state !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "azure-key-vault"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/heroku/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..e69a69e810--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AzureKeyVaultOauthCallbackPage } from "./AzureKeyVaultOauthCallback";++export const AzureKeyVaultOauthCallbackQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback"+)({+ component: AzureKeyVaultOauthCallbackPage,+ validateSearch: zodValidator(AzureKeyVaultOauthCallbackQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsxnew file mode 100644index 0000000000..5d4d9710b7--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx@@ -0,0 +1,307 @@+import { useEffect } from "react";+import { Controller, useForm } from "react-hook-form";+import { SiBitbucket } from "react-icons/si";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardTitle,+ FilterableSelect,+ FormControl,+ Input,+ Spinner+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import {+ useCreateIntegration,+ useGetIntegrationAuthApps,+ useGetIntegrationAuthBitBucketWorkspaces+} from "@app/hooks/api";+import { useGetIntegrationAuthBitBucketEnvironments } from "@app/hooks/api/integrationAuth/queries";++enum BitbucketScope {+ Repo = "repo",+ Env = "environment"+}++const ScopeOptions = [+ {+ label: "Repository",+ value: BitbucketScope.Repo+ },+ {+ label: "Deployment Environment",+ value: BitbucketScope.Env+ }+];++const formSchema = z+ .object({+ secretPath: z.string().default("/"),+ sourceEnvironment: z.object({ name: z.string(), slug: z.string() }),+ targetRepo: z.object({ name: z.string(), appId: z.string() }),+ targetWorkspace: z.object({ name: z.string(), slug: z.string() }),+ targetEnvironment: z.object({ name: z.string(), uuid: z.string() }).optional(),+ scope: z.object({ label: z.string(), value: z.nativeEnum(BitbucketScope) })+ })+ .superRefine((val, ctx) => {+ if (val.scope.value === BitbucketScope.Env && !val.targetEnvironment) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ path: ["targetEnvironment"],+ message: "Required"+ });+ }+ });++type TFormData = z.infer<typeof formSchema>;++export const BitbucketConfigurePage = () => {+ const navigate = useNavigate();+ const createIntegration = useCreateIntegration();++ const { watch, control, reset, handleSubmit } = useForm<TFormData>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ secretPath: "/"+ }+ });++ const bitBucketWorkspace = watch("targetWorkspace");+ const bitBucketRepo = watch("targetRepo");++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.BitbucketConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { currentWorkspace } = useWorkspace();++ const { data: bitbucketWorkspaces, isPending: isBitbucketWorkspacesLoading } =+ useGetIntegrationAuthBitBucketWorkspaces((integrationAuthId as string) ?? "");++ const { data: bitbucketRepos, isPending: isBitbucketReposLoading } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? "",+ workspaceSlug: bitBucketWorkspace?.slug+ });++ const { data: bitbucketEnvironments } = useGetIntegrationAuthBitBucketEnvironments(+ {+ integrationAuthId: (integrationAuthId as string) ?? "",+ workspaceSlug: bitBucketWorkspace?.slug,+ repoSlug: bitBucketRepo?.appId+ },+ { enabled: Boolean(bitBucketWorkspace?.slug && bitBucketRepo?.appId) }+ );++ const onSubmit = async ({+ targetRepo,+ sourceEnvironment,+ targetWorkspace,+ secretPath,+ targetEnvironment,+ scope+ }: TFormData) => {+ try {+ await createIntegration.mutateAsync({+ integrationAuthId,+ isActive: true,+ app: targetRepo.name,+ appId: targetRepo.appId,+ sourceEnvironment: sourceEnvironment.slug,+ targetEnvironment: targetWorkspace.name,+ targetEnvironmentId: targetWorkspace.slug,+ ...(scope.value === BitbucketScope.Env &&+ targetEnvironment && {+ targetService: targetEnvironment.name,+ targetServiceId: targetEnvironment.uuid+ }),+ secretPath+ });++ createNotification({+ type: "success",+ text: "Successfully created integration"+ });+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ createNotification({+ type: "error",+ text: "Failed to create integration"+ });+ console.error(err);+ }+ };++ useEffect(() => {+ if (!bitbucketRepos || !bitbucketWorkspaces || !currentWorkspace) return;++ reset({+ targetRepo: bitbucketRepos[0],+ targetWorkspace: bitbucketWorkspaces[0],+ sourceEnvironment: currentWorkspace.environments[0],+ secretPath: "/",+ scope: ScopeOptions[0]+ });+ }, [bitbucketWorkspaces, bitbucketRepos, currentWorkspace]);++ if (isBitbucketWorkspacesLoading || isBitbucketReposLoading)+ return (+ <div className="flex h-full w-full items-center justify-center p-24">+ <Spinner />+ </div>+ );++ const scope = watch("scope");++ return (+ <form+ onSubmit={handleSubmit(onSubmit)}+ className="flex h-full w-full items-center justify-center"+ >+ <Card className="max-w-md rounded-md p-8 pt-4">+ <CardTitle className="text-center">+ <SiBitbucket size="1.2rem" className="mb-1 mr-2 inline-block" />+ Bitbucket Integration+ </CardTitle>+ <Controller+ control={control}+ name="sourceEnvironment"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Project Environment"+ >+ <FilterableSelect+ getOptionValue={(option) => option.slug}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={currentWorkspace?.environments}+ placeholder="Select a project environment"+ isDisabled={!currentWorkspace?.environments.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretPath"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl isError={Boolean(error)} label="Secrets Path">+ <Input+ value={value}+ onChange={onChange}+ placeholder='Provide a path (defaults to "/")'+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetWorkspace"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Bitbucket Workspace"+ >+ <FilterableSelect+ getOptionValue={(option) => option.slug}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={bitbucketWorkspaces}+ placeholder={+ bitbucketWorkspaces?.length ? "Select a workspace..." : "No workspaces found..."+ }+ isDisabled={!bitbucketWorkspaces?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetRepo"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl errorText={error?.message} isError={Boolean(error)} label="Bitbucket Repo">+ <FilterableSelect+ getOptionValue={(option) => option.appId!}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={bitbucketRepos}+ placeholder={+ bitbucketRepos?.length ? "Select a repository..." : "No repositories found..."+ }+ isDisabled={!bitbucketRepos?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="scope"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl errorText={error?.message} isError={Boolean(error)} label="Scope">+ <FilterableSelect+ value={value}+ getOptionValue={(option) => option.value}+ getOptionLabel={(option) => option.label}+ onChange={onChange}+ options={ScopeOptions}+ />+ </FormControl>+ )}+ />++ {scope?.value === BitbucketScope.Env && (+ <Controller+ control={control}+ name="targetEnvironment"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Bitbucket Deployment Environment"+ >+ <FilterableSelect+ getOptionValue={(option) => option.uuid}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={bitbucketEnvironments}+ placeholder={+ bitbucketEnvironments?.length+ ? "Select an environment..."+ : "No environments found..."+ }+ isDisabled={!bitbucketEnvironments?.length}+ />+ </FormControl>+ )}+ />+ )}+ <Button+ type="submit"+ colorSchema="primary"+ className="mt-4"+ isLoading={createIntegration.isPending}+ isDisabled={createIntegration.isPending || !bitbucketRepos?.length}+ >+ Create Integration+ </Button>+ </Card>+ </form>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/BitbucketConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/BitbucketConfigurePage/route.tsxnew file mode 100644index 0000000000..514a915ef4--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/BitbucketConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { BitbucketConfigurePage } from "./BitbucketConfigurePage";++const BitbucketConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create"+)({+ component: BitbucketConfigurePage,+ validateSearch: zodValidator(BitbucketConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsxnew file mode 100644index 0000000000..1d0f8d3da9--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx@@ -0,0 +1,45 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const BitbucketOauthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();+ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.BitbucketOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ if (state !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "bitbucket"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/heroku/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..1c4ed2f53d--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { BitbucketOauthCallbackPage } from "./BitbucketOauthCallbackPage";++export const BitbucketOauthCallbackQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback"+)({+ component: BitbucketOauthCallbackPage,+ validateSearch: zodValidator(BitbucketOauthCallbackQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsxnew file mode 100644index 0000000000..b3ba43fbdf--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx@@ -0,0 +1,115 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const ChecklyAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const [accessToken, setAccessToken] = useState("");+ const [accessTokenErrorText, setAccessTokenErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setAccessTokenErrorText("");+ if (accessToken.length === 0) {+ setAccessTokenErrorText("Access token cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "checkly",+ accessToken+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/checkly/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Checkly Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your API key, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Checkly.png"+ height={30}+ width={30}+ alt="Checkly logo"+ />+ </div>+ <span className="ml-2.5">Checkly Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/checkly"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl+ label="Checkly API key"+ errorText={accessTokenErrorText}+ isError={accessTokenErrorText !== ""}+ className="mx-6"+ >+ <Input+ placeholder=""+ value={accessToken}+ type="password"+ autoComplete="new-password"+ onChange={(e) => setAccessToken(e.target.value)}+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Connect to Checkly+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/ChecklyAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/ChecklyAuthorizePage/route.tsxnew file mode 100644index 0000000000..680577ff98--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/ChecklyAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { ChecklyAuthorizePage } from "./ChecklyAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize"+)({+ component: ChecklyAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsxnew file mode 100644index 0000000000..99b182bfe0--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx@@ -0,0 +1,312 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { motion } from "framer-motion";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById,+ useGetIntegrationAuthChecklyGroups+} from "@app/hooks/api/integrationAuth";+import { useGetWorkspaceById } from "@app/hooks/api/workspace";++enum TabSections {+ Connection = "connection",+ Options = "options"+}++export const ChecklyConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.ChecklyConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { currentWorkspace } = useWorkspace();++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [secretSuffix, setSecretSuffix] = useState("");++ const [targetAppId, setTargetAppId] = useState("");+ const [targetGroupId, setTargetGroupId] = useState("");++ const [isLoading, setIsLoading] = useState(false);++ const { data: workspace } = useGetWorkspaceById(currentWorkspace.id);+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps, isPending: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });+ const { data: integrationAuthGroups, isPending: isintegrationAuthGroupsLoading } =+ useGetIntegrationAuthChecklyGroups({+ integrationAuthId: (integrationAuthId as string) ?? "",+ accountId: targetAppId+ });++ useEffect(() => {+ if (workspace) {+ setSelectedSourceEnvironment(workspace.environments[0].slug);+ }+ }, [workspace]);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetAppId(integrationAuthApps[0].appId as string);+ } else {+ setTargetAppId("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ const targetApp = integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ );+ const targetGroup = integrationAuthGroups?.find(+ (group) => group.groupId === Number(targetGroupId)+ );++ if (!targetApp) return;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp?.name,+ appId: targetApp?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ targetService: targetGroup?.name,+ targetServiceId: targetGroup?.groupId ? String(targetGroup?.groupId) : undefined,+ secretPath,+ metadata: {+ secretSuffix+ }+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth &&+ workspace &&+ selectedSourceEnvironment &&+ integrationAuthApps &&+ integrationAuthGroups &&+ targetAppId ? (+ <div className="flex h-full w-full flex-col items-center justify-center bg-gradient-to-tr from-mineshaft-900 to-bunker-900 py-6">+ <Helmet>+ <title>Set Up Checkly Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment in Infisical you want to sync to Checkly environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Checkly.png"+ height={30}+ width={30}+ alt="Checkly logo"+ />+ </div>+ <span className="ml-2.5">Checkly Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/checkly"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Tabs defaultValue={TabSections.Connection} className="px-6">+ <TabList>+ <div className="flex w-full flex-row border-b border-mineshaft-600">+ <Tab value={TabSections.Connection}>Connection</Tab>+ <Tab value={TabSections.Options}>Options</Tab>+ </div>+ </TabList>+ <TabPanel value={TabSections.Connection}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: 30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <FormControl label="Infisical Project Environment">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {workspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Checkly Account">+ <Select+ value={targetAppId}+ onValueChange={(val) => setTargetAppId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.appId as string}+ key={`target-app-${integrationAuthApp.appId as string}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No apps found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Checkly Group (Optional)">+ <Select+ value={targetGroupId}+ onValueChange={(val) => setTargetGroupId(val)}+ className="w-full border border-mineshaft-500"+ >+ {integrationAuthGroups.length > 0 ? (+ integrationAuthGroups.map((integrationAuthGroup) => (+ <SelectItem+ value={String(integrationAuthGroup.groupId)}+ key={`target-group-${String(integrationAuthGroup.groupId)}`}+ >+ {integrationAuthGroup.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-group-none">+ No groups found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ </motion.div>+ </TabPanel>+ <TabPanel value={TabSections.Options}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: -30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <FormControl label="Append Secret Names with..." className="pb-[9.75rem]">+ <Input+ value={secretSuffix}+ onChange={(evt) => setSecretSuffix(evt.target.value)}+ placeholder="Provide a suffix for secret names, default is no suffix"+ />+ </FormControl>+ </motion.div>+ </TabPanel>+ </Tabs>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Checkly Integration</title>+ </Helmet>+ {isIntegrationAuthAppsLoading || isintegrationAuthGroupsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/ChecklyConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/ChecklyConfigurePage/route.tsxnew file mode 100644index 0000000000..831a881a43--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/ChecklyConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { ChecklyConfigurePage } from "./ChecklyConfigurePage";++const ChecklyConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create"+)({+ component: ChecklyConfigurePage,+ validateSearch: zodValidator(ChecklyConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsxnew file mode 100644index 0000000000..5de27cf492--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx@@ -0,0 +1,108 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const CircleCIAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);+ const { currentWorkspace } = useWorkspace();++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "circleci",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/circleci/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize CircleCI Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your API Token, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/CircleCI.png"+ height={30}+ width={30}+ alt="CircleCI logo"+ />+ </div>+ <span className="ml-1.5">CircleCI Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cicd/circleci"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl+ label="CircleCI API Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ className="px-6"+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isLoading}+ >+ Connect to CircleCI+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CircleCIAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CircleCIAuthorizePage/route.tsxnew file mode 100644index 0000000000..1fd0cd2664--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CircleCIAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { CircleCIAuthorizePage } from "./CircleCIAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize"+)({+ component: CircleCIAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsxnew file mode 100644index 0000000000..23737dc2c7--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx@@ -0,0 +1,313 @@+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardTitle,+ FilterableSelect,+ FormControl,+ Select,+ SelectItem,+ Spinner+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration, useGetIntegrationAuthCircleCIOrganizations } from "@app/hooks/api";+import { CircleCiScope } from "@app/hooks/api/integrationAuth/types";++const formSchema = z.discriminatedUnion("scope", [+ z.object({+ scope: z.literal(CircleCiScope.Context),+ secretPath: z.string().default("/"),+ sourceEnvironment: z.object({ name: z.string(), slug: z.string() }),+ targetOrg: z.object({ name: z.string().min(1), slug: z.string().min(1) }),+ targetContext: z.object({ name: z.string().min(1), id: z.string().min(1) })+ }),+ z.object({+ scope: z.literal(CircleCiScope.Project),+ secretPath: z.string().default("/"),+ sourceEnvironment: z.object({ name: z.string(), slug: z.string() }),+ targetOrg: z.object({ name: z.string().min(1), slug: z.string().min(1) }),+ targetProject: z.object({ name: z.string().min(1), id: z.string().min(1) })+ })+]);++type TFormData = z.infer<typeof formSchema>;++export const CircleCIConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync, isPending: isCreatingIntegration } = useCreateIntegration();+ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.CircleConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { control, watch, handleSubmit, setValue } = useForm<TFormData>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ secretPath: "/",+ sourceEnvironment: currentWorkspace?.environments[0],+ scope: CircleCiScope.Project+ }+ });++ const selectedScope = watch("scope");+ const selectedOrg = watch("targetOrg");++ const { data: circleCIOrganizations, isPending: isCircleCIOrganizationsLoading } =+ useGetIntegrationAuthCircleCIOrganizations(integrationAuthId);++ const selectedOrganizationEntry = selectedOrg+ ? circleCIOrganizations?.find((org) => org.slug === selectedOrg.slug)+ : undefined;++ const onSubmit = async (data: TFormData) => {+ try {+ if (data.scope === CircleCiScope.Context) {+ await mutateAsync({+ scope: data.scope,+ integrationAuthId,+ isActive: true,+ sourceEnvironment: data.sourceEnvironment.slug,+ app: data.targetContext.name,+ appId: data.targetContext.id,+ owner: data.targetOrg.name,+ secretPath: data.secretPath+ });+ } else {+ await mutateAsync({+ scope: data.scope,+ integrationAuthId,+ isActive: true,+ app: data.targetProject.name, // project name+ owner: data.targetOrg.name, // organization name+ appId: data.targetProject.id, // project id (used for syncing)+ sourceEnvironment: data.sourceEnvironment.slug,+ secretPath: data.secretPath+ });+ }++ createNotification({+ type: "success",+ text: "Successfully created integration"+ });+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ createNotification({+ type: "error",+ text: "Failed to create integration"+ });+ console.error(err);+ }+ };++ if (isCircleCIOrganizationsLoading)+ return (+ <div className="flex h-full w-full items-center justify-center p-24">+ <Spinner />+ </div>+ );++ return (+ <form+ onSubmit={handleSubmit(onSubmit)}+ className="flex h-full w-full items-center justify-center"+ >+ <Card className="max-w-lg rounded-md p-8 pt-4">+ <CardTitle+ className="w-full px-0 text-left text-xl"+ subTitle="Choose which environment or folder in Infisical you want to sync to CircleCI."+ >+ <div className="flex w-full flex-row items-center justify-between">+ <div className="flex flex-row items-center gap-1.5">+ <img+ src="/images/integrations/CircleCI.png"+ height={30}+ width={30}+ alt="CircleCI logo"+ />++ <span className="">CircleCI Context Integration </span>+ </div>++ <a+ href="https://infisical.com/docs/integrations/cicd/circleci"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 flex cursor-pointer flex-row items-center gap-0.5 rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Controller+ control={control}+ name="sourceEnvironment"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Project Environment"+ >+ <FilterableSelect+ getOptionValue={(option) => option.slug}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={currentWorkspace?.environments}+ placeholder="Select a project environment"+ isDisabled={!currentWorkspace?.environments.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>+ <SecretPathInput {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetOrg"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="CircleCI Organization"+ >+ <FilterableSelect+ getOptionValue={(option) => option.slug}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={(e) => {+ setValue("targetProject", {+ name: "",+ id: ""+ });+ setValue("targetContext", {+ name: "",+ id: ""+ });++ onChange(e);+ }}+ options={circleCIOrganizations}+ placeholder={+ circleCIOrganizations?.length+ ? "Select an organization..."+ : "No organizations found..."+ }+ isDisabled={!circleCIOrganizations?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="scope"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl label="Scope" errorText={error?.message} isError={Boolean(error)}>+ <Select+ defaultValue={field.value}+ onValueChange={(e) => {+ onChange(e);+ }}+ className="w-full border border-mineshaft-500"+ >+ <SelectItem value={CircleCiScope.Project}>Project</SelectItem>+ <SelectItem value={CircleCiScope.Context}>Context</SelectItem>+ </Select>+ </FormControl>+ )}+ />+ {selectedScope === CircleCiScope.Context && selectedOrganizationEntry && (+ <Controller+ control={control}+ name="targetContext"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="CircleCI Context"+ >+ <FilterableSelect+ value={value}+ getOptionValue={(option) => option.id!}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={selectedOrganizationEntry?.contexts}+ placeholder={+ selectedOrganizationEntry.contexts?.length+ ? "Select a context..."+ : "No contexts found..."+ }+ isDisabled={!selectedOrganizationEntry.contexts?.length}+ />+ </FormControl>+ )}+ />+ )}+ {selectedScope === CircleCiScope.Project && selectedOrganizationEntry && (+ <Controller+ control={control}+ name="targetProject"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="CircleCI Project"+ >+ <FilterableSelect+ value={value}+ getOptionValue={(option) => option.id!}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={selectedOrganizationEntry?.projects}+ placeholder={+ selectedOrganizationEntry.projects?.length+ ? "Select a project..."+ : "No projects found..."+ }+ isDisabled={!selectedOrganizationEntry.projects?.length}+ />+ </FormControl>+ )}+ />+ )}+ <Button+ type="submit"+ colorSchema="primary"+ className="mt-4"+ isLoading={isCreatingIntegration}+ isDisabled={isCreatingIntegration}+ >+ Create Integration+ </Button>+ </Card>+ </form>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CircleCIConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CircleCIConfigurePage/route.tsxnew file mode 100644index 0000000000..fd08b98705--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CircleCIConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { CircleCIConfigurePage } from "./CircleCIConfigurePage";++const CircleCIConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create"+)({+ component: CircleCIConfigurePage,+ validateSearch: zodValidator(CircleCIConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsxnew file mode 100644index 0000000000..4af4ca60f9--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx@@ -0,0 +1,72 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const Cloud66AuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const { currentWorkspace } = useWorkspace();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("Access token cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "cloud-66",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/cloud-66/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Cloud 66 Integration</CardTitle>+ <FormControl+ label="Cloud 66 Personal Access Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Cloud 66+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/Cloud66AuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/Cloud66AuthorizePage/route.tsxnew file mode 100644index 0000000000..d73b4ff336--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/Cloud66AuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { Cloud66AuthorizePage } from "./Cloud66AuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize"+)({+ component: Cloud66AuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsxnew file mode 100644index 0000000000..73c410ce27--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx@@ -0,0 +1,151 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const Cloud66ConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.Cloud66ConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { currentWorkspace } = useWorkspace();+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState("");+ const [targetApp, setTargetApp] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (currentWorkspace) {+ setSelectedSourceEnvironment(currentWorkspace.environments[0].slug);+ }+ }, [currentWorkspace]);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Cloud 66 Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Cloud 66 Application" className="mt-4">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No applications found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/Cloud66ConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/Cloud66ConfigurePage/route.tsxnew file mode 100644index 0000000000..f3f3ec878d--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/Cloud66ConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { Cloud66ConfigurePage } from "./Cloud66ConfigurePage";++const Cloud66ConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create"+)({+ component: Cloud66ConfigurePage,+ validateSearch: zodValidator(Cloud66ConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsxnew file mode 100644index 0000000000..58e7455be0--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx@@ -0,0 +1,101 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const CloudflarePagesAuthorizePage = () => {+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [accessKey, setAccessKey] = useState("");+ const [accessKeyErrorText, setAccessKeyErrorText] = useState("");+ const [accountId, setAccountId] = useState("");+ const [accountIdErrorText, setAccountIdErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const { currentWorkspace } = useWorkspace();+ const navigate = useNavigate();++ const handleButtonClick = async () => {+ try {+ setAccessKeyErrorText("");+ setAccountIdErrorText("");+ if (accessKey.length === 0 || accountId.length === 0) {+ if (accessKey.length === 0) setAccessKeyErrorText("API token cannot be blank!");+ if (accountId.length === 0) setAccountIdErrorText("Account ID cannot be blank!");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "cloudflare-pages",+ accessId: accountId,+ accessToken: accessKey+ });++ setAccessKey("");+ setAccountId("");+ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/cloudflare-pages/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left"+ subTitle="After adding your API-key, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ Cloudflare Pages Integration+ </CardTitle>+ <FormControl+ label="Cloudflare Pages API token"+ errorText={accessKeyErrorText}+ isError={accessKeyErrorText !== ""}+ className="mx-6"+ >+ <Input+ placeholder=""+ value={accessKey}+ type="password"+ autoComplete="new-password"+ onChange={(e) => setAccessKey(e.target.value)}+ />+ </FormControl>+ <FormControl+ label="Cloudflare Pages Account ID"+ errorText={accountIdErrorText}+ isError={accountIdErrorText !== ""}+ className="mx-6"+ >+ <Input placeholder="" value={accountId} onChange={(e) => setAccountId(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Connect to Cloudflare Pages+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsxnew file mode 100644index 0000000000..bdc5ba5f40--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { CloudflarePagesAuthorizePage } from "./CloudflarePagesAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize"+)({+ component: CloudflarePagesAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsxnew file mode 100644index 0000000000..1101d8081a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx@@ -0,0 +1,219 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";+import axios from "axios";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Select,+ SelectItem,+ Switch+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration, useGetWorkspaceById } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++const cloudflareEnvironments = [+ { name: "Production", slug: "production" },+ { name: "Preview", slug: "preview" }+];++export const CloudflarePagesConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.CloudflarePagesConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const [secretPath, setSecretPath] = useState("/");+ const { data: workspace } = useGetWorkspaceById(currentWorkspace.id);+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState("");+ const [targetApp, setTargetApp] = useState("");+ const [targetAppId, setTargetAppId] = useState("");+ const [targetEnvironment, setTargetEnvironment] = useState("");+ const [shouldAutoRedeploy, setShouldAutoRedeploy] = useState(false);++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (workspace) {+ setSelectedSourceEnvironment(workspace.environments[0].slug);+ }+ }, [workspace]);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ setTargetAppId(String(integrationAuthApps[0].appId));+ setTargetEnvironment(cloudflareEnvironments[0].slug);+ } else {+ setTargetApp("none");+ setTargetEnvironment(cloudflareEnvironments[0].slug);+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: targetAppId,+ sourceEnvironment: selectedSourceEnvironment,+ targetEnvironment,+ secretPath,+ metadata: {+ shouldAutoRedeploy+ }+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);++ let errorMessage: string = "Something went wrong!";+ if (axios.isAxiosError(err)) {+ const { message } = err?.response?.data as { message: string };+ errorMessage = message;+ }++ createNotification({+ text: errorMessage,+ type: "error"+ });+ setIsLoading(false);+ }+ };++ return integrationAuth &&+ workspace &&+ selectedSourceEnvironment &&+ integrationAuthApps &&+ targetEnvironment &&+ targetApp ? (+ <div className="flex h-full w-full items-center justify-center bg-gradient-to-tr from-mineshaft-900 to-bunker-900">+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <CardTitle+ className="px-6 text-left"+ subTitle="Choose which environment in Infisical you want to sync with your Cloudflare Pages project."+ >+ Cloudflare Pages Integration+ </CardTitle>+ <FormControl label="Infisical Project Environment" className="mt-2 px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {workspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Infisical Secret Path" className="mt-2 px-6">+ <SecretPathInput+ value={secretPath}+ onChange={(value) => setSecretPath(value)}+ environment={selectedSourceEnvironment}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Cloudflare Pages Project" className="mt-4 px-6">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No apps found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Cloudflare Pages Environment" className="mt-4 px-6">+ <Select+ value={targetEnvironment}+ onValueChange={(val) => setTargetEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {cloudflareEnvironments.map((cloudflareEnvironment) => (+ <SelectItem+ value={cloudflareEnvironment.slug}+ key={`target-environment-${cloudflareEnvironment.slug}`}+ >+ {cloudflareEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <div className="mb-[2.36rem] ml-1 px-6">+ <Switch+ id="redeploy-cloudflare-pages"+ onCheckedChange={(isChecked: boolean) => setShouldAutoRedeploy(isChecked)}+ isChecked={shouldAutoRedeploy}+ >+ Auto-redeploy service upon secret change+ </Switch>+ </div>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/route.tsxnew file mode 100644index 0000000000..6ec6d2b2df--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { CloudflarePagesConfigurePage } from "./CloudflarePagesConfigurePage";++const CloudflarePagesConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create"+)({+ component: CloudflarePagesConfigurePage,+ validateSearch: zodValidator(CloudflarePagesConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsxnew file mode 100644index 0000000000..33b33f739f--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx@@ -0,0 +1,101 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const CloudflareWorkersAuthorizePage = () => {+ const navigate = useNavigate();++ const { currentWorkspace } = useWorkspace();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [accessKey, setAccessKey] = useState("");+ const [accessKeyErrorText, setAccessKeyErrorText] = useState("");+ const [accountId, setAccountId] = useState("");+ const [accountIdErrorText, setAccountIdErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setAccessKeyErrorText("");+ setAccountIdErrorText("");+ if (accessKey.length === 0 || accountId.length === 0) {+ if (accessKey.length === 0) setAccessKeyErrorText("API token cannot be blank!");+ if (accountId.length === 0) setAccountIdErrorText("Account ID cannot be blank!");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "cloudflare-workers",+ accessId: accountId,+ accessToken: accessKey+ });++ setAccessKey("");+ setAccountId("");+ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/cloudflare-workers/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left"+ subTitle="After adding your API-key, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ Cloudflare Workers Integration+ </CardTitle>+ <FormControl+ label="Cloudflare Workers API token"+ errorText={accessKeyErrorText}+ isError={accessKeyErrorText !== ""}+ className="mx-6"+ >+ <Input+ placeholder=""+ value={accessKey}+ type="password"+ autoComplete="new-password"+ onChange={(e) => setAccessKey(e.target.value)}+ />+ </FormControl>+ <FormControl+ label="Cloudflare Workers Account ID"+ errorText={accountIdErrorText}+ isError={accountIdErrorText !== ""}+ className="mx-6"+ >+ <Input placeholder="" value={accountId} onChange={(e) => setAccountId(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Connect to Cloudflare Workers+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsxnew file mode 100644index 0000000000..6365e26a3c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { CloudflareWorkersAuthorizePage } from "./CloudflareWorkersAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize"+)({+ component: CloudflareWorkersAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsxnew file mode 100644index 0000000000..0f21496330--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx@@ -0,0 +1,162 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";+import axios from "axios";++import { createNotification } from "@app/components/notifications";+import { Button, Card, CardTitle, FormControl, Select, SelectItem } from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const CloudflareWorkersConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();+ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.CloudflareWorkersConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");++ const [targetApp, setTargetApp] = useState("");+ const [targetAppId, setTargetAppId] = useState("");++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ setTargetAppId(String(integrationAuthApps[0].appId));+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: targetAppId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);++ let errorMessage: string = "Something went wrong!";+ if (axios.isAxiosError(err)) {+ const { message } = err?.response?.data as { message: string };+ errorMessage = message;+ }++ createNotification({+ text: errorMessage,+ type: "error"+ });+ setIsLoading(false);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center bg-gradient-to-tr from-mineshaft-900 to-bunker-900">+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <CardTitle+ className="px-6 text-left"+ subTitle="Choose which environment in Infisical you want to sync with your Cloudflare Workers project."+ >+ Cloudflare Workers Integration+ </CardTitle>+ <FormControl label="Infisical Project Environment" className="mt-2 px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Infisical Secret Path" className="mt-2 px-6">+ <SecretPathInput+ value={secretPath}+ onChange={(value) => setSecretPath(value)}+ environment={selectedSourceEnvironment}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Cloudflare Workers Project" className="mt-4 px-6">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No apps found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsxnew file mode 100644index 0000000000..597000dec0--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { CloudflareWorkersConfigurePage } from "./CloudflareWorkersConfigurePage";++const CloudflareWorkersConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create"+)({+ component: CloudflareWorkersConfigurePage,+ validateSearch: zodValidator(CloudflareWorkersConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsxnew file mode 100644index 0000000000..622b71f83c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx@@ -0,0 +1,71 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const CodefreshAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);+ const { currentWorkspace } = useWorkspace();++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "codefresh",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/codefresh/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Codefresh Integration</CardTitle>+ <FormControl+ label="Codefresh API Key"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Codefresh+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CodefreshAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CodefreshAuthorizePage/route.tsxnew file mode 100644index 0000000000..42e426306e--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CodefreshAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { CodefreshAuthorizePage } from "./CodefreshAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize"+)({+ component: CodefreshAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsxnew file mode 100644index 0000000000..1961236d91--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx@@ -0,0 +1,147 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const CodefreshConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.CodefreshConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetApp, setTargetApp] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Codefresh Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Codefresh Service" className="mt-4">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No services found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/CodefreshConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/CodefreshConfigurePage/route.tsxnew file mode 100644index 0000000000..bae29183c9--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/CodefreshConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { CodefreshConfigurePage } from "./CodefreshConfigurePage";++const CodefreshConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create"+)({+ component: CodefreshConfigurePage,+ validateSearch: zodValidator(CodefreshConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsxnew file mode 100644index 0000000000..920518b243--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx@@ -0,0 +1,130 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const DatabricksAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync, isPending } = useSaveIntegrationAccessToken();++ const [apiKey, setApiKey] = useState("");+ const [instanceURL, setInstanceURL] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [instanceURLErrorText, setInstanceURLErrorText] = useState("");++ const { currentWorkspace } = useWorkspace();++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ setInstanceURLErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }+ if (instanceURL.length === 0) {+ setInstanceURLErrorText("Instance URL cannot be blank");+ return;+ }++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "databricks",+ url: instanceURL.replace(/\/$/, ""),+ accessToken: apiKey+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/databricks/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Databricks Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your Access Token, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Databricks.png"+ height={30}+ width={30}+ alt="Databricks logo"+ />+ </div>+ <span className="ml-1.5">Databricks Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/databricks"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl+ label="Databricks Instance URL"+ errorText={instanceURLErrorText}+ isError={instanceURLErrorText !== ""}+ className="px-6"+ >+ <Input+ value={instanceURL}+ onChange={(e) => setInstanceURL(e.target.value)}+ placeholder="https://xxxx.cloud.databricks.com"+ />+ </FormControl>+ <FormControl+ label="Access Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ className="px-6"+ >+ <Input+ placeholder=""+ value={apiKey}+ onChange={(e) => setApiKey(e.target.value)}+ type="password"+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isPending}+ isDisabled={isPending}+ >+ Connect to Databricks+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/DatabricksAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/DatabricksAuthorizePage/route.tsxnew file mode 100644index 0000000000..f1fc79379f--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DatabricksAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { DatabricksAuthorizePage } from "./DatabricksAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize"+)({+ component: DatabricksAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsxnew file mode 100644index 0000000000..be605cd581--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx@@ -0,0 +1,241 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import {+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const DatabricksConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync, isPending } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.DatabricksConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth, isLoading: isintegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );++ const { data: integrationAuthScopes, isLoading: isIntegrationAuthScopesLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetScope, setTargetScope] = useState("");+ const [secretPath, setSecretPath] = useState("/");++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ if (!targetScope) {+ createNotification({+ type: "error",+ text: "Please select a scope"+ });+ return;+ }++ const selectedScope = integrationAuthScopes?.find(+ (integrationAuthScope) => integrationAuthScope.name === targetScope+ );++ if (!selectedScope) {+ createNotification({+ type: "error",+ text: "Invalid scope selected"+ });+ return;+ }++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: selectedScope.name, // scope name+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthScopes ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up Databricks Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment or folder in Infisical you want to sync to which Databricks secrets scope."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Databricks.png"+ height={30}+ width={30}+ alt="Databricks logo"+ />+ </div>+ <span className="ml-1.5">Databricks Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/databricks"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>++ <FormControl label="Project Environment" className="px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path" className="px-6">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>++ {integrationAuthScopes && (+ <FormControl label="Databricks Scope" className="px-6">+ <Select+ value={targetScope}+ onValueChange={(val) => {+ setTargetScope(val);+ }}+ className="w-full border border-mineshaft-500"+ placeholder={+ integrationAuthScopes.length === 0 ? "No scopes found." : "Select scope..."+ }+ isDisabled={integrationAuthScopes.length === 0}+ >+ {integrationAuthScopes.length > 0 ? (+ integrationAuthScopes.map((scope) => (+ <SelectItem value={scope.name!} key={`target-scope-${scope.name}`}>+ {scope.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No scopes found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isPending}+ isDisabled={integrationAuthScopes.length === 0 || isPending}+ >+ Create Integration+ </Button>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in Databricks with secrets from Infisical.+ </span>+ </div>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Databricks Integration</title>+ </Helmet>+ {isIntegrationAuthScopesLoading || isintegrationAuthLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/DatabricksConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/DatabricksConfigurePage/route.tsxnew file mode 100644index 0000000000..9716788240--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DatabricksConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { DatabricksConfigurePage } from "./DatabricksConfigurePage";++const DatabricksConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create"+)({+ component: DatabricksConfigurePage,+ validateSearch: zodValidator(DatabricksConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsxnew file mode 100644index 0000000000..be2483188d--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx@@ -0,0 +1,71 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const DigitalOceanAppPlatformAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);+ const { currentWorkspace } = useWorkspace();++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "digital-ocean-app-platform",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/digital-ocean-app-platform/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Digital Ocean App Platform Integration</CardTitle>+ <FormControl+ label="Digital Ocean API Key"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Digital Ocean App Platform+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsxnew file mode 100644index 0000000000..a7f41e997c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { DigitalOceanAppPlatformAuthorizePage } from "./DigitalOceanAppPlatformAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize"+)({+ component: DigitalOceanAppPlatformAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsxnew file mode 100644index 0000000000..61c2c57899--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx@@ -0,0 +1,148 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const DigitalOceanAppPlatformConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.DigitalOceanAppPlatformConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetApp, setTargetApp] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Digital Ocean App Platform Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Digital Ocean App Platform Service" className="mt-4">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No services found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsxnew file mode 100644index 0000000000..fb4e5edfa4--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { DigitalOceanAppPlatformConfigurePage } from "./DigitalOceanAppPlatformConfigurePage";++const DigitalOceanAppPlatformConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create"+)({+ component: DigitalOceanAppPlatformConfigurePage,+ validateSearch: zodValidator(DigitalOceanAppPlatformConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsxnew file mode 100644index 0000000000..e9f43374f6--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx@@ -0,0 +1,120 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate } from "@tanstack/react-router";+import { z } from "zod";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++const schema = z.object({+ accessToken: z.string().trim()+});++type FormData = z.infer<typeof schema>;++export const FlyioAuthorizePage = () => {+ const navigate = useNavigate();+ const { currentWorkspace } = useWorkspace();++ const { control, handleSubmit } = useForm<FormData>({+ resolver: zodResolver(schema),+ defaultValues: {+ accessToken: ""+ }+ });++ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [isLoading, setIsLoading] = useState(false);++ const onFormSubmit = async ({ accessToken }: FormData) => {+ try {+ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "flyio",+ accessToken+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations/flyio/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ setIsLoading(false);+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Fly.io Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your access token, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="inline flex items-center pb-0.5">+ <img src="/images/integrations/Flyio.svg" height={30} width={30} alt="Fly.io logo" />+ </div>+ <span className="ml-2.5">Fly.io Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/flyio"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <form onSubmit={handleSubmit(onFormSubmit)} className="px-6 pb-8 text-right">+ <Controller+ control={control}+ name="accessToken"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Fly.io Access Token"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input {...field} placeholder="" type="password" autoComplete="new-password" />+ </FormControl>+ )}+ />+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mt-2 w-min"+ size="sm"+ type="submit"+ isLoading={isLoading}+ >+ Connect to Fly.io+ </Button>+ </form>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/FlyioAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/FlyioAuthorizePage/route.tsxnew file mode 100644index 0000000000..752bd02e22--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/FlyioAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { FlyioAuthorizePage } from "./FlyioAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize"+)({+ component: FlyioAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsxnew file mode 100644index 0000000000..6b08409f54--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx@@ -0,0 +1,237 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import {+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Alert,+ AlertDescription,+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const FlyioConfigurePage = () => {+ const navigate = useNavigate();++ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.FlyioConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth, isLoading: isIntegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );+ const { data: integrationAuthApps = [], isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");++ const [targetApp, setTargetApp] = useState("");++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ // TODO: handle case where apps can be empty+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up Fly.io Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment or folder in Infisical you want to sync to Fly.io environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/Flyio.svg" height={30} width={30} alt="Fly.io logo" />+ </div>+ <span className="ml-2.5">Fly.io Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/flyio"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <div className="px-6 pb-4">+ <Alert hideTitle variant="warning">+ <AlertDescription>+ All current secrets linked to the related Fly.io project will be deleted before+ Infisical secrets are pushed to your Fly.io project.+ </AlertDescription>+ </Alert>+ </div>+ <FormControl label="Project Environment" className="px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path" className="px-6">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Fly.io App" className="px-6">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No apps found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in Fly.io with secrets from Infisical.+ </span>+ </div>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Fly.io Integration</title>+ </Helmet>+ {isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/FlyioConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/FlyioConfigurePage/route.tsxnew file mode 100644index 0000000000..9aa21ef16b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/FlyioConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { FlyioConfigurePage } from "./FlyioConfigurePage";++const FlyioConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create"+)({+ component: FlyioConfigurePage,+ validateSearch: zodValidator(FlyioConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsxnew file mode 100644index 0000000000..7f00307062--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx@@ -0,0 +1,170 @@+import crypto from "crypto";++import { useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faGoogle } from "@fortawesome/free-brands-svg-icons";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate } from "@tanstack/react-router";+import { z } from "zod";++import { Button, Card, CardTitle, FormControl, TextArea } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { localStorageService } from "@app/helpers/localStorage";+import { useGetCloudIntegrations, useSaveIntegrationAccessToken } from "@app/hooks/api";++import { createIntegrationMissingEnvVarsNotification } from "../../IntegrationsListPage/IntegrationsListPage.utils";++const schema = z.object({+ accessToken: z.string()+});++type FormData = z.infer<typeof schema>;++export const GcpSecretManagerAuthorizePage = () => {+ const navigate = useNavigate();++ const { control, handleSubmit } = useForm<FormData>({+ resolver: zodResolver(schema)+ });++ const { data: cloudIntegrations } = useGetCloudIntegrations();+ const { currentWorkspace } = useWorkspace();++ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [isLoading, setIsLoading] = useState(false);++ const handleIntegrateWithOAuth = () => {+ if (!cloudIntegrations) return;+ const integrationOption = cloudIntegrations.find(+ (integration) => integration.slug === "gcp-secret-manager"+ );++ if (!integrationOption) return;++ const state = crypto.randomBytes(16).toString("hex");+ localStorage.setItem("latestCSRFToken", state);+ localStorageService.setIntegrationProjectId(currentWorkspace.id);++ if (!integrationOption.clientId) {+ createIntegrationMissingEnvVarsNotification(integrationOption.slug);+ return;+ }++ const link = `https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/cloud-platform&response_type=code&access_type=offline&state=${state}&redirect_uri=${window.location.origin}/integrations/gcp-secret-manager/oauth2/callback&client_id=${integrationOption.clientId}`;+ window.location.assign(link);+ };++ const onFormSubmit = async ({ accessToken }: FormData) => {+ try {+ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "gcp-secret-manager",+ refreshToken: accessToken+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations/gcp-secret-manager/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ setIsLoading(false);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize GCP Secret Manager Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Connect Infisical to GCP Secret Manager to sync secrets."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Google Cloud Platform.png"+ height={30}+ width={30}+ alt="GCP logo"+ />+ </div>+ <span className="ml-1.5">GCP Secret Manager Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/gcp-secret-manager"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <div className="px-6">+ <Button+ colorSchema="primary"+ variant="outline_bg"+ onClick={handleIntegrateWithOAuth}+ leftIcon={<FontAwesomeIcon icon={faGoogle} className="mr-2" />}+ className="mx-0 mt-4 h-11 w-full"+ >+ Continue with OAuth+ </Button>+ <div className="my-4 flex w-full flex-row items-center py-2">+ <div className="w-full border-t border-mineshaft-400/40" />+ <span className="mx-2 text-xs text-mineshaft-400">or</span>+ <div className="w-full border-t border-mineshaft-400/40" />+ </div>+ </div>+ <form onSubmit={handleSubmit(onFormSubmit)} className="px-6 pb-8 text-right">+ <Controller+ control={control}+ name="accessToken"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="GCP Service Account JSON"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <TextArea+ {...field}+ className="h-48 border border-mineshaft-600 bg-bunker-900/80"+ />+ </FormControl>+ )}+ />+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mt-2 w-min"+ size="sm"+ type="submit"+ isLoading={isLoading}+ >+ Connect to GCP Secret Manager+ </Button>+ </form>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsxnew file mode 100644index 0000000000..3a1776e603--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { GcpSecretManagerAuthorizePage } from "./GcpSecretManagerAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize"+)({+ component: GcpSecretManagerAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsxnew file mode 100644index 0000000000..84955a4939--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx@@ -0,0 +1,475 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { yupResolver } from "@hookform/resolvers/yup";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { motion } from "framer-motion";+import { z } from "zod";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Modal,+ ModalContent,+ Select,+ SelectItem,+ Switch,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { usePopUp } from "@app/hooks";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++enum TabSections {+ Connection = "connection",+ Options = "options"+}++const schema = z.object({+ selectedSourceEnvironment: z.string(),+ secretPath: z.string(),+ targetAppId: z.string(),+ secretPrefix: z.string().trim().optional(),+ secretSuffix: z.string().trim().optional(),+ shouldLabel: z.boolean().optional(),+ labelName: z.string().trim().optional(),+ labelValue: z.string().trim().optional()+});++type FormData = z.infer<typeof schema>;++export const GcpSecretManagerConfigurePage = () => {+ const navigate = useNavigate();+ const { popUp, handlePopUpOpen, handlePopUpToggle, handlePopUpClose } = usePopUp([+ "confirmIntegration"+ ] as const);++ const { currentWorkspace } = useWorkspace();+ const { control, handleSubmit, setValue, watch } = useForm<FormData>({+ resolver: yupResolver(schema),+ defaultValues: {+ secretPath: "/",+ secretPrefix: "",+ secretSuffix: "",+ shouldLabel: false,+ labelName: "managed-by",+ labelValue: "infisical",+ selectedSourceEnvironment: currentWorkspace.environments[0].slug+ }+ });++ const shouldLabel = watch("shouldLabel");+ const selectedSourceEnvironment = watch("selectedSourceEnvironment");++ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.GcpSecretManagerConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (shouldLabel) {+ setValue("labelName", "managed-by");+ setValue("labelValue", "infisical");+ return;+ }++ setValue("labelName", "");+ setValue("labelValue", "");+ }, [shouldLabel]);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setValue("targetAppId", integrationAuthApps[0].appId as string);+ } else {+ setValue("targetAppId", "none");+ }+ }+ }, [integrationAuthApps]);++ const onFormSubmit = async ({+ selectedSourceEnvironment: sce,+ secretPath,+ targetAppId,+ secretPrefix,+ secretSuffix,+ shouldLabel: sl,+ labelName,+ labelValue+ }: FormData) => {+ try {+ setIsLoading(true);++ if (!integrationAuth?.id) return;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ )?.name,+ appId: targetAppId,+ sourceEnvironment: sce,+ secretPath,+ metadata: {+ ...(secretPrefix ? { secretPrefix } : {}),+ ...(secretSuffix ? { secretSuffix } : {}),+ ...(sl+ ? {+ secretGCPLabel: {+ labelName,+ labelValue+ }+ }+ : {})+ }+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ setIsLoading(false);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps ? (+ <form+ onSubmit={handleSubmit((data: FormData) => {+ if (!data.secretPrefix && !data.secretSuffix && !data.shouldLabel) {+ handlePopUpOpen("confirmIntegration", data);+ return;+ }++ onFormSubmit(data);+ })}+ className="flex h-full w-full flex-col items-center justify-center"+ >+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <Helmet>+ <title>Set Up GCP Secret Manager Integration</title>+ </Helmet>+ <CardTitle+ className="mb-2 px-6 text-left text-xl"+ subTitle="Select which environment or folder in Infisical you want to sync to GCP Secret Manager."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Google Cloud Platform.png"+ height={30}+ width={30}+ alt="GCP logo"+ />+ </div>+ <span className="ml-1.5">GCP Secret Manager Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/gcp-secret-manager"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Tabs defaultValue={TabSections.Connection} className="px-6">+ <TabList>+ <div className="flex w-full flex-row border-b border-mineshaft-600">+ <Tab value={TabSections.Connection}>Connection</Tab>+ <Tab value={TabSections.Options}>Options</Tab>+ </div>+ </TabList>+ <TabPanel value={TabSections.Connection}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: 30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <Controller+ control={control}+ name="selectedSourceEnvironment"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ {...field}+ onValueChange={(e) => onChange(e)}+ className="w-full"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ <Controller+ control={control}+ defaultValue=""+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secrets Path"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <SecretPathInput+ {...field}+ environment={selectedSourceEnvironment}+ placeholder="/"+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetAppId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => {+ return (+ <FormControl+ label="GCP Project"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ {...field}+ onValueChange={(e) => {+ if (e === "") return;+ onChange(e);+ }}+ className="w-full"+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={String(integrationAuthApp.appId as string)}+ key={`target-app-${String(integrationAuthApp.appId)}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ );+ }}+ />+ </motion.div>+ </TabPanel>+ <TabPanel value={TabSections.Options}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: -30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <Controller+ control={control}+ name="secretPrefix"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secret Prefix"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <Input {...field} placeholder="INFISICAL_" />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretSuffix"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secret Suffix"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <Input {...field} placeholder="_INFISICAL" />+ </FormControl>+ )}+ />+ <div className="mb-[2.36rem] mt-8">+ <Controller+ control={control}+ name="shouldLabel"+ render={({ field: { onChange, value } }) => (+ <Switch+ id="label-gcp"+ onCheckedChange={(isChecked) => onChange(isChecked)}+ isChecked={value}+ >+ Label in GCP Secret Manager+ </Switch>+ )}+ />+ </div>+ {shouldLabel && (+ <div className="mt-8">+ <Controller+ control={control}+ name="labelName"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Label Name"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <Input {...field} placeholder="managed-by" />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="labelValue"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Label Name"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <Input {...field} placeholder="infisical" />+ </FormControl>+ )}+ />+ </div>+ )}+ </motion.div>+ </TabPanel>+ </Tabs>+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mb-8 ml-auto mr-6 w-min"+ size="sm"+ type="submit"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ {/* <div className="border-t border-mineshaft-800 w-full max-w-md mt-6"/>+ <div className="flex flex-col bg-mineshaft-800 border border-mineshaft-600 w-full p-4 max-w-lg mt-6 rounded-md">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-200 text-xl"/>+ <span className="ml-3 text-md text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="text-mineshaft-300 text-sm mt-4">+ After creating an integration, your secrets will start syncing immediately.++ To avoid overwriting existing secrets in GCP Secret Manager, you may consider adding a secret prefix/suffix and/or enabling labeling in the options tab.+ </span>+ </div> */}+ <Modal+ isOpen={popUp.confirmIntegration?.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("confirmIntegration", isOpen)}+ >+ <ModalContent+ title="Heads Up"+ footerContent={+ <div className="flex items-center space-x-2">+ <Button onClick={() => onFormSubmit(popUp.confirmIntegration?.data as FormData)}>+ Continue Anyway+ </Button>+ <Button+ onClick={() => handlePopUpClose("confirmIntegration")}+ variant="outline_bg"+ colorSchema="secondary"+ >+ Cancel+ </Button>+ </div>+ }+ >+ <p>You're about to overwrite any existing secrets in GCP Secret Manager.</p>+ <p className="mt-4">+ To avoid this behavior, you may consider adding a secret prefix/suffix or enabling+ labeling in the options tab.+ </p>+ </ModalContent>+ </Modal>+ </form>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up GCP Secret Manager Integration</title>+ </Helmet>+ {isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsxnew file mode 100644index 0000000000..dab7fc1a43--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { GcpSecretManagerConfigurePage } from "./GcpSecretManagerConfigurePage";++const GcpConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create"+)({+ component: GcpSecretManagerConfigurePage,+ validateSearch: zodValidator(GcpConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsxnew file mode 100644index 0000000000..eae4cd57cd--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx@@ -0,0 +1,46 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const GcpSecretManagerOauthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.GcpSecretManagerOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state++ if (state !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");+ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "gcp-secret-manager"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/gcp-secret-manager/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..65af436b5c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { GcpSecretManagerOauthCallbackPage } from "./GcpSecretManagerOauthCallbackPage";++export const GcpSecretManagerOAuthCallbackPageQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback"+)({+ component: GcpSecretManagerOauthCallbackPage,+ validateSearch: zodValidator(GcpSecretManagerOAuthCallbackPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsxnew file mode 100644index 0000000000..d12cd26c06--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx@@ -0,0 +1,122 @@+import crypto from "crypto";++import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardBody,+ CardTitle,+ FormControl,+ Select,+ SelectItem+} from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { localStorageService } from "@app/helpers/localStorage";+import { useGetCloudIntegrations } from "@app/hooks/api";++import { createIntegrationMissingEnvVarsNotification } from "../../IntegrationsListPage/IntegrationsListPage.utils";++enum AuthMethod {+ APP = "APP",+ OAUTH = "OAUTH"+}++export const GithubAuthorizePage = () => {+ const navigate = useNavigate();+ const { data: cloudIntegrations } = useGetCloudIntegrations();+ const githubIntegration = cloudIntegrations?.find((integration) => integration.slug === "github");+ const [selectedAuthMethod, setSelectedAuthMethod] = useState<AuthMethod>(AuthMethod.APP);+ const { currentWorkspace } = useWorkspace();++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Select GitHub Integration Auth</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Select how you'd like to integrate with GitHub. We recommend using the GitHub App method for fine-grained access."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/GitHub.png" height={30} width={30} alt="Github logo" />+ </div>+ <span className="ml-2.5">GitHub Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cicd/githubactions"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <CardBody>+ <FormControl label="Select authentication method">+ <Select+ value={selectedAuthMethod}+ onValueChange={(val) => {+ setSelectedAuthMethod(val as AuthMethod);+ }}+ className="w-full border border-mineshaft-500"+ >+ <SelectItem value={AuthMethod.APP}>GitHub App (Recommended)</SelectItem>+ <SelectItem value={AuthMethod.OAUTH}>OAuth</SelectItem>+ </Select>+ </FormControl>+ <div className="flex items-end">+ <Button+ onClick={() => {+ if (selectedAuthMethod === AuthMethod.APP) {+ navigate({+ to: "/secret-manager/$projectId/integrations/select-integration-auth",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationSlug: "github"+ }+ });+ } else {+ if (!githubIntegration?.clientId) {+ createIntegrationMissingEnvVarsNotification(+ "githubactions",+ "cicd",+ "connecting-with-github-oauth"+ );+ return;+ }++ const state = crypto.randomBytes(16).toString("hex");+ localStorage.setItem("latestCSRFToken", state);+ localStorageService.setIntegrationProjectId(currentWorkspace.id);+ window.location.assign(+ `https://github.com/login/oauth/authorize?client_id=${githubIntegration?.clientId}&response_type=code&scope=repo,admin:org&redirect_uri=${window.location.origin}/integrations/github/oauth2/callback&state=${state}`+ );+ }+ }}+ colorSchema="primary"+ variant="outline_bg"+ className="ml-auto mt-4 w-min"+ >+ Connect to GitHub+ </Button>+ </div>+ </CardBody>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GithubAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GithubAuthorizePage/route.tsxnew file mode 100644index 0000000000..d67c8d8cb4--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GithubAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { GithubAuthorizePage } from "./GithubAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection"+)({+ component: GithubAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsxnew file mode 100644index 0000000000..26174e63c7--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx@@ -0,0 +1,817 @@+import { useEffect, useMemo, useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import {+ faAngleDown,+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCheckCircle,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import axios from "axios";+import { motion } from "framer-motion";+import { twMerge } from "tailwind-merge";+import { z, ZodIssueCode } from "zod";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardTitle,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ FormControl,+ Input,+ Select,+ SelectItem,+ Switch,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import {+ useCreateIntegration,+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById,+ useGetIntegrationAuthGithubEnvs,+ useGetIntegrationAuthGithubOrgs+} from "@app/hooks/api";++enum TabSections {+ Connection = "connection",+ Options = "options"+}++const secretsVisibility = [+ {+ value: "selected",+ label: "Select repositories"+ },+ {+ value: "all",+ label: "All public repositories"+ },+ {+ value: "private",+ label: "All private repositories"+ }+] as const;++const targetEnv = ["github-repo", "github-org", "github-env"] as const;++const schema = z+ .object({+ selectedSourceEnvironment: z.string().trim(),+ secretPath: z.string().trim(),+ secretSuffix: z.string().trim().optional(),+ shouldEnableDelete: z.boolean().optional(),+ scope: z.enum(targetEnv),++ // Explanation: If scope is (github-repo) OR (github-org AND visibility is set to selected), then repoIds is required+ repoId: z.string().optional(),+ repoIds: z.string().array().optional(),+ repoName: z.string().optional(),+ repoOwner: z.string().optional(),+ envId: z.string().optional(),+ orgId: z.string().optional(),+ visibility: z.string().optional()+ })+ .superRefine((data, ctx) => {+ if (data.scope === "github-env") {+ if (!data.repoId) {+ ctx.addIssue({+ code: ZodIssueCode.custom,+ path: ["repoId"],+ message: "Repository is required"+ });+ }+ if (!data.repoName) {+ ctx.addIssue({+ code: ZodIssueCode.custom,+ path: ["repoName"],+ message: "Repository is required"+ });+ }+ if (!data.repoOwner) {+ ctx.addIssue({+ code: ZodIssueCode.custom,+ path: ["repoOwner"],+ message: "Repository is required"+ });+ }+ if (!data.envId) {+ ctx.addIssue({+ code: ZodIssueCode.custom,+ path: ["envId"],+ message: "Environment is required"+ });+ }+ }++ if (data.scope === "github-org") {+ if (!data.orgId) {+ ctx.addIssue({+ code: ZodIssueCode.custom,+ path: ["orgId"],+ message: "Organization is required"+ });+ }+ if (!data.visibility) {+ ctx.addIssue({+ code: ZodIssueCode.custom,+ path: ["visibility"],+ message: "Visibility is required"+ });+ }+ }+ });++type FormData = z.infer<typeof schema>;++export const GithubConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.GithubConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { data: integrationAuth } = useGetIntegrationAuthById(integrationAuthId);++ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId+ });++ const { data: integrationAuthOrgs } = useGetIntegrationAuthGithubOrgs(+ integrationAuthId as string+ );++ const { control, handleSubmit, watch, setValue } = useForm<FormData>({+ resolver: zodResolver(schema),+ defaultValues: {+ secretPath: "/",+ scope: "github-repo",+ repoIds: [],+ visibility: "all",+ shouldEnableDelete: false,+ selectedSourceEnvironment: currentWorkspace.environments[0].slug+ }+ });++ const scope = watch("scope");+ const repoId = watch("repoId");+ const repoIds = watch("repoIds") || [];+ const repoName = watch("repoName");+ const repoOwner = watch("repoOwner");+ const selectedOrgId = watch("orgId");++ const { data: integrationAuthGithubEnvs } = useGetIntegrationAuthGithubEnvs(+ integrationAuthId as string,+ repoName || "",+ repoOwner || ""+ );++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthGithubEnvs && integrationAuthGithubEnvs?.length > 0) {+ setValue("envId", integrationAuthGithubEnvs[0].envId);+ } else {+ setValue("envId", undefined);+ }+ }, [integrationAuthGithubEnvs]);++ const onFormSubmit = async (data: FormData) => {+ try {+ setIsLoading(true);++ if (!integrationAuth?.id) return;++ switch (data.scope) {+ case "github-repo": {+ const targetApps = integrationAuthApps?.filter((integrationAuthApp) =>+ data.repoIds?.includes(String(integrationAuthApp.appId))+ );++ if (!targetApps) return;++ await Promise.all(+ targetApps.map(async (targetApp) => {+ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ scope: data.scope,+ secretPath: data.secretPath,+ sourceEnvironment: data.selectedSourceEnvironment,+ app: targetApp.name, // repo name+ owner: targetApp.owner, // repo owner+ metadata: {+ secretSuffix: data.secretSuffix,+ shouldEnableDelete: data.shouldEnableDelete+ }+ });+ })+ );++ break;+ }+ case "github-org":+ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ secretPath: data.secretPath,+ sourceEnvironment: data.selectedSourceEnvironment,+ scope: data.scope,+ owner: integrationAuthOrgs?.find((e) => e.orgId === data.orgId)?.name,+ metadata: {+ githubVisibility: data.visibility,+ githubVisibilityRepoIds: data.repoIds,+ secretSuffix: data.secretSuffix,+ shouldEnableDelete: data.shouldEnableDelete+ }+ });+ break;++ case "github-env":+ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ secretPath: data.secretPath,+ sourceEnvironment: data.selectedSourceEnvironment,+ scope: data.scope,+ app: repoName,+ appId: data.repoId,+ owner: repoOwner,+ targetEnvironmentId: data.envId,+ metadata: {+ secretSuffix: data.secretSuffix,+ shouldEnableDelete: data.shouldEnableDelete+ }+ });+ break;+ default:+ throw new Error("Invalid scope");+ }++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);++ let errorMessage: string = "Something went wrong!";+ if (axios.isAxiosError(err)) {+ const { message } = err?.response?.data as { message: string };+ errorMessage = message;+ }++ createNotification({+ text: errorMessage,+ type: "error"+ });+ setIsLoading(false);+ }+ };++ const selectedOrganization = useMemo(() => {+ if (!integrationAuthApps) return null;++ return integrationAuthApps.filter(+ (authApp) =>+ integrationAuthOrgs?.find((e) => e.orgId === selectedOrgId)?.name === authApp.owner+ );+ }, [selectedOrgId, integrationAuthApps]);++ return integrationAuth && integrationAuthApps ? (+ <div className="flex h-full w-full flex-col items-center justify-center py-4">+ <Helmet>+ <title>Set Up GitHub Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <form onSubmit={handleSubmit(onFormSubmit)} className="px-6">+ <CardTitle+ className="px-0 text-left text-xl"+ subTitle="Choose which environment in Infisical you want to sync to environment variables in GitHub."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center rounded-full bg-mineshaft-200">+ <img+ src="/images/integrations/GitHub.png"+ height={30}+ width={30}+ alt="GitHub logo"+ />+ </div>+ <span className="ml-2.5">GitHub Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cicd/githubactions"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Tabs defaultValue={TabSections.Connection}>+ <TabList>+ <div className="flex w-full flex-row border-b border-mineshaft-600">+ <Tab value={TabSections.Connection}>Connection</Tab>+ <Tab value={TabSections.Options}>Options</Tab>+ </div>+ </TabList>+ <TabPanel value={TabSections.Connection}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: 30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <Controller+ control={control}+ name="selectedSourceEnvironment"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ onValueChange={onChange}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secrets Path"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input {...field} placeholder="Provide a path, default is /" />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="scope"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl label="Scope" errorText={error?.message} isError={Boolean(error)}>+ <Select+ defaultValue={field.value}+ onValueChange={(e) => {+ setValue("repoIds", []);+ onChange(e);+ }}+ className="w-full border border-mineshaft-500"+ >+ <SelectItem value="github-org">Organization</SelectItem>+ <SelectItem value="github-repo">Repository</SelectItem>+ <SelectItem value="github-env">Repository Environment</SelectItem>+ </Select>+ </FormControl>+ )}+ />+ {scope === "github-repo" && (+ <Controller+ control={control}+ name="repoIds"+ render={({ field: { onChange }, fieldState: { error } }) => (+ <FormControl+ label="Repositories"+ isError={Boolean(error?.message)}+ errorText={error?.message}+ >+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ {integrationAuthApps.length > 0 ? (+ <div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none data-[placeholder]:text-mineshaft-200">+ {repoIds?.length === 1+ ? integrationAuthApps?.reduce(+ (acc, { appId, name, owner }) =>+ repoIds?.[0] === appId ? `${owner}/${name}` : acc,+ ""+ )+ : `${repoIds?.length} repositories selected`}+ <FontAwesomeIcon icon={faAngleDown} className="text-xs" />+ </div>+ ) : (+ <div className="inline-flex w-full cursor-default items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none data-[placeholder]:text-mineshaft-200">+ No repositories found+ </div>+ )}+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="start"+ className="thin-scrollbar z-[100] max-h-80 overflow-y-scroll"+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => {+ const isSelected = repoIds?.includes(+ String(integrationAuthApp.appId)+ );++ return (+ <DropdownMenuItem+ onClick={() => {+ if (repoIds?.includes(String(integrationAuthApp.appId))) {+ onChange(+ repoIds.filter(+ (appId: string) =>+ appId !== String(integrationAuthApp.appId)+ )+ );+ } else {+ onChange([+ ...(repoIds || []),+ String(integrationAuthApp.appId)+ ]);+ }+ }}+ key={`repos-id-${integrationAuthApp.appId}`}+ icon={+ isSelected ? (+ <FontAwesomeIcon+ icon={faCheckCircle}+ className="pr-0.5 text-primary"+ />+ ) : (+ <div className="pl-[1.01rem]" />+ )+ }+ iconPos="left"+ className="w-[28.4rem] text-sm"+ >+ {integrationAuthApp.owner}/{integrationAuthApp.name}+ </DropdownMenuItem>+ );+ })+ ) : (+ <div />+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ </FormControl>+ )}+ />+ )}+ {scope === "github-org" && (+ <>+ <Controller+ control={control}+ name="orgId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Organization"+ errorText={+ integrationAuthOrgs?.length ? error?.message : "No organizations found"+ }+ isError={Boolean(integrationAuthOrgs?.length || error?.message)}+ >+ <Select+ value={field.value}+ onValueChange={onChange}+ className="w-full border border-mineshaft-500"+ >+ {integrationAuthOrgs &&+ integrationAuthOrgs.map(({ name, orgId }) => (+ <SelectItem key={`github-organization-${orgId}`} value={orgId}>+ {name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="visibility"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ tooltipText="Select which type of repositories that the secrets should be synced to."+ label="Visibility"+ errorText={error?.message}+ isError={Boolean(error?.message)}+ >+ <Select+ value={field.value}+ onValueChange={onChange}+ className="w-full border border-mineshaft-500"+ >+ {secretsVisibility.map(({ label, value }) => (+ <SelectItem key={`github-visibility-${value}`} value={value}>+ {label}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />++ {watch("visibility") === "selected" && (+ <Controller+ control={control}+ name="repoIds"+ render={({ field: { onChange }, fieldState: { error } }) => (+ <FormControl+ label="Selected Repositories"+ isError={Boolean(error?.message)}+ errorText={error?.message}+ >+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ {integrationAuthApps.length > 0 ? (+ <div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none data-[placeholder]:text-mineshaft-200">+ {repoIds?.length === 1+ ? integrationAuthApps?.reduce(+ (acc, { appId, name, owner }) =>+ repoIds?.[0] === appId ? `${owner}/${name}` : acc,+ ""+ )+ : `${repoIds?.length} repositories selected`}+ <FontAwesomeIcon icon={faAngleDown} className="text-xs" />+ </div>+ ) : (+ <div className="inline-flex w-full cursor-default items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none data-[placeholder]:text-mineshaft-200">+ No repositories found+ </div>+ )}+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="start"+ className="thin-scrollbar z-[100] max-h-80 overflow-y-scroll"+ >+ {selectedOrganization ? (+ selectedOrganization.map((integrationAuthApp) => {+ const isSelected = repoIds?.includes(+ String(integrationAuthApp.appId)+ );++ return (+ <DropdownMenuItem+ onClick={() => {+ if (repoIds?.includes(String(integrationAuthApp.appId))) {+ onChange(+ repoIds?.filter(+ (appId: string) =>+ appId !== String(integrationAuthApp.appId)+ )+ );+ } else {+ onChange([+ ...repoIds,+ String(integrationAuthApp.appId)+ ]);+ }+ }}+ key={`repos-id-${integrationAuthApp.appId}`}+ icon={+ isSelected ? (+ <FontAwesomeIcon+ icon={faCheckCircle}+ className="pr-0.5 text-primary"+ />+ ) : (+ <div className="pl-[1.01rem]" />+ )+ }+ iconPos="left"+ className="w-[28.4rem] text-sm"+ >+ {integrationAuthApp.owner}/{integrationAuthApp.name}+ </DropdownMenuItem>+ );+ })+ ) : (+ <div />+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ </FormControl>+ )}+ />+ )}+ </>+ )}+ {scope === "github-env" && (+ <Controller+ control={control}+ name="repoId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Repository"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ value={field.value}+ onValueChange={(e) => {+ const selectedRepo = integrationAuthApps.find((app) => app.appId === e);+ setValue("repoName", selectedRepo?.name);+ setValue("repoOwner", selectedRepo?.owner);+ onChange(e);+ }}+ className="w-full border border-mineshaft-500"+ >+ {integrationAuthApps?.length ? (+ integrationAuthApps.map((app) => {+ return (+ <SelectItem+ value={app.appId as string}+ key={`repo-id-${app.appId}`}+ className="w-[28.4rem] text-sm"+ >+ {app.owner}/{app.name}+ </SelectItem>+ );+ })+ ) : (+ <div />+ )}+ </Select>+ </FormControl>+ )}+ />+ )}+ {scope === "github-env" && (+ <Controller+ control={control}+ name="envId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Environment"+ errorText={+ integrationAuthGithubEnvs?.length+ ? error?.message+ : "No Environment found"+ }+ isError={Boolean(integrationAuthGithubEnvs?.length || error?.message)}+ >+ <Select+ value={field.value}+ onValueChange={onChange}+ isDisabled={!repoId}+ className={twMerge(+ "w-full border border-mineshaft-500",+ !repoId && "h-10 cursor-not-allowed"+ )}+ >+ {integrationAuthGithubEnvs?.length ? (+ integrationAuthGithubEnvs.map((githubEnv) => {+ return (+ <SelectItem+ value={githubEnv.name as string}+ key={`env-id-${githubEnv.envId}`}+ className="w-[28.4rem] text-sm"+ >+ {githubEnv.name}+ </SelectItem>+ );+ })+ ) : (+ <div />+ )}+ </Select>+ </FormControl>+ )}+ />+ )}+ </motion.div>+ </TabPanel>+ <TabPanel value={TabSections.Options}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: -30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <div className="mb-5 ml-1">+ <Controller+ control={control}+ name="shouldEnableDelete"+ render={({ field: { onChange, value } }) => (+ <Switch+ id="delete-github-option"+ onCheckedChange={(isChecked) => onChange(isChecked)}+ isChecked={value}+ >+ Delete secrets in Github that are not in Infisical+ </Switch>+ )}+ />+ </div>+ <Controller+ control={control}+ name="secretSuffix"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Append Secret Names with..."+ className="pb-[9.75rem]"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input+ {...field}+ placeholder="Provide a suffix for secret names, default is no suffix"+ />+ </FormControl>+ )}+ />+ </motion.div>+ </TabPanel>+ </Tabs>+ <div className="flex w-full justify-end">+ <Button+ type="submit"+ color="mineshaft"+ variant="outline_bg"+ className="mb-6"+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </div>+ </form>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in GitHub with secrets from Infisical.+ </span>+ </div>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up GitHub Integration</title>+ </Helmet>+ {isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="li my-2 inline text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GithubConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GithubConfigurePage/route.tsxnew file mode 100644index 0000000000..45f840c22a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GithubConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { GithubConfigurePage } from "./GithubConfigurePage";++const GithubConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create"+)({+ component: GithubConfigurePage,+ validateSearch: zodValidator(GithubConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsxnew file mode 100644index 0000000000..4b1211f6fe--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx@@ -0,0 +1,54 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const GithubOauthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const {+ code,+ state,+ installation_id: installationId+ } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.GithubOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ if (state !== localStorage.getItem("latestCSRFToken")) {+ return;+ }++ localStorage.removeItem("latestCSRFToken");++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ installationId,+ integration: "github"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/github/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..8071fc3163--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx@@ -0,0 +1,18 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { GithubOauthCallbackPage } from "./GithubOauthCallbackPage";++export const GithubOAuthCallbackPageQueryParamsSchema = z.object({+ state: z.string().catch(""),+ installation_id: z.string(),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback"+)({+ component: GithubOauthCallbackPage,+ validateSearch: zodValidator(GithubOAuthCallbackPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsxnew file mode 100644index 0000000000..d6a387e149--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GitlabAuthorizePage/GitlabAuthorizePage.tsx@@ -0,0 +1,121 @@+import crypto from "crypto";++import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { z } from "zod";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { localStorageService } from "@app/helpers/localStorage";+import { useGetCloudIntegrations } from "@app/hooks/api";++import { createIntegrationMissingEnvVarsNotification } from "../../IntegrationsListPage/IntegrationsListPage.utils";++const schema = z.object({+ gitLabURL: z.string()+});++type FormData = z.infer<typeof schema>;++export const GitlabAuthorizePage = () => {+ const { control, handleSubmit } = useForm<FormData>({+ resolver: zodResolver(schema),+ defaultValues: {+ gitLabURL: ""+ }+ });++ const { data: cloudIntegrations } = useGetCloudIntegrations();+ const { currentWorkspace } = useWorkspace();++ const onFormSubmit = ({ gitLabURL }: FormData) => {+ if (!cloudIntegrations) return;+ const integrationOption = cloudIntegrations.find(+ (integration) => integration.slug === "gitlab"+ );++ if (!integrationOption) return;++ if (!integrationOption.clientId) {+ createIntegrationMissingEnvVarsNotification(integrationOption.slug, "cicd");+ return;+ }++ const baseURL =+ (gitLabURL as string).trim() === "" ? "https://gitlab.com" : (gitLabURL as string).trim();++ const csrfToken = crypto.randomBytes(16).toString("hex");+ localStorage.setItem("latestCSRFToken", csrfToken);+ localStorageService.setIntegrationProjectId(currentWorkspace.id);++ const state = `${csrfToken}|${+ (gitLabURL as string).trim() === "" ? "" : (gitLabURL as string).trim()+ }`;+ localStorageService.setIntegrationProjectId(currentWorkspace.id);+ const link = `${baseURL}/oauth/authorize?client_id=${integrationOption.clientId}&redirect_uri=${window.location.origin}/integrations/gitlab/oauth2/callback&response_type=code&state=${state}`;++ window.location.assign(link);+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize GitLab Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Authorize this integration to sync secrets from Infisical to GitLab. If no self-hosted GitLab URL is specified, then Infisical will connect you to GitLab Cloud."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/Gitlab.png" height={28} width={28} alt="Gitlab logo" />+ </div>+ <span className="ml-2.5">GitLab Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cicd/gitlab"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <form onSubmit={handleSubmit(onFormSubmit)} className="px-6 pb-8 text-right">+ <Controller+ control={control}+ name="gitLabURL"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Self-hosted URL (optional)"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input {...field} placeholder="https://self-hosted-gitlab.com" />+ </FormControl>+ )}+ />+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mt-2 w-min"+ size="sm"+ type="submit"+ >+ Continue with OAuth+ </Button>+ </form>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GitlabAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GitlabAuthorizePage/route.tsxnew file mode 100644index 0000000000..d79d29f6c0--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GitlabAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { GitlabAuthorizePage } from "./GitlabAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize"+)({+ component: GitlabAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsxnew file mode 100644index 0000000000..7416eaab97--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx@@ -0,0 +1,530 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { yupResolver } from "@hookform/resolvers/yup";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { motion } from "framer-motion";+import { z } from "zod";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Modal,+ ModalContent,+ Select,+ SelectItem,+ Switch,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { usePopUp } from "@app/hooks";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById,+ useGetIntegrationAuthTeams+} from "@app/hooks/api/integrationAuth";++const gitLabEntities = [+ { name: "Individual", value: "individual" },+ { name: "Group", value: "group" }+] as const;++enum TabSections {+ Connection = "connection",+ Options = "options"+}++const schema = z.object({+ targetEntity: z.enum([gitLabEntities[0].value, gitLabEntities[1].value]),+ targetTeamId: z.string().optional(),+ selectedSourceEnvironment: z.string(),+ secretPath: z.string(),+ targetAppId: z.string(),+ targetEnvironment: z.string().optional(),+ secretPrefix: z.string().optional(),+ secretSuffix: z.string().optional(),+ shouldMaskSecrets: z.boolean().optional(),+ shouldProtectSecrets: z.boolean()+});++type FormData = z.infer<typeof schema>;++export const GitlabConfigurePage = () => {+ const navigate = useNavigate();+ const { popUp, handlePopUpOpen, handlePopUpToggle, handlePopUpClose } = usePopUp([+ "confirmIntegration"+ ] as const);+ const { currentWorkspace } = useWorkspace();++ const { control, handleSubmit, setValue, watch } = useForm<FormData>({+ resolver: yupResolver(schema),+ defaultValues: {+ targetEntity: "individual",+ secretPath: "/",+ secretPrefix: "",+ secretSuffix: "",+ selectedSourceEnvironment: currentWorkspace.environments[0].slug+ }+ });+ const selectedSourceEnvironment = watch("selectedSourceEnvironment");+ const targetEntity = watch("targetEntity");+ const targetTeamId = watch("targetTeamId");+ const targetAppIdValue = watch("targetAppId");++ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.GitlabConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");++ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? "",+ ...(targetTeamId ? { teamId: targetTeamId } : {})+ });+ const { data: integrationAuthTeams, isLoading: isintegrationAuthTeamsLoading } =+ useGetIntegrationAuthTeams((integrationAuthId as string) ?? "");++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setValue("targetAppId", String(integrationAuthApps[0].appId as string));+ } else {+ setValue("targetAppId", "none");+ }+ }+ }, [integrationAuthApps]);++ useEffect(() => {+ if (targetEntity === "group" && integrationAuthTeams && integrationAuthTeams.length > 0) {+ if (integrationAuthTeams) {+ if (integrationAuthTeams.length > 0) {+ // case: user is part of at least 1 group in GitLab+ setValue("targetTeamId", String(integrationAuthTeams[0].id));+ } else {+ // case: user is not part of any groups in GitLab+ setValue("targetTeamId", "none");+ }+ }+ } else if (targetEntity === "individual") {+ setValue("targetTeamId", undefined);+ }+ }, [targetEntity, integrationAuthTeams]);++ const onFormSubmit = async ({+ selectedSourceEnvironment: sse,+ secretPath,+ targetAppId,+ targetEnvironment,+ secretPrefix,+ secretSuffix,+ shouldMaskSecrets,+ shouldProtectSecrets+ }: FormData) => {+ try {+ setIsLoading(true);+ if (!integrationAuth?.id) return;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: integrationAuthApps?.find(+ (integrationAuthApp) => String(integrationAuthApp.appId) === targetAppId+ )?.name,+ appId: String(targetAppId),+ sourceEnvironment: sse,+ targetEnvironment: targetEnvironment === "" ? "*" : targetEnvironment,+ secretPath,+ metadata: {+ secretPrefix,+ secretSuffix,+ shouldMaskSecrets,+ shouldProtectSecrets+ }+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ setIsLoading(false);+ }+ };++ return integrationAuth &&+ selectedSourceEnvironment &&+ integrationAuthApps &&+ integrationAuthTeams ? (+ <form+ onSubmit={handleSubmit((data: FormData) => {+ if (!data.secretPrefix && !data.secretSuffix) {+ handlePopUpOpen("confirmIntegration", data);+ return;+ }++ onFormSubmit(data);+ })}+ className="flex h-full w-full flex-col items-center justify-center"+ >+ <Helmet>+ <title>Set Up GitLab Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Select which environment or folder in Infisical you want to sync to GitLab's environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/Gitlab.png" height={28} width={28} alt="Gitlab logo" />+ </div>+ <span className="ml-2.5">GitLab Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cicd/gitlab"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Tabs defaultValue={TabSections.Connection} className="px-6">+ <TabList>+ <div className="flex w-full flex-row border-b border-mineshaft-600">+ <Tab value={TabSections.Connection}>Connection</Tab>+ <Tab value={TabSections.Options}>Options</Tab>+ </div>+ </TabList>+ <TabPanel value={TabSections.Connection}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: 30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <Controller+ control={control}+ name="selectedSourceEnvironment"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ {...field}+ onValueChange={(e) => onChange(e)}+ className="w-full"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ <Controller+ control={control}+ defaultValue=""+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secrets Path"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <SecretPathInput+ {...field}+ placeholder="/"+ environment={selectedSourceEnvironment}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetEntity"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="GitLab Integration Type"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select {...field} onValueChange={(e) => onChange(e)} className="w-full">+ {gitLabEntities.map((entity) => {+ return (+ <SelectItem value={entity.value} key={`target-entity-${entity.value}`}>+ {entity.name}+ </SelectItem>+ );+ })}+ </Select>+ </FormControl>+ )}+ />+ {targetEntity === "group" && targetTeamId && (+ <Controller+ control={control}+ name="targetTeamId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="GitLab Group"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select {...field} onValueChange={(e) => onChange(e)} className="w-full">+ {integrationAuthTeams.length > 0 ? (+ integrationAuthTeams.map((integrationAuthTeam) => (+ <SelectItem+ value={String(integrationAuthTeam.id as string)}+ key={`target-team-${String(integrationAuthTeam.id)}`}+ >+ {integrationAuthTeam.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-team-none">+ No groups found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ />+ )}+ <Controller+ control={control}+ name="targetAppId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => {+ return (+ <FormControl+ label="GitLab Project"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ {...field}+ onValueChange={(e) => {+ if (e === "") return;+ onChange(e);+ }}+ className="w-full"+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={String(integrationAuthApp.appId as string)}+ key={`target-app-${String(integrationAuthApp.appId)}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ );+ }}+ />+ <Controller+ control={control}+ defaultValue=""+ name="targetEnvironment"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="GitLab Environment Scope (Optional)"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <Input {...field} placeholder="*" />+ </FormControl>+ )}+ />+ </motion.div>+ </TabPanel>+ <TabPanel value={TabSections.Options}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: -30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ className="pb-[14.25rem]"+ >+ <div className="ml-1">+ <Controller+ control={control}+ name="shouldMaskSecrets"+ render={({ field: { onChange, value } }) => (+ <Switch+ id="should-mask-secrets"+ onCheckedChange={(isChecked) => onChange(isChecked)}+ isChecked={value}+ >+ <div className="max-w-md">+ Mark Infisical secrets in Gitlab as 'Masked' secrets+ </div>+ </Switch>+ )}+ />+ </div>+ <div className="mb-5 ml-1 mt-4">+ <Controller+ control={control}+ name="shouldProtectSecrets"+ render={({ field: { onChange, value } }) => (+ <Switch+ id="should-protect-secrets"+ onCheckedChange={(isChecked) => onChange(isChecked)}+ isChecked={value}+ >+ Mark Infisical secrets in Gitlab as 'Protected' secrets+ </Switch>+ )}+ />+ </div>+ <Controller+ control={control}+ name="secretPrefix"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secret Prefix"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <Input {...field} placeholder="INFISICAL_" />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretSuffix"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Secret Suffix"+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <Input {...field} placeholder="_INFISICAL" />+ </FormControl>+ )}+ />+ </motion.div>+ </TabPanel>+ </Tabs>+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mb-8 ml-auto mr-6 w-min"+ size="sm"+ type="submit"+ isLoading={isLoading}+ isDisabled={targetAppIdValue === "none"}+ >+ Create Integration+ </Button>+ </Card>+ {/* <div className="border-t border-mineshaft-800 w-full max-w-md mt-6"/>+ <div className="flex flex-col bg-mineshaft-800 border border-mineshaft-600 w-full p-4 max-w-lg mt-6 rounded-md">+ <div className="flex flex-row items-center"><FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-200 text-xl"/> <span className="ml-3 text-md text-mineshaft-100">Pro Tip</span></div>+ <span className="text-mineshaft-300 text-sm mt-4">After creating an integration, your secrets will start syncing immediately. This might cause an unexpected override of current secrets in GitLab with secrets from Infisical.</span>+ </div> */}+ <Modal+ isOpen={popUp.confirmIntegration?.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("confirmIntegration", isOpen)}+ >+ <ModalContent+ title="Heads Up"+ footerContent={+ <div className="flex items-center space-x-2">+ <Button onClick={() => onFormSubmit(popUp.confirmIntegration?.data as FormData)}>+ Continue Anyway+ </Button>+ <Button+ onClick={() => handlePopUpClose("confirmIntegration")}+ variant="outline_bg"+ colorSchema="secondary"+ >+ Cancel+ </Button>+ </div>+ }+ >+ <p>You're about to overwrite any existing secrets in GitLab.</p>+ <p className="mt-4">+ To avoid this behavior, you may consider adding a secret prefix/suffix in the options+ tab.+ </p>+ </ModalContent>+ </Modal>+ </form>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up GitLab Integration</title>+ </Helmet>+ {isIntegrationAuthAppsLoading || isintegrationAuthTeamsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GitlabConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GitlabConfigurePage/route.tsxnew file mode 100644index 0000000000..c2e047bbc6--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GitlabConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { GitlabConfigurePage } from "./GitlabConfigurePage";++const GitlabConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create"+)({+ component: GitlabConfigurePage,+ validateSearch: zodValidator(GitlabConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsxnew file mode 100644index 0000000000..bf72301469--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/GitlabOauthCallbackPage.tsx@@ -0,0 +1,53 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const GitLabOAuthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.GitlabOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ const [csrfToken, url] = (state as string).split("|", 2);++ if (csrfToken !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "gitlab",+ ...(url === ""+ ? {}+ : {+ url+ })+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/gitlab/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..13cd57431b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { GitLabOAuthCallbackPage } from "./GitlabOauthCallbackPage";++export const GitlabOAuthCallbackPageQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback"+)({+ component: GitLabOAuthCallbackPage,+ validateSearch: zodValidator(GitlabOAuthCallbackPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsxnew file mode 100644index 0000000000..a01af97a5f--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx@@ -0,0 +1,194 @@+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate } from "@tanstack/react-router";+import axios from "axios";+import { z } from "zod";++import { createNotification } from "@app/components/notifications";+import { Button, Card, CardBody, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++const formSchema = z.object({+ vaultURL: z.string().url({ message: "Invalid Hashicorp Vault URL" }),+ vaultNamespace: z.string().optional(),+ vaultRoleID: z.string().uuid({ message: "Role ID has be a valid UUID" }),+ vaultSecretID: z.string().uuid({ message: "Role ID has be a valid UUID" })+});++type TForm = z.infer<typeof formSchema>;++export const HashicorpVaultAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const { currentWorkspace } = useWorkspace();+ const {+ control,+ handleSubmit,+ formState: { isSubmitting }+ } = useForm<TForm>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ vaultURL: "",+ vaultNamespace: "",+ vaultRoleID: "",+ vaultSecretID: ""+ }+ });++ const handleFormSubmit = async (formData: TForm) => {+ try {+ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "hashicorp-vault",+ accessId: formData.vaultRoleID,+ accessToken: formData.vaultSecretID,+ url: formData.vaultURL,+ namespace: formData.vaultNamespace+ });+ navigate({+ to: "/secret-manager/$projectId/integrations/hashicorp-vault/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ let errorMessage: string = "Something went wrong!";+ if (axios.isAxiosError(err)) {+ const { message } = err?.response?.data as { message: string };+ errorMessage = message;+ }++ createNotification({+ text: errorMessage,+ type: "error"+ });+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Vault Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After connecting to Vault, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="inline-flex items-center">+ <img+ src="/images/integrations/Vault.png"+ height={30}+ width={30}+ alt="HCP Vault logo"+ />+ </div>+ <span className="ml-2.5">HashiCorp Vault Integration</span>+ <a+ href="https://infisical.com/docs/integrations/cloud/hashicorp-vault"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <CardBody className="px-6 pb-6 pt-0">+ <form onSubmit={handleSubmit(handleFormSubmit)} noValidate>+ <Controller+ control={control}+ name="vaultURL"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Vault Cluster URL"+ errorText={error?.message}+ isError={Boolean(error)}+ isRequired+ >+ <Input autoCorrect="off" spellCheck={false} placeholder="" {...field} />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="vaultNamespace"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Vault Namespace"+ errorText={error?.message}+ isError={Boolean(error)}+ isRequired={false}+ >+ <Input+ autoCorrect="off"+ spellCheck={false}+ placeholder="admin/education"+ {...field}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="vaultRoleID"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Vault RoleID"+ errorText={error?.message}+ isError={Boolean(error)}+ isRequired+ >+ <Input+ autoCorrect="off"+ spellCheck={false}+ placeholder="aaaaaaa-bbbb-cccc-dddd-aaaaaaaaaaa"+ {...field}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="vaultSecretID"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Vault SecretID"+ errorText={error?.message}+ isError={Boolean(error)}+ isRequired+ >+ <Input+ autoCorrect="off"+ spellCheck={false}+ placeholder="aaaaaaa-bbbb-cccc-dddd-aaaaaaaaaaa"+ {...field}+ />+ </FormControl>+ )}+ />+ <Button type="submit" isLoading={isSubmitting}>+ Connect to Vault+ </Button>+ </form>+ </CardBody>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsxnew file mode 100644index 0000000000..bafe1a352b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { HashicorpVaultAuthorizePage } from "./HashicorpVaultAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize"+)({+ component: HashicorpVaultAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsxnew file mode 100644index 0000000000..4de818811f--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx@@ -0,0 +1,291 @@+import { useMemo } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import {+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import axios from "axios";+import { z } from "zod";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardBody,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { isValidPath } from "@app/helpers/string";+import { useCreateIntegration } from "@app/hooks/api";+import { useGetIntegrationAuthById } from "@app/hooks/api/integrationAuth";++const generateFormSchema = (availableEnvironmentNames: string[]) => {+ return z.object({+ secretPath: z+ .string()+ .min(1)+ .refine((val) => isValidPath(val), {+ message: "Vault secret path has to be a valid path"+ }),+ vaultEnginePath: z+ .string()+ .min(1)+ .refine((val) => isValidPath(val), {+ message: "Vault engine path has to be a valid path"+ }),+ vaultSecretPath: z+ .string()+ .min(1)+ .refine((val) => isValidPath(val), {+ message: "Vault secret path has to be a valid path"+ }),+ selectedSourceEnvironment: z.enum(availableEnvironmentNames as any as [string, ...string[]])+ });+};++type TForm = z.infer<ReturnType<typeof generateFormSchema>>;++export const HashicorpVaultConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.HashicorpVaultConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth, isLoading: isintegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );++ const formSchema = useMemo(() => {+ return generateFormSchema(currentWorkspace?.environments.map((env) => env.slug) ?? []);+ }, [currentWorkspace?.environments]);++ const {+ control,+ handleSubmit,+ formState: { isSubmitting }+ } = useForm<TForm>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ secretPath: "/",+ vaultEnginePath: "",+ vaultSecretPath: "",+ selectedSourceEnvironment: ""+ }+ });++ const handleFormSubmit = async (formData: TForm) => {+ try {+ if (!integrationAuth?.id) return;+ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: formData.vaultEnginePath,+ sourceEnvironment: formData.selectedSourceEnvironment,+ path: formData.vaultSecretPath,+ secretPath: formData.secretPath+ });+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ let errorMessage: string = "Something went wrong!";+ if (axios.isAxiosError(err)) {+ const { message } = err?.response?.data as { message: string };+ errorMessage = message;+ }++ createNotification({+ text: errorMessage,+ type: "error"+ });+ }+ };++ return integrationAuth ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up Vault Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Select which environment or folder in Infisical you want to sync to which path in HashiCorp Vault."+ >+ <div className="flex flex-row items-center">+ <div className="inline-flex items-center">+ <img+ src="/images/integrations/Vault.png"+ height={30}+ width={30}+ alt="HCP Vault logo"+ />+ </div>+ <span className="ml-2.5">HashiCorp Vault Integration</span>+ <a+ href="https://infisical.com/docs/integrations/cloud/hashicorp-vault"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <CardBody>+ <form onSubmit={handleSubmit(handleFormSubmit)} noValidate>+ <Controller+ control={control}+ name="selectedSourceEnvironment"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ isRequired+ label="Project Environment"+ >+ <Select+ value={field.value}+ onValueChange={field.onChange}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`vault-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ isRequired+ label="Secrets Path"+ helperText="A path to your secrets in Infisical."+ >+ <Input {...field} autoCorrect="off" spellCheck={false} placeholder="/" />+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="vaultEnginePath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Vault KV Secrets Engine Path"+ errorText={error?.message}+ isError={Boolean(error)}+ helperText="A path where your KV Secrets Engine is enabled."+ isRequired+ >+ <Input autoCorrect="off" spellCheck={false} {...field} placeholder="kv" />+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="vaultSecretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Vault Secret(s) Path"+ errorText={error?.message}+ isError={Boolean(error)}+ helperText="A path for storing secrets within the KV Secrets Engine."+ isRequired+ >+ <Input+ autoCorrect="off"+ spellCheck={false}+ {...field}+ placeholder="machine/dev"+ />+ </FormControl>+ )}+ />++ <Button type="submit" isLoading={isSubmitting}>+ Create Integration+ </Button>+ </form>+ </CardBody>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in Vault with secrets from Infisical.+ </span>+ </div>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Vault Integration</title>+ </Helmet>+ {isintegrationAuthLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/route.tsxnew file mode 100644index 0000000000..d7aebf29c2--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { HashicorpVaultConfigurePage } from "./HashicorpVaultConfigurePage";++const HashicorpVaultConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create"+)({+ component: HashicorpVaultConfigurePage,+ validateSearch: zodValidator(HashicorpVaultConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsxnew file mode 100644index 0000000000..1b7a275e3b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx@@ -0,0 +1,123 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { yupResolver } from "@hookform/resolvers/yup";+import { useNavigate } from "@tanstack/react-router";+import { z } from "zod";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++const schema = z.object({+ accessToken: z.string().trim()+});++type FormData = z.infer<typeof schema>;++const APP_NAME = "Hasura Cloud";+export const HasuraCloudAuthorizePage = () => {+ const navigate = useNavigate();+ const [isLoading, setIsLoading] = useState(false);+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const { currentWorkspace } = useWorkspace();+ const { control, handleSubmit } = useForm<FormData>({+ resolver: yupResolver(schema),+ defaultValues: {+ accessToken: ""+ }+ });++ const onFormSubmit = async ({ accessToken }: FormData) => {+ try {+ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "hasura-cloud",+ accessToken+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations/hasura-cloud/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ setIsLoading(false);+ console.error(err);+ }+ };+ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize {APP_NAME} Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your access token, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Hasura.svg"+ height={30}+ width={30}+ alt={`${APP_NAME} logo`}+ />+ </div>+ <span className="ml-2.5">{APP_NAME} Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/hasura-cloud"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <form onSubmit={handleSubmit(onFormSubmit)} className="px-6 pb-8 text-right">+ <Controller+ control={control}+ name="accessToken"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label={`${APP_NAME} Access Token`}+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input {...field} placeholder="" />+ </FormControl>+ )}+ />+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mt-2 w-min"+ size="sm"+ type="submit"+ isLoading={isLoading}+ >+ Connect to {APP_NAME}+ </Button>+ </form>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/route.tsxnew file mode 100644index 0000000000..4567d00a6a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { HasuraCloudAuthorizePage } from "./HasuraCloudAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize"+)({+ component: HasuraCloudAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsxnew file mode 100644index 0000000000..a29107e114--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx@@ -0,0 +1,229 @@+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import { Button, Card, CardTitle, FormControl, Select, SelectItem } from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++const schema = z.object({+ secretPath: z.string().trim(),+ sourceEnvironment: z.string().trim(),+ appId: z.string().trim()+});++type FormData = z.infer<typeof schema>;++const APP_NAME = "Hasura Cloud";+export const HasuraCloudConfigurePage = () => {+ const {+ control,+ handleSubmit,+ watch,+ formState: { isSubmitting }+ } = useForm<FormData>({+ resolver: zodResolver(schema)+ });+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.HasuraCloudConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth, isLoading: isIntegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );++ const selectedSourceEnvironment = watch("sourceEnvironment");++ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const onFormSubmit = async ({ secretPath, sourceEnvironment, appId }: FormData) => {+ try {+ if (!integrationAuth?.id) return;++ const app = integrationAuthApps?.find((data) => data.appId === appId);+ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ sourceEnvironment,+ secretPath,+ appId,+ app: app?.name+ });++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && integrationAuthApps ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up {APP_NAME} Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle={`Choose which environment or folder in Infisical you want to sync to ${APP_NAME} environment variables.`}+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Hasura.svg"+ height={30}+ width={30}+ alt={`${APP_NAME} logo`}+ />+ </div>+ <span className="ml-2.5">{APP_NAME} Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/hasura-cloud"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>++ <form onSubmit={handleSubmit(onFormSubmit)} className="flex w-full flex-col px-6">+ <Controller+ control={control}+ name="sourceEnvironment"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ className="w-full border border-mineshaft-500"+ value={field.value}+ onValueChange={(val) => {+ field.onChange(val);+ }}+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>+ <SecretPathInput {...field} environment={selectedSourceEnvironment} />+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="appId"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Hasura Cloud Project"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ className="w-full border border-mineshaft-500"+ value={field.value}+ isDisabled={integrationAuthApps?.length === 0}+ onValueChange={(val) => {+ field.onChange(val);+ }}+ >+ {integrationAuthApps?.map((project) => (+ <SelectItem value={project.appId ?? ""} key={`project-id-${project.appId}`}>+ {project.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />++ <Button+ type="submit"+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mt-2"+ isLoading={isSubmitting}+ >+ Create Integration+ </Button>+ </form>+ </Card>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up {APP_NAME} Integration</title>+ </Helmet>+ {isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/route.tsxnew file mode 100644index 0000000000..4accd54e72--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { HasuraCloudConfigurePage } from "./HasuraCloudConfigurePage";++const HasuraCloudConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create"+)({+ component: HasuraCloudConfigurePage,+ validateSearch: zodValidator(HasuraCloudConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsxnew file mode 100644index 0000000000..31ea5b258d--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx@@ -0,0 +1,294 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import { Button, Card, CardTitle, FormControl, Select, SelectItem } from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+// import { RadioGroup } from "@app/components/v2/RadioGroup";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";+import { IntegrationSyncBehavior } from "@app/hooks/api/integrations/types";++const initialSyncBehaviors = [+ {+ label: "No Import - Overwrite all values in Heroku",+ value: IntegrationSyncBehavior.OVERWRITE_TARGET+ },+ { label: "Import - Prefer values from Heroku", value: IntegrationSyncBehavior.PREFER_TARGET },+ { label: "Import - Prefer values from Infisical", value: IntegrationSyncBehavior.PREFER_SOURCE }+];++const schema = z.object({+ selectedSourceEnvironment: z.string(),+ secretPath: z.string(),+ targetApp: z.string(),+ initialSyncBehavior: z.nativeEnum(IntegrationSyncBehavior)+});++type FormData = z.infer<typeof schema>;++export const HerokuConfigurePage = () => {+ const navigate = useNavigate();++ const { currentWorkspace } = useWorkspace();+ const { control, handleSubmit, setValue, watch } = useForm<FormData>({+ resolver: zodResolver(schema),+ defaultValues: {+ secretPath: "/",+ initialSyncBehavior: IntegrationSyncBehavior.PREFER_SOURCE,+ selectedSourceEnvironment: currentWorkspace.environments[0].slug+ }+ });++ const selectedSourceEnvironment = watch("selectedSourceEnvironment");++ const { mutateAsync } = useCreateIntegration();+ // const { mutateAsync: mutateAsyncEnv } = useCreateWsEnvironment();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.HerokuConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setValue("targetApp", integrationAuthApps[0].name);+ } else {+ setValue("targetApp", "none");+ }+ }+ }, [integrationAuthApps]);++ const onFormSubmit = async ({ secretPath, targetApp, initialSyncBehavior }: FormData) => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath,+ metadata: {+ initialSyncBehavior+ }+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up Heroku Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Select which environment or folder in Infisical you want to sync to Heroku's environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img src="/images/integrations/Heroku.png" height={30} width={30} alt="Heroku logo" />+ </div>+ <span className="ml-2">Heroku Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/heroku"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <form onSubmit={handleSubmit(onFormSubmit)} className="px-6">+ <Controller+ control={control}+ name="selectedSourceEnvironment"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ {...field}+ onValueChange={(e) => onChange(e)}+ className="w-full"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ <Controller+ control={control}+ defaultValue=""+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="Secrets Path" isError={Boolean(error)} errorText={error?.message}>+ <SecretPathInput+ {...field}+ placeholder="/"+ environment={selectedSourceEnvironment}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetApp"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => {+ return (+ <FormControl label="Heroku App" errorText={error?.message} isError={Boolean(error)}>+ <Select+ {...field}+ onValueChange={(e) => {+ if (e === "") return;+ onChange(e);+ }}+ className="w-full"+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={String(integrationAuthApp.name as string)}+ key={`target-app-${String(integrationAuthApp.appId)}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No apps found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ );+ }}+ />+ <Controller+ control={control}+ name="initialSyncBehavior"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Initial Sync Behavior"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select {...field} onValueChange={(e) => onChange(e)} className="w-full">+ {initialSyncBehaviors.map((b) => {+ return (+ <SelectItem value={b.value} key={`sync-behavior-${b.value}`}>+ {b.label}+ </SelectItem>+ );+ })}+ </Select>+ </FormControl>+ )}+ />+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mt-2"+ size="sm"+ type="submit"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </form>+ </Card>+ {/* {integrationType === "App" && <>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in Heroku with secrets from Infisical.+ </span>+ </div></>} */}+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Heroku Integration</title>+ </Helmet>+ {isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/HerokuConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/HerokuConfigurePage/route.tsxnew file mode 100644index 0000000000..b37435079b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HerokuConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { HerokuConfigurePage } from "./HerokuConfigurePage";++const HerokuConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create"+)({+ component: HerokuConfigurePage,+ validateSearch: zodValidator(HerokuConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsxnew file mode 100644index 0000000000..33e7b79b06--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/HerokuOauthCallbackPage.tsx@@ -0,0 +1,45 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const HerokuOAuthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.HerokuOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ if (state !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");+ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "heroku"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/heroku/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..b98f7abd54--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { HerokuOAuthCallbackPage } from "./HerokuOauthCallbackPage";++export const HerokuOAuthCallbackPageQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback"+)({+ component: HerokuOAuthCallbackPage,+ validateSearch: zodValidator(HerokuOAuthCallbackPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsxnew file mode 100644index 0000000000..8a69e0e640--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx@@ -0,0 +1,95 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const LaravelForgeAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();+ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [serverId, setServerId] = useState("");+ const [serverIdErrorText, setServerIdErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ setServerIdErrorText("");++ if (apiKey.length === 0) {+ setApiKeyErrorText("Access Token cannot be blank");+ return;+ }++ if (serverId.length === 0) {+ setServerIdErrorText("Server Id cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "laravel-forge",+ accessId: serverId,+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/laravel-forge/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Laravel Forge Integration</CardTitle>+ <FormControl+ label="Laravel Forge Access Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input+ placeholder="Access Token"+ value={apiKey}+ onChange={(e) => setApiKey(e.target.value)}+ />+ </FormControl>+ <FormControl+ label="Laravel Forge Server ID"+ errorText={serverIdErrorText}+ isError={serverIdErrorText !== ""}+ >+ <Input+ placeholder="123456"+ value={serverId}+ onChange={(e) => setServerId(e.target.value)}+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Laravel Forge+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/route.tsxnew file mode 100644index 0000000000..a9dfa3517c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { LaravelForgeAuthorizePage } from "./LaravelForgeAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize"+)({+ component: LaravelForgeAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsxnew file mode 100644index 0000000000..2d7902c012--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx@@ -0,0 +1,148 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const LaravelForgeConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.LaravelForgeConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetApp, setTargetApp] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: String(+ integrationAuthApps?.find((integrationAuthApp) => integrationAuthApp.name === targetApp)+ ?.appId+ ),+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Laravel Forge Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Laravel Forge Sites" className="mt-4">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No sites found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/route.tsxnew file mode 100644index 0000000000..2fb27ab257--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { LaravelForgeConfigurePage } from "./LaravelForgeConfigurePage";++const LaravelForgeConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create"+)({+ component: LaravelForgeConfigurePage,+ validateSearch: zodValidator(LaravelForgeConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsxnew file mode 100644index 0000000000..44a9acbd7d--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx@@ -0,0 +1,175 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++const netlifyEnvironments = [+ { name: "Local development", slug: "dev" },+ { name: "Branch deploys", slug: "branch-deploy" },+ { name: "Deploy previews", slug: "deploy-preview" },+ { name: "Production", slug: "production" }+];++export const NetlifyConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.NetlifyConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetApp, setTargetApp] = useState("");+ const [targetEnvironment, setTargetEnvironment] = useState(netlifyEnvironments[0].slug);+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ setIsLoading(true);++ if (!integrationAuth?.id) return;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ targetEnvironment,+ secretPath+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth &&+ selectedSourceEnvironment &&+ integrationAuthApps &&+ targetApp &&+ targetEnvironment ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Netlify Integration</CardTitle>+ <FormControl label="Project Environment">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Netlify Site">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No sites found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Netlify Context">+ <Select+ value={targetEnvironment}+ onValueChange={(val) => setTargetEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {netlifyEnvironments.map((netlifyEnvironment) => (+ <SelectItem+ value={netlifyEnvironment.slug}+ key={`target-environment-${netlifyEnvironment.slug}`}+ >+ {netlifyEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/NetlifyConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/NetlifyConfigurePage/route.tsxnew file mode 100644index 0000000000..a889bf6455--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NetlifyConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { NetlifyConfigurePage } from "./NetlifyConfigurePage";++const NetlifyConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create"+)({+ component: NetlifyConfigurePage,+ validateSearch: zodValidator(NetlifyConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsxnew file mode 100644index 0000000000..c9df44a95c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx@@ -0,0 +1,46 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const NetlifyOauthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.NetlifyOuathCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ if (state !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "netlify"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/netlify/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..004fda6d20--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { NetlifyOauthCallbackPage } from "./NetlifyOauthCallbackPage";++export const NetlifyOAuthCallbackPageQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback"+)({+ component: NetlifyOauthCallbackPage,+ validateSearch: zodValidator(NetlifyOAuthCallbackPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsxnew file mode 100644index 0000000000..e505a9d651--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx@@ -0,0 +1,71 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const NorthflankAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "northflank",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/northflank/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Northflank Integration</CardTitle>+ <FormControl+ label="Northflank API Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Northflank+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/NorthflankAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/NorthflankAuthorizePage/route.tsxnew file mode 100644index 0000000000..6ed9541be9--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NorthflankAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { NorthflankAuthorizePage } from "./NorthflankAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize"+)({+ component: NorthflankAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsxnew file mode 100644index 0000000000..9d99cc9400--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx@@ -0,0 +1,194 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById,+ useGetIntegrationAuthNorthflankSecretGroups+} from "@app/hooks/api/integrationAuth";++export const NorthflankConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");+ const [targetAppId, setTargetAppId] = useState("");+ const [targetSecretGroupId, setTargetSecretGroupId] = useState<string>("");++ const [isLoading, setIsLoading] = useState(false);++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.NorthflankConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });+ const { data: integrationAuthSecretGroups } = useGetIntegrationAuthNorthflankSecretGroups({+ integrationAuthId: (integrationAuthId as string) ?? "",+ appId: targetAppId+ });++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ // setTargetApp(integrationAuthApps[0].name);+ setTargetAppId(integrationAuthApps[0].appId as string);+ } else {+ // setTargetApp("none");+ setTargetAppId("none");+ }+ }+ }, [integrationAuthApps]);++ useEffect(() => {+ if (integrationAuthSecretGroups) {+ if (integrationAuthSecretGroups.length > 0) {+ // case: project has at least 1 secret group in Northflank+ setTargetSecretGroupId(integrationAuthSecretGroups[0].groupId);+ } else {+ // case: project has no secret groups in Northflank+ setTargetSecretGroupId("none");+ }+ }+ }, [integrationAuthSecretGroups]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ )?.name,+ appId: targetAppId,+ sourceEnvironment: selectedSourceEnvironment,+ targetServiceId: targetSecretGroupId,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetAppId ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Northflank Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Northflank Project" className="mt-4">+ <Select+ value={targetAppId}+ onValueChange={(val) => setTargetAppId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.appId as string}+ key={`target-environment-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ {targetSecretGroupId !== "" && integrationAuthSecretGroups && (+ <FormControl label="Secret Group" className="mt-4">+ <Select+ value={targetSecretGroupId}+ onValueChange={(val) => setTargetSecretGroupId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthSecretGroups.length === 0}+ >+ {integrationAuthSecretGroups.length > 0 ? (+ integrationAuthSecretGroups.map((secretGroup: any) => (+ <SelectItem+ value={secretGroup.groupId}+ key={`target-secret-group-${secretGroup.groupId}`}+ >+ {secretGroup.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-secret-group-none">+ No secret groups found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0 || integrationAuthSecretGroups?.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/NorthflankConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/NorthflankConfigurePage/route.tsxnew file mode 100644index 0000000000..23fda3135c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/NorthflankConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { NorthflankConfigurePage } from "./NorthflankConfigurePage";++const NorthflankConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create"+)({+ component: NorthflankConfigurePage,+ validateSearch: zodValidator(NorthflankConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsxnew file mode 100644index 0000000000..dd46c2784b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx@@ -0,0 +1,143 @@+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate } from "@tanstack/react-router";+import { z } from "zod";++import { createNotification } from "@app/components/notifications";+import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { removeTrailingSlash } from "@app/helpers/string";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++const formSchema = z.object({+ instanceUrl: z.string().min(1, { message: "Instance URL required" }),+ apiKey: z.string().min(1, { message: "API Key required" })+});++type TForm = z.infer<typeof formSchema>;++export const OctopusDeployAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync, isPending } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const { control, handleSubmit } = useForm<TForm>({+ resolver: zodResolver(formSchema)+ });++ const onSubmit = async ({ instanceUrl, apiKey }: TForm) => {+ try {+ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "octopus-deploy",+ url: removeTrailingSlash(instanceUrl),+ accessToken: apiKey+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/octopus-deploy/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err: any) {+ createNotification({+ type: "error",+ text: err.message ?? "Error authorizing integration"+ });+ console.error(err);+ }+ };++ return (+ <form+ onSubmit={handleSubmit(onSubmit)}+ className="flex h-full w-full items-center justify-center"+ >+ <Helmet>+ <title>Authorize Octopus Deploy Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your credentials, you will be prompted to set up an integration for a particular environment and secret path."+ >+ <div className="flex flex-row items-center">+ <div className="inline-flex items-center pb-0.5">+ <img+ src="/images/integrations/Octopus Deploy.png"+ height={30}+ width={30}+ alt="Octopus Deploy logo"+ />+ </div>+ <span className="ml-1.5">Octopus Deploy Integration</span>+ <a+ href="https://infisical.com/docs/integrations/cloud/octopus-deploy"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Controller+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ label="Octopus Deploy Instance URL"+ errorText={error?.message}+ isError={Boolean(error)}+ className="px-6"+ >+ <Input value={value} onChange={onChange} placeholder="https://xxxx.octopus.app" />+ </FormControl>+ )}+ name="instanceUrl"+ control={control}+ />+ <Controller+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ label="Octopus Deploy API Key"+ errorText={error?.message}+ isError={Boolean(error)}+ className="px-6"+ >+ <Input+ value={value}+ onChange={onChange}+ placeholder="API-XXXXXXXXXXXXXXXXXXXXXXXX"+ type="password"+ />+ </FormControl>+ )}+ name="apiKey"+ control={control}+ />+ <Button+ type="submit"+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isPending}+ isDisabled={isPending}+ >+ Connect to Octopus Deploy+ </Button>+ </Card>+ </form>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/route.tsxnew file mode 100644index 0000000000..950dd2f4e6--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { OctopusDeployAuthorizePage } from "./OctopusDeployAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize"+)({+ component: OctopusDeployAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsxnew file mode 100644index 0000000000..f4241b209a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx@@ -0,0 +1,450 @@+import { useEffect } from "react";+import { Controller, useForm } from "react-hook-form";+import { SiOctopusdeploy } from "react-icons/si";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import { createNotification } from "@app/components/notifications";+import {+ Button,+ Card,+ CardTitle,+ FilterableSelect,+ FormControl,+ Spinner+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration, useGetIntegrationAuthApps } from "@app/hooks/api";+import {+ useGetIntegrationAuthOctopusDeployScopeValues,+ useGetIntegrationAuthOctopusDeploySpaces+} from "@app/hooks/api/integrationAuth/queries";+import { OctopusDeployScope } from "@app/hooks/api/integrationAuth/types";++const formSchema = z.object({+ scope: z.nativeEnum(OctopusDeployScope),+ secretPath: z.string().default("/"),+ sourceEnvironment: z.object({ name: z.string(), slug: z.string() }),+ targetSpace: z.object({ Name: z.string(), Id: z.string() }),+ targetResource: z.object({ appId: z.string().optional(), name: z.string() }),+ targetEnvironments: z.object({ Name: z.string(), Id: z.string() }).array().optional(),+ targetRoles: z.object({ Name: z.string(), Id: z.string() }).array().optional(),+ targetMachines: z.object({ Name: z.string(), Id: z.string() }).array().optional(),+ targetProcesses: z+ .object({ Name: z.string(), Id: z.string(), ProcessType: z.string() })+ .array()+ .optional(),+ targetActions: z.object({ Name: z.string(), Id: z.string() }).array().optional(),+ targetChannels: z.object({ Name: z.string(), Id: z.string() }).array().optional()+});++type TFormData = z.infer<typeof formSchema>;++export const OctopusDeployConfigurePage = () => {+ const navigate = useNavigate();+ const createIntegration = useCreateIntegration();++ const { watch, control, reset, handleSubmit } = useForm<TFormData>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ secretPath: "/",+ scope: OctopusDeployScope.Project+ }+ });++ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.OctopusDeployCloudConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: octopusDeploySpaces, isLoading: isLoadingOctopusDeploySpaces } =+ useGetIntegrationAuthOctopusDeploySpaces((integrationAuthId as string) ?? "");++ const currentSpace = watch("targetSpace", octopusDeploySpaces?.[0]);+ const currentScope = watch("scope");+ const sourceEnv = watch("sourceEnvironment");++ const { data: octopusDeployResources, isLoading: isOctopusDeployResourcesLoading } =+ useGetIntegrationAuthApps(+ {+ integrationAuthId,+ workspaceSlug: currentSpace?.Name+ // scope once we support other resources than project+ },+ {+ enabled: Boolean(currentSpace ?? octopusDeploySpaces?.find((space) => space.IsDefault))+ }+ );++ const currentResource = watch("targetResource", octopusDeployResources?.[0]);++ const { data: octopusDeployScopeValues, isLoading: isOctopusDeployScopeValuesLoading } =+ useGetIntegrationAuthOctopusDeployScopeValues(+ {+ integrationAuthId,+ spaceId: currentSpace?.Id,+ resourceId: currentResource.appId!,+ scope: currentScope+ },+ { enabled: Boolean(currentSpace && currentResource) }+ );++ const onSubmit = async ({+ sourceEnvironment,+ secretPath,+ targetEnvironments,+ targetResource,+ targetSpace,+ targetChannels,+ targetActions,+ targetMachines,+ targetProcesses,+ targetRoles,+ scope+ }: TFormData) => {+ try {+ await createIntegration.mutateAsync({+ integrationAuthId,+ isActive: true,+ scope,+ app: targetResource.name,+ appId: targetResource.appId,+ targetEnvironment: targetSpace.Name,+ targetEnvironmentId: targetSpace.Id,+ metadata: {+ octopusDeployScopeValues: {+ Environment: targetEnvironments?.map(({ Id }) => Id),+ Action: targetActions?.map(({ Id }) => Id),+ Channel: targetChannels?.map(({ Id }) => Id),+ ProcessOwner: targetProcesses?.map(({ Id }) => Id),+ Role: targetRoles?.map(({ Id }) => Id),+ Machine: targetMachines?.map(({ Id }) => Id)+ }+ },+ sourceEnvironment: sourceEnvironment.slug,+ secretPath+ });++ createNotification({+ type: "success",+ text: "Successfully created integration"+ });+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ createNotification({+ type: "error",+ text: "Failed to create integration"+ });+ console.error(err);+ }+ };++ useEffect(() => {+ if (!octopusDeployResources || !octopusDeploySpaces || !currentWorkspace) return;++ reset({+ targetResource: octopusDeployResources[0],+ targetSpace: octopusDeploySpaces.find((space) => space.IsDefault),+ sourceEnvironment: currentWorkspace.environments[0],+ secretPath: "/",+ scope: OctopusDeployScope.Project+ });+ }, [octopusDeploySpaces, octopusDeployResources, currentWorkspace]);++ if (isLoadingOctopusDeploySpaces || isOctopusDeployResourcesLoading)+ return (+ <div className="flex h-full w-full items-center justify-center p-24">+ <Spinner />+ </div>+ );++ return (+ <form+ onSubmit={handleSubmit(onSubmit)}+ className="flex h-full w-full items-center justify-center"+ >+ <Card className="max-w-4xl rounded-md p-8 pt-4">+ <CardTitle className="text-center">+ <SiOctopusdeploy size="1.2rem" className="mb-1 mr-2 inline-block" />+ Octopus Deploy Integration+ </CardTitle>+ <div className="grid grid-cols-2 gap-4">+ <Controller+ control={control}+ name="sourceEnvironment"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Project Environment"+ >+ <FilterableSelect+ getOptionValue={(option) => option.slug}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={currentWorkspace?.environments}+ placeholder="Select a project environment"+ isDisabled={!currentWorkspace?.environments.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="secretPath"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl isError={Boolean(error)} label="Secrets Path">+ <SecretPathInput+ placeholder="/"+ environment={sourceEnv?.slug}+ value={value}+ onChange={onChange}+ />+ </FormControl>+ )}+ />+ <div className="col-span-2 flex w-full flex-row items-center pb-2">+ <div className="w-full border-t border-mineshaft-500" />+ <span className="mx-2 whitespace-nowrap text-xs text-mineshaft-400">Sync To</span>+ <div className="w-full border-t border-mineshaft-500" />+ </div>+ <Controller+ control={control}+ name="targetSpace"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Octopus Deploy Space"+ >+ <FilterableSelect+ getOptionValue={(option) => option.Id}+ value={value}+ getOptionLabel={(option) => option.Name}+ onChange={onChange}+ options={octopusDeploySpaces}+ placeholder={+ octopusDeploySpaces?.length ? "Select a space..." : "No spaces found..."+ }+ isDisabled={!octopusDeploySpaces?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetResource"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ className="capitalize"+ label={`Octopus Deploy ${currentScope}`}+ >+ <FilterableSelect+ getOptionValue={(option) => option.appId!}+ value={value}+ getOptionLabel={(option) => option.name}+ onChange={onChange}+ options={octopusDeployResources}+ placeholder={+ octopusDeployResources?.length ? "Select a project..." : "No projects found..."+ }+ isDisabled={!octopusDeployResources?.length}+ />+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="targetEnvironments"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Octopus Deploy Environments"+ isOptional+ >+ <FilterableSelect+ isMulti+ getOptionValue={(option) => option.Name}+ value={value}+ getOptionLabel={(option) => option.Name}+ onChange={onChange}+ isLoading={isOctopusDeployScopeValuesLoading}+ options={octopusDeployScopeValues?.Environments}+ placeholder={+ octopusDeployScopeValues?.Environments?.length+ ? "Select environments..."+ : "No environments found..."+ }+ isDisabled={!octopusDeployScopeValues?.Environments?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetRoles"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Octopus Deploy Target Tags"+ isOptional+ >+ <FilterableSelect+ isMulti+ getOptionValue={(option) => option.Name}+ value={value}+ getOptionLabel={(option) => option.Name}+ onChange={onChange}+ isLoading={isOctopusDeployScopeValuesLoading}+ options={octopusDeployScopeValues?.Roles}+ placeholder={+ octopusDeployScopeValues?.Roles?.length+ ? "Select target tags..."+ : "No target tags found..."+ }+ isDisabled={!octopusDeployScopeValues?.Roles?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetMachines"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Octopus Deploy Targets"+ isOptional+ >+ <FilterableSelect+ isMulti+ getOptionValue={(option) => option.Name}+ value={value}+ getOptionLabel={(option) => option.Name}+ onChange={onChange}+ isLoading={isOctopusDeployScopeValuesLoading}+ options={octopusDeployScopeValues?.Machines}+ placeholder={+ octopusDeployScopeValues?.Machines?.length+ ? "Select targets..."+ : "No targets found..."+ }+ isDisabled={!octopusDeployScopeValues?.Machines?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetProcesses"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Octopus Deploy Processes"+ isOptional+ >+ <FilterableSelect+ isMulti+ getOptionValue={(option) => option.Name}+ value={value}+ getOptionLabel={(option) => option.Name}+ onChange={onChange}+ isLoading={isOctopusDeployScopeValuesLoading}+ options={octopusDeployScopeValues?.Processes}+ placeholder={+ octopusDeployScopeValues?.Processes?.length+ ? "Select processes..."+ : "No processes found..."+ }+ isDisabled={!octopusDeployScopeValues?.Processes?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetActions"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Octopus Deploy Deployment Steps"+ isOptional+ >+ <FilterableSelect+ isMulti+ getOptionValue={(option) => option.Name}+ value={value}+ getOptionLabel={(option) => option.Name}+ onChange={onChange}+ isLoading={isOctopusDeployScopeValuesLoading}+ options={octopusDeployScopeValues?.Actions}+ placeholder={+ octopusDeployScopeValues?.Actions?.length+ ? "Select deployment steps..."+ : "No deployment steps found..."+ }+ isDisabled={!octopusDeployScopeValues?.Actions?.length}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetChannels"+ render={({ field: { value, onChange }, fieldState: { error } }) => (+ <FormControl+ errorText={error?.message}+ isError={Boolean(error)}+ label="Octopus Deploy Channels"+ isOptional+ >+ <FilterableSelect+ isMulti+ getOptionValue={(option) => option.Name}+ value={value}+ getOptionLabel={(option) => option.Name}+ onChange={onChange}+ isLoading={isOctopusDeployScopeValuesLoading}+ options={octopusDeployScopeValues?.Channels}+ placeholder={+ octopusDeployScopeValues?.Channels?.length+ ? "Select channels..."+ : "No channels found..."+ }+ isDisabled={!octopusDeployScopeValues?.Channels?.length}+ />+ </FormControl>+ )}+ />+ </div>+ <Button+ type="submit"+ colorSchema="primary"+ className="mt-4"+ isLoading={createIntegration.isPending}+ isDisabled={createIntegration.isPending || !octopusDeployResources?.length}+ >+ Create Integration+ </Button>+ </Card>+ </form>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/route.tsxnew file mode 100644index 0000000000..7ce0aa0193--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { OctopusDeployConfigurePage } from "./OctopusDeployConfigurePage";++const OctopusDeployConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create"+)({+ component: OctopusDeployConfigurePage,+ validateSearch: zodValidator(OctopusDeployConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsxnew file mode 100644index 0000000000..e896625657--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx@@ -0,0 +1,110 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const QoveryAuthorizePage = () => {+ const navigate = useNavigate();+ const { currentWorkspace } = useWorkspace();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [accessToken, setAccessToken] = useState("");+ const [accessTokenErrorText, setAccessTokenErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setAccessTokenErrorText("");+ if (accessToken.length === 0) {+ setAccessTokenErrorText("Access token cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "qovery",+ accessToken+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/qovery/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Qovery Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your API key, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/Qovery.png" height={30} width={30} alt="Qovery logo" />+ </div>+ <span className="ml-2.5">Qovery Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/qovery"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl+ label="Qovery API token"+ errorText={accessTokenErrorText}+ isError={accessTokenErrorText !== ""}+ className="mx-6"+ >+ <Input+ placeholder=""+ value={accessToken}+ type="password"+ autoComplete="new-password"+ onChange={(e) => setAccessToken(e.target.value)}+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Connect to Qovery+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/QoveryAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/QoveryAuthorizePage/route.tsxnew file mode 100644index 0000000000..5946f61ea6--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/QoveryAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { QoveryAuthorizePage } from "./QoveryAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize"+)({+ component: QoveryAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsxnew file mode 100644index 0000000000..76b34d30e5--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx@@ -0,0 +1,431 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { motion } from "framer-motion";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import { useGetIntegrationAuthById } from "@app/hooks/api/integrationAuth";+import {+ useGetIntegrationAuthQoveryEnvironments,+ useGetIntegrationAuthQoveryOrgs,+ useGetIntegrationAuthQoveryProjects,+ useGetIntegrationAuthQoveryScopes+} from "@app/hooks/api/integrationAuth/queries";++const qoveryScopes = [+ { label: "Application", value: "application" },+ { label: "Container", value: "container" },+ { label: "Job", value: "job" }+];++enum TabSections {+ InfisicalSettings = "infisicalSettings",+ QoverySettings = "qoverySettings"+}++/**+ * Follow the logic:+ * - Access token+ * -> Get organizations (orgId) - select an organization+ * -> Get projects belonging to the organization - select project+ * -> Get environments belonging to the project - select environmnet+ * -> Get qovery scopes / application (this is the application to sync to)+ *+ * Do we even need to get organizations?+ */++export const QoveryConfigurePage = () => {+ const navigate = useNavigate();++ const { currentWorkspace } = useWorkspace();+ const { mutateAsync } = useCreateIntegration();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.QoveryConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");++ const [scope, setScope] = useState("application");+ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");++ const { data: integrationAuthOrgs } = useGetIntegrationAuthQoveryOrgs(+ (integrationAuthId as string) ?? ""+ );+ const [targetOrgId, setTargetOrgId] = useState("");++ const { data: integrationAuthProjects } = useGetIntegrationAuthQoveryProjects({+ integrationAuthId: (integrationAuthId as string) ?? "",+ orgId: targetOrgId+ });+ const [targetProjectId, setTargetProjectId] = useState("");++ const { data: integrationAuthEnvironments } = useGetIntegrationAuthQoveryEnvironments({+ integrationAuthId: (integrationAuthId as string) ?? "",+ projectId: targetProjectId+ });+ const [targetEnvironmentId, setTargetEnvironmentId] = useState("");++ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthQoveryScopes({+ integrationAuthId: (integrationAuthId as string) ?? "",+ environmentId: targetEnvironmentId,+ scope: scope as "job" | "application" | "container"+ });+ const [targetAppId, setTargetAppId] = useState("");++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetAppId(String(integrationAuthApps[0].appId));+ } else {+ setTargetAppId("none");+ }+ }+ }, [integrationAuthApps]);++ useEffect(() => {+ if (integrationAuthOrgs) {+ if (integrationAuthOrgs.length > 0) {+ setTargetOrgId(String(integrationAuthOrgs[0].orgId));+ } else {+ setTargetOrgId("none");+ }+ }+ }, [integrationAuthOrgs]);++ useEffect(() => {+ if (integrationAuthProjects) {+ if (integrationAuthProjects.length > 0) {+ setTargetProjectId(String(integrationAuthProjects[0].projectId));+ } else {+ setTargetProjectId("none");+ }+ }+ }, [integrationAuthProjects]);++ useEffect(() => {+ if (integrationAuthEnvironments) {+ if (integrationAuthEnvironments.length > 0) {+ setTargetEnvironmentId(String(integrationAuthEnvironments[0].environmentId));+ } else {+ setTargetEnvironmentId("none");+ }+ }+ }, [integrationAuthEnvironments]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ const targetOrg = integrationAuthOrgs?.find(+ (integrationAuthOrg) => integrationAuthOrg.orgId === targetOrgId+ )?.name;+ const targetProject = integrationAuthProjects?.find(+ (integrationAuthProject) => integrationAuthProject.projectId === targetProjectId+ )?.name;+ const targetEnvironment = integrationAuthEnvironments?.find(+ (integrationAuthEnvironment) =>+ integrationAuthEnvironment.environmentId === targetEnvironmentId+ )?.name;+ const targetApp = integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ )?.name;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: targetAppId,+ scope,+ sourceEnvironment: selectedSourceEnvironment,+ targetEnvironment,+ targetEnvironmentId,+ targetService: targetProject,+ targetServiceId: targetProjectId,+ owner: targetOrg,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment ? (+ <div className="flex h-full w-full flex-col items-center justify-center bg-gradient-to-tr from-mineshaft-900 to-bunker-900">+ <Helmet>+ <title>Set Up Qovery Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment in Infisical you want to sync to Checkly environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/Qovery.png" height={30} width={30} alt="Qovery logo" />+ </div>+ <span className="ml-2.5">Qovery Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/qovery"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <Tabs defaultValue={TabSections.InfisicalSettings} className="px-6">+ <TabList>+ <div className="flex w-full flex-row border-b border-mineshaft-600">+ <Tab value={TabSections.InfisicalSettings}>Infisical Settings</Tab>+ <Tab value={TabSections.QoverySettings}>Qovery Settings</Tab>+ </div>+ </TabList>+ <TabPanel value={TabSections.InfisicalSettings}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: 30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <FormControl label="Infisical Project Environment">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path" className="pb-[14.68rem]">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ </motion.div>+ </TabPanel>+ <TabPanel value={TabSections.QoverySettings}>+ <motion.div+ key="panel-1"+ transition={{ duration: 0.15 }}+ initial={{ opacity: 0, translateX: -30 }}+ animate={{ opacity: 1, translateX: 0 }}+ exit={{ opacity: 0, translateX: 30 }}+ >+ <FormControl label="Qovery Scope">+ <Select+ value={scope}+ onValueChange={(val) => setScope(val)}+ className="w-full border border-mineshaft-500"+ >+ {qoveryScopes.map((qoveryScope) => (+ <SelectItem value={qoveryScope.value} key={`target-app-${qoveryScope.value}`}>+ {qoveryScope.label}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ {integrationAuthOrgs && (+ <FormControl label="Qovery Organization">+ <Select+ value={targetOrgId}+ onValueChange={(val) => setTargetOrgId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthOrgs.length === 0}+ >+ {integrationAuthOrgs.length > 0 ? (+ integrationAuthOrgs.map((integrationAuthOrg) => (+ <SelectItem+ value={integrationAuthOrg.orgId}+ key={`target-app-${integrationAuthOrg.orgId}`}+ >+ {integrationAuthOrg.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No organizaztions found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ {integrationAuthProjects && (+ <FormControl label="Qovery Project">+ <Select+ value={targetProjectId}+ onValueChange={(val) => setTargetProjectId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthProjects.length === 0}+ >+ {integrationAuthProjects.length > 0 ? (+ integrationAuthProjects.map((integrationAuthProject) => (+ <SelectItem+ value={integrationAuthProject.projectId}+ key={`target-app-${integrationAuthProject.projectId}`}+ >+ {integrationAuthProject.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ {integrationAuthEnvironments && (+ <FormControl label="Qovery Environment">+ <Select+ value={targetEnvironmentId}+ onValueChange={(val) => setTargetEnvironmentId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthEnvironments.length === 0}+ >+ {integrationAuthEnvironments.length > 0 ? (+ integrationAuthEnvironments.map((integrationAuthEnvironment) => (+ <SelectItem+ value={integrationAuthEnvironment.environmentId}+ key={`target-app-${integrationAuthEnvironment.environmentId}`}+ >+ {integrationAuthEnvironment.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No environments found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ {scope && integrationAuthApps && (+ <FormControl label={`Qovery ${scope.charAt(0).toUpperCase() + scope.slice(1)}`}>+ <Select+ value={targetAppId}+ onValueChange={(val) => setTargetAppId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.appId as string}+ key={`target-app-${integrationAuthApp.appId}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No {scope}s found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ )}+ </motion.div>+ </TabPanel>+ </Tabs>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6"+ isFullWidth={false}+ isLoading={isLoading}+ >+ Create Integration+ </Button>+ </Card>+ {/* <div className="border-t border-mineshaft-800 w-full max-w-md mt-6"/>+ <div className="flex flex-col bg-mineshaft-800 border border-mineshaft-600 w-full p-4 max-w-lg mt-6 rounded-md">+ <div className="flex flex-row items-center"><FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-200 text-xl"/> <span className="ml-3 text-md text-mineshaft-100">Pro Tip</span></div>+ <span className="text-mineshaft-300 text-sm mt-4">After creating an integration, your secrets will start syncing immediately. This might cause an unexpected override of current secrets in Qovery with secrets from Infisical.</span>+ </div> */}+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Qovery Integration</title>+ </Helmet>+ {isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/QoveryConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/QoveryConfigurePage/route.tsxnew file mode 100644index 0000000000..a7f2c7a0a5--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/QoveryConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { QoveryConfigurePage } from "./QoveryConfigurePage";++const QoveryConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create"+)({+ component: QoveryConfigurePage,+ validateSearch: zodValidator(QoveryConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsxnew file mode 100644index 0000000000..9cd619e180--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx@@ -0,0 +1,71 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const RailwayAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "railway",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/railway/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Railway Integration</CardTitle>+ <FormControl+ label="Railway API Key"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Railway+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/RailwayAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/RailwayAuthorizePage/route.tsxnew file mode 100644index 0000000000..1addd4e521--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RailwayAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { RailwayAuthorizePage } from "./RailwayAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize"+)({+ component: RailwayAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsxnew file mode 100644index 0000000000..9b4162072c--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx@@ -0,0 +1,232 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById,+ useGetIntegrationAuthRailwayEnvironments,+ useGetIntegrationAuthRailwayServices+} from "@app/hooks/api/integrationAuth";++export const RailwayConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const [targetAppId, setTargetAppId] = useState("");+ const [targetEnvironmentId, setTargetEnvironmentId] = useState("");+ const [targetServiceId, setTargetServiceId] = useState("");++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.RailwayConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });+ const { data: targetEnvironments } = useGetIntegrationAuthRailwayEnvironments({+ integrationAuthId: (integrationAuthId as string) ?? "",+ appId: targetAppId+ });+ const { data: targetServices } = useGetIntegrationAuthRailwayServices({+ integrationAuthId: (integrationAuthId as string) ?? "",+ appId: targetAppId+ });++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetAppId(integrationAuthApps[0].appId as string);+ } else {+ setTargetAppId("none");+ }+ }+ }, [integrationAuthApps]);++ useEffect(() => {+ if (targetEnvironments) {+ if (targetEnvironments.length > 0) {+ setTargetEnvironmentId(targetEnvironments[0].environmentId);+ } else {+ setTargetEnvironmentId("none");+ }+ }+ }, [targetEnvironments]);++ const handleButtonClick = async () => {+ try {+ setIsLoading(true);++ if (!integrationAuth?.id) return;++ const targetApp = integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ );+ const targetEnvironment = targetEnvironments?.find(+ (environment) => environment.environmentId === targetEnvironmentId+ );++ if (!targetApp || !targetApp.appId || !targetEnvironment) return;++ const targetService = targetServices?.find(+ (service) => service.serviceId === targetServiceId+ );++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp.name,+ appId: targetApp.appId,+ sourceEnvironment: selectedSourceEnvironment,+ targetEnvironment: targetEnvironment.name,+ targetEnvironmentId: targetEnvironment.environmentId,+ targetService: targetService?.name,+ targetServiceId: targetService?.serviceId,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ const filteredTargetServices = targetServices+ ? [{ name: "", serviceId: "none" }, ...targetServices]+ : [{ name: "", serviceId: "none" }];++ return selectedSourceEnvironment &&+ integrationAuthApps &&+ targetEnvironments &&+ targetServices &&+ filteredTargetServices ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Railway Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Railway Project">+ <Select+ value={targetAppId}+ onValueChange={(val) => setTargetAppId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.appId as string}+ key={`target-app-${integrationAuthApp.appId as string}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Railway Project Environment">+ <Select+ value={targetEnvironmentId}+ onValueChange={(val) => setTargetEnvironmentId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={targetEnvironments.length === 0}+ >+ {targetEnvironments.length > 0 ? (+ targetEnvironments.map((targetEnvironment) => (+ <SelectItem+ value={targetEnvironment.environmentId as string}+ key={`target-environment-${targetEnvironment.environmentId as string}`}+ >+ {targetEnvironment.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-environment-none">+ No environments found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Railway Service (Optional)">+ <Select+ value={targetServiceId}+ onValueChange={(val) => setTargetServiceId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={targetServices.length === 0}+ >+ {filteredTargetServices.map((targetService) => (+ <SelectItem+ value={targetService.serviceId as string}+ key={`target-service-${targetService.serviceId as string}`}+ >+ {targetService.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/RailwayConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/RailwayConfigurePage/route.tsxnew file mode 100644index 0000000000..155cefd103--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RailwayConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { RailwayConfigurePage } from "./RailwayConfigurePage";++const RailwayConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create"+)({+ component: RailwayConfigurePage,+ validateSearch: zodValidator(RailwayConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsxnew file mode 100644index 0000000000..8db1a11cf8--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx@@ -0,0 +1,109 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const RenderAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "render",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/render/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Render Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your API key, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/Render.png" height={30} width={30} alt="Render logo" />+ </div>+ <span className="ml-2.5">Render Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/render"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl+ label="Render API Key"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ className="px-6"+ >+ <Input+ placeholder="rnd_xxx"+ value={apiKey}+ type="password"+ autoComplete="new-password"+ onChange={(e) => setApiKey(e.target.value)}+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isLoading}+ >+ Connect to Render+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/RenderAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/RenderAuthorizePage/route.tsxnew file mode 100644index 0000000000..e7121ff18b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RenderAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { RenderAuthorizePage } from "./RenderAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize"+)({+ component: RenderAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsxnew file mode 100644index 0000000000..cccdc9f4dd--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx@@ -0,0 +1,300 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import {+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Select,+ SelectItem,+ Switch+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++const schema = z.object({+ selectedSourceEnvironment: z.string(),+ secretPath: z.string(),+ targetAppId: z.string(),+ shouldAutoRedeploy: z.boolean().default(false)+});++type FormData = z.infer<typeof schema>;++export const RenderConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const { control, handleSubmit, setValue, watch } = useForm<FormData>({+ resolver: zodResolver(schema),+ defaultValues: {+ secretPath: "/",+ shouldAutoRedeploy: false,+ selectedSourceEnvironment: currentWorkspace.environments[0].slug+ }+ });++ const selectedSourceEnvironment = watch("selectedSourceEnvironment");++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.RenderConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth, isLoading: isIntegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );+ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setValue("targetAppId", integrationAuthApps[0].appId as string);+ } else {+ setValue("targetAppId", "none");+ }+ }+ }, [integrationAuthApps]);++ const onFormSubmit = async ({ secretPath, targetAppId, shouldAutoRedeploy }: FormData) => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ )?.name,+ appId: targetAppId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath,+ metadata: {+ shouldAutoRedeploy+ }+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps ? (+ <form+ onSubmit={handleSubmit(onFormSubmit)}+ className="flex h-full w-full flex-col items-center justify-center"+ >+ <Helmet>+ <title>Set Up Render Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment or folder in Infisical you want to sync to Render environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src="/images/integrations/Render.png" height={30} width={30} alt="Render logo" />+ </div>+ <span className="ml-2.5">Render Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/render"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <div className="px-6">+ <Controller+ control={control}+ name="selectedSourceEnvironment"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ defaultValue={field.value}+ {...field}+ onValueChange={(e) => onChange(e)}+ className="w-full"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />+ <Controller+ control={control}+ defaultValue=""+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="Secrets Path" isError={Boolean(error)} errorText={error?.message}>+ <SecretPathInput+ {...field}+ placeholder="/"+ environment={selectedSourceEnvironment}+ />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="targetAppId"+ render={({ field: { onChange, ...field }, fieldState: { error } }) => {+ return (+ <FormControl+ label="Render Service"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ {...field}+ onValueChange={(e) => {+ if (e === "") return;+ onChange(e);+ }}+ className="w-full"+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={String(integrationAuthApp.appId as string)}+ key={`target-app-${String(integrationAuthApp.appId)}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No services found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ );+ }}+ />+ <div className="mb-[2.36rem] ml-1 mt-8">+ <Controller+ control={control}+ name="shouldAutoRedeploy"+ render={({ field: { onChange, value } }) => (+ <Switch+ id="redeploy-render"+ onCheckedChange={(isChecked) => onChange(isChecked)}+ isChecked={value}+ >+ Auto-redeploy service upon secret change+ </Switch>+ )}+ />+ </div>+ </div>+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mb-8 ml-auto mr-6 mt-4 w-min"+ size="sm"+ type="submit"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in Render with secrets from Infisical.+ </span>+ </div>+ </form>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Render Integration</title>+ </Helmet>+ {isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/RenderConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/RenderConfigurePage/route.tsxnew file mode 100644index 0000000000..020a9a5a33--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RenderConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { RenderConfigurePage } from "./RenderConfigurePage";++const RenderConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create"+)({+ component: RenderConfigurePage,+ validateSearch: zodValidator(RenderConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsxnew file mode 100644index 0000000000..b8473867ea--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx@@ -0,0 +1,137 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate } from "@tanstack/react-router";+import z from "zod";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++const schema = z.object({+ authToken: z.string().trim().min(1, { message: "Rundeck Auth Token is required" }),+ rundeckURL: z.string().trim().min(1, {+ message: "Rundeck URL is required"+ })+});++type FormData = z.infer<typeof schema>;++export const RundeckAuthorizePage = () => {+ const navigate = useNavigate();+ const [isLoading, setIsLoading] = useState(false);+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const { currentWorkspace } = useWorkspace();++ const { control, handleSubmit } = useForm<FormData>({+ resolver: zodResolver(schema),+ defaultValues: {+ authToken: "",+ rundeckURL: ""+ }+ });++ const onFormSubmit = async ({ authToken, rundeckURL }: FormData) => {+ try {+ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "rundeck",+ accessToken: authToken,+ url: rundeckURL.trim()+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations/rundeck/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ setIsLoading(false);+ console.error(err);+ }+ };+ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Rundeck Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding your URL and auth token, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Rundeck.svg"+ height={30}+ width={30}+ alt="Rundeck logo"+ />+ </div>+ <span className="ml-2.5">Rundeck Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cicd/rundeck"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <form onSubmit={handleSubmit(onFormSubmit)} className="px-6 pb-8 text-right">+ <Controller+ control={control}+ name="rundeckURL"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="URL" errorText={error?.message} isError={Boolean(error)}>+ <Input {...field} placeholder="https://self-hosted-rundeck.com" />+ </FormControl>+ )}+ />+ <Controller+ control={control}+ name="authToken"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Rundeck Auth Token"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input {...field} placeholder="" />+ </FormControl>+ )}+ />+ <Button+ colorSchema="primary"+ variant="outline_bg"+ className="mt-2 w-min"+ size="sm"+ type="submit"+ isLoading={isLoading}+ >+ Connect to Rundeck+ </Button>+ </form>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/RundeckAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/RundeckAuthorizePage/route.tsxnew file mode 100644index 0000000000..6f5ad6e102--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RundeckAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { RundeckAuthorizePage } from "./RundeckAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize"+)({+ component: RundeckAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsxnew file mode 100644index 0000000000..4d9046be9e--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx@@ -0,0 +1,222 @@+import { Helmet } from "react-helmet";+import { Controller, useForm } from "react-hook-form";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { zodResolver } from "@hookform/resolvers/zod";+import { useNavigate, useSearch } from "@tanstack/react-router";+import { z } from "zod";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { SecretPathInput } from "@app/components/v2/SecretPathInput";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import { useGetIntegrationAuthById } from "@app/hooks/api/integrationAuth";++const schema = z.object({+ keyStoragePath: z.string().trim().min(1, { message: "Rundeck Key Storage path is required" }),+ secretPath: z.string().trim().min(1, { message: "Secret path is required" }),+ sourceEnvironment: z.string().trim().min(1, { message: "Source environment is required" })+});++type TFormSchema = z.infer<typeof schema>;++export const RundeckConfigurePage = () => {+ const {+ control,+ handleSubmit,+ watch,+ formState: { isSubmitting }+ } = useForm<TFormSchema>({+ resolver: zodResolver(schema),+ defaultValues: {+ secretPath: "/"+ }+ });+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();+ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.RundeckConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth, isLoading: isIntegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );++ const selectedSourceEnvironment = watch("sourceEnvironment");++ const onFormSubmit = async ({ secretPath, sourceEnvironment, keyStoragePath }: TFormSchema) => {+ try {+ if (!integrationAuth?.id) return;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ path: keyStoragePath,+ sourceEnvironment,+ url: integrationAuth.url,+ secretPath+ });++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up Rundeck Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment or folder in Infisical you want to sync to the Rundeck Key Storage."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/Rundeck.svg"+ height={30}+ width={30}+ alt="Rundeck logo"+ />+ </div>+ <span className="ml-2.5">Rundeck Integration </span>+ <a+ href="https://infisical.com/docs/integrations/cloud/flyio"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>++ <form onSubmit={handleSubmit(onFormSubmit)} className="flex w-full flex-col px-6">+ <Controller+ control={control}+ name="sourceEnvironment"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Project Environment"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Select+ className="w-full border border-mineshaft-500"+ value={field.value}+ onValueChange={(val) => {+ field.onChange(val);+ }}+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="secretPath"+ render={({ field, fieldState: { error } }) => (+ <FormControl label="Secrets Path" errorText={error?.message} isError={Boolean(error)}>+ <SecretPathInput {...field} environment={selectedSourceEnvironment} />+ </FormControl>+ )}+ />++ <Controller+ control={control}+ name="keyStoragePath"+ render={({ field, fieldState: { error } }) => (+ <FormControl+ label="Rundeck Key Storage Path"+ errorText={error?.message}+ isError={Boolean(error)}+ >+ <Input+ placeholder={`keys/project/${currentWorkspace.name+ .toLowerCase()+ .replace(/ /g, "-")}/${selectedSourceEnvironment}`}+ {...field}+ />+ </FormControl>+ )}+ />++ <Button+ type="submit"+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mt-2"+ isLoading={isSubmitting}+ >+ Create Integration+ </Button>+ </form>+ </Card>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Rundeck Integration</title>+ </Helmet>+ {isIntegrationAuthLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/RundeckConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/RundeckConfigurePage/route.tsxnew file mode 100644index 0000000000..bb7a7f3b17--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/RundeckConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { RundeckConfigurePage } from "./RundeckConfigurePage";++const RundeskConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create"+)({+ component: RundeckConfigurePage,+ validateSearch: zodValidator(RundeskConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsxnew file mode 100644index 0000000000..6981aeaf67--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx@@ -0,0 +1,216 @@+import crypto from "crypto";++import { useCallback, useEffect } from "react";+import { Helmet } from "react-helmet";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { Button, Card, CardTitle, ContentLoader } from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useOrganization, useWorkspace } from "@app/context";+import {+ useDuplicateIntegrationAuth,+ useGetCloudIntegrations,+ useGetOrgIntegrationAuths+} from "@app/hooks/api";+import { IntegrationAuth } from "@app/hooks/api/types";++import { createIntegrationMissingEnvVarsNotification } from "../../IntegrationsListPage/IntegrationsListPage.utils";++export const SelectIntegrationAuthPage = () => {+ const navigate = useNavigate();+ const { data: cloudIntegrations } = useGetCloudIntegrations();+ const { currentOrg } = useOrganization();+ const { currentWorkspace } = useWorkspace();+ const orgId = currentOrg?.id || "";++ const integrationSlug = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.SelectIntegrationAuth.id,+ select: (el) => el.integrationSlug+ });++ const currentIntegration = cloudIntegrations?.find(+ (integration) => integration.slug === integrationSlug+ );+ const { mutateAsync: duplicateIntegrationAuth, isPending: isIntegrationAuthSelectLoading } =+ useDuplicateIntegrationAuth();++ // for Github, we want to reuse the same connection across the Infisical organization+ // when we do need to reuse this page for other integrations, add handling to fetch workspace integration auths instead+ const {+ data: integrationAuths,+ isPending: isLoadingIntegrationAuths,+ isSuccess: isLoadingIntegrationAuthsSuccess+ } = useGetOrgIntegrationAuths(+ orgId,+ useCallback(+ (data: IntegrationAuth[]) => {+ const filteredIntegrationAuths = data.filter(+ (integrationAuth) => integrationAuth.integration === integrationSlug+ );++ if (integrationSlug === "github") {+ const sameProjectIntegrationAuths = filteredIntegrationAuths.filter(+ (auth) => auth.projectId === currentWorkspace?.id+ );+ const differentProjectIntegrationAuths = filteredIntegrationAuths.filter(+ (auth) => auth.projectId !== currentWorkspace?.id+ );++ const installationIds = new Set<string>();++ // for now, we only display the integration auths for Github apps+ return (+ // we concatenate it this way so that integration auths from the same project are prioritized for display+ sameProjectIntegrationAuths+ .concat(differentProjectIntegrationAuths)+ .filter((integrationAuth) => Boolean(integrationAuth.metadata?.installationId))+ // we filter it so that we only show unique installations because the same installation/connection+ // can be used in multiple integration auths+ .filter((integrationAuth) => {+ const isProcessedInstallationId = installationIds.has(+ integrationAuth.metadata.installationId as string+ );++ if (!isProcessedInstallationId) {+ installationIds.add(integrationAuth.metadata.installationId as string);+ }++ return !isProcessedInstallationId;+ })+ );+ }++ return [];+ },+ [integrationSlug]+ )+ );++ const handleNewConnection = () => {+ const state = crypto.randomBytes(16).toString("hex");+ localStorage.setItem("latestCSRFToken", state);++ if (integrationSlug === "github") {+ if (!currentIntegration?.clientSlug) {+ createIntegrationMissingEnvVarsNotification("githubactions", "cicd");+ return;+ }++ // for now we only handle Github apps+ window.location.assign(+ `https://github.com/apps/${currentIntegration?.clientSlug}/installations/new?state=${state}`+ );+ }+ };++ useEffect(() => {+ if (+ !isLoadingIntegrationAuths &&+ integrationAuths?.length === 0 &&+ isLoadingIntegrationAuthsSuccess+ ) {+ handleNewConnection();+ }+ }, [isLoadingIntegrationAuths, integrationAuths, isLoadingIntegrationAuthsSuccess]);++ const logo = integrationSlug === "github" ? "/images/integrations/GitHub.png" : "";++ const handleConnectionSelect = async (integrationAuth: IntegrationAuth) => {+ if (integrationSlug === "github") {+ if (integrationAuth.projectId === currentWorkspace?.id) {+ navigate({+ to: "/secret-manager/$projectId/integrations/github/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } else {+ // we create a copy of the existing integration auth from another project to the current project+ const newIntegrationAuth = await duplicateIntegrationAuth({+ projectId: currentWorkspace?.id || "",+ integrationAuthId: integrationAuth.id+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/github/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: newIntegrationAuth.id+ }+ });+ }+ }+ };++ if (+ isLoadingIntegrationAuths ||+ (integrationAuths?.length === 0 && isLoadingIntegrationAuthsSuccess)+ ) {+ return <ContentLoader />;+ }++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Select Connection</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Select an existing connection below or create a new one for your integration."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img src={logo} height={30} width={30} alt="Integration logo" />+ </div>+ <span className="ml-2.5">Select Connection</span>+ </div>+ </CardTitle>+ <div className="mb-7 flex flex-col items-center">+ {!isLoadingIntegrationAuths && integrationAuths?.length+ ? integrationAuths.map((integrationAuth) => {+ let connectionName = "";++ if (integrationAuth.integration === "github") {+ connectionName = integrationAuth.metadata?.installationName || "";+ }++ return (+ <Button+ colorSchema="secondary"+ className="mt-3 w-3/4"+ isDisabled={isIntegrationAuthSelectLoading}+ key={integrationAuth.id}+ size="sm"+ type="submit"+ onClick={() => handleConnectionSelect(integrationAuth)}+ >+ {connectionName}+ </Button>+ );+ })+ : undefined}+ <div className="mt-6 flex w-full flex-row items-center justify-center">+ <div className="w-1/5 border-t border-mineshaft-400" />+ <p className="mx-4 text-xs text-gray-400">OR</p>+ <div className="w-1/5 border-t border-mineshaft-400" />+ </div>+ <Button+ colorSchema="primary"+ className="mt-6 w-3/4"+ size="sm"+ type="submit"+ onClick={handleNewConnection}+ >+ Create New Connection+ </Button>+ </div>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/route.tsxnew file mode 100644index 0000000000..787e792dba--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { SelectIntegrationAuthPage } from "./SelectIntegrationAuthPage";++const SelectIntegrationAuthPageQueryParamsSchema = z.object({+ integrationSlug: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth"+)({+ component: SelectIntegrationAuthPage,+ validateSearch: zodValidator(SelectIntegrationAuthPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsxnew file mode 100644index 0000000000..69778f5583--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx@@ -0,0 +1,71 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const SupabaseAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "supabase",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/supabase/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Supabase Integration</CardTitle>+ <FormControl+ label="Supabase API Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Supabase+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/SupabaseAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/SupabaseAuthorizePage/route.tsxnew file mode 100644index 0000000000..c790055a4f--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/SupabaseAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { SupabaseAuthorizePage } from "./SupabaseAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize"+)({+ component: SupabaseAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsxnew file mode 100644index 0000000000..3cb604935b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx@@ -0,0 +1,147 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const SupabaseConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();+ const { currentWorkspace } = useWorkspace();+ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.SupabaseConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");+ const [targetApp, setTargetApp] = useState("");++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Supabase Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Supabase Project" className="mt-4">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-environment-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/SupabaseConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/SupabaseConfigurePage/route.tsxnew file mode 100644index 0000000000..d5c8e7bf30--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/SupabaseConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { SupabaseConfigurePage } from "./SupabaseConfigurePage";++const SupabaseConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create"+)({+ component: SupabaseConfigurePage,+ validateSearch: zodValidator(SupabaseConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsxnew file mode 100644index 0000000000..da365b3140--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx@@ -0,0 +1,134 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const TeamcityAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const { currentWorkspace } = useWorkspace();+ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [serverUrl, setServerUrl] = useState("");+ const [serverUrlErrorText, setServerUrlErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ setServerUrlErrorText("");++ if (apiKey.length === 0) {+ setApiKeyErrorText("Access Token cannot be blank");+ return;+ }++ if (serverUrl.length === 0) {+ setServerUrlErrorText("Server URL cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "teamcity",+ accessToken: apiKey,+ url: serverUrl+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/teamcity/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize TeamCity Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/TeamCity.png"+ height={28}+ width={28}+ alt="TeamCity logo"+ />+ </div>+ <span className="ml-2">TeamCity Integration</span>+ <a+ target="_blank"+ href="https://infisical.com/docs/integrations/cloud/teamcity"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl+ label="TeamCity Access Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ className="px-6"+ >+ <Input+ placeholder="Access Token"+ value={apiKey}+ onChange={(e) => setApiKey(e.target.value)}+ />+ </FormControl>+ <FormControl+ label="TeamCity Server URL"+ errorText={serverUrlErrorText}+ isError={serverUrlErrorText !== ""}+ className="px-6"+ >+ <Input+ placeholder="https://example.teamcity.com"+ value={serverUrl}+ onChange={(e) => setServerUrl(e.target.value)}+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isLoading}+ >+ Connect to TeamCity+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/TeamcityAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/TeamcityAuthorizePage/route.tsxnew file mode 100644index 0000000000..f08c78abd7--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TeamcityAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { TeamcityAuthorizePage } from "./TeamcityAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize"+)({+ component: TeamcityAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsxnew file mode 100644index 0000000000..e06d0a6872--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx@@ -0,0 +1,252 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen, faBugs } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById,+ useGetIntegrationAuthTeamCityBuildConfigs+} from "@app/hooks/api/integrationAuth";++export const TeamcityConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();+ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.TeamcityConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetAppId, setTargetAppId] = useState("");+ const [targetBuildConfigId, setTargetBuildConfigId] = useState<string>("");+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ const { data: integrationAuth, isLoading: isIntegrationAuthLoading } = useGetIntegrationAuthById(+ (integrationAuthId as string) ?? ""+ );+ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const { data: targetBuildConfigs } = useGetIntegrationAuthTeamCityBuildConfigs({+ integrationAuthId: (integrationAuthId as string) ?? "",+ appId: targetAppId+ });++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetAppId(integrationAuthApps[0].appId as string);+ } else {+ setTargetAppId("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ const targetEnvironment = targetBuildConfigs?.find(+ (buildConfig) => buildConfig.buildConfigId === targetBuildConfigId+ );++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ )?.name,+ appId: targetAppId,+ sourceEnvironment: selectedSourceEnvironment,+ targetEnvironment: targetEnvironment?.name,+ targetEnvironmentId: targetEnvironment?.buildConfigId,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ const filteredBuildConfigs = targetBuildConfigs?.concat({+ name: "",+ buildConfigId: ""+ });++ return integrationAuth &&+ selectedSourceEnvironment &&+ integrationAuthApps &&+ filteredBuildConfigs &&+ targetAppId ? (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up TeamCity Integration</title>+ </Helmet>+ <Card className="mb-12 max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Choose which environment or folders in Infisical you want to sync to which project in TeamCity."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center pb-0.5">+ <img+ src="/images/integrations/TeamCity.png"+ height={28}+ width={28}+ alt="TeamCity logo"+ />+ </div>+ <span className="ml-2">TeamCity Integration</span>+ <a+ href="https://infisical.com/docs/integrations/cloud/teamcity"+ target="_blank"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl label="Project Environment" className="px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path" className="px-6">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="TeamCity Project" className="px-6">+ <Select+ value={targetAppId}+ onValueChange={(val) => setTargetAppId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.appId as string}+ key={`target-app-${integrationAuthApp.appId as string}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No project found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Team City Build Config (Optional)" className="px-6">+ <Select+ value={targetBuildConfigId}+ onValueChange={(val) => setTargetBuildConfigId(val)}+ className="w-full border border-mineshaft-500"+ >+ {filteredBuildConfigs.map((buildConfig: any) => (+ <SelectItem+ value={buildConfig.buildConfigId}+ key={`target-build-config-${buildConfig.buildConfigId}`}+ >+ {buildConfig.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up TeamCity Integration</title>+ </Helmet>+ {isIntegrationAuthLoading || isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/TeamcityConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/TeamcityConfigurePage/route.tsxnew file mode 100644index 0000000000..119a0ec969--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TeamcityConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { TeamcityConfigurePage } from "./TeamcityConfigurePage";++const TeamcityConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create"+)({+ component: TeamcityConfigurePage,+ validateSearch: zodValidator(TeamcityConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsxnew file mode 100644index 0000000000..40492c3774--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx@@ -0,0 +1,136 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const TerraformCloudAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();+ const { currentWorkspace } = useWorkspace();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [workspacesId, setWorkSpacesId] = useState("");+ const [workspacesIdErrorText, setWorkspacesIdErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ setWorkspacesIdErrorText("");++ if (apiKey.length === 0) {+ setApiKeyErrorText("API Token cannot be blank");+ return;+ }++ if (workspacesId.length === 0) {+ setWorkspacesIdErrorText("Workspace Id cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "terraform-cloud",+ accessId: workspacesId,+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/terraform-cloud/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Authorize Terraform Cloud Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="After adding the details below, you will be prompted to set up an integration for a particular Infisical project and environment."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Terraform.png"+ height={35}+ width={35}+ alt="Terraform logo"+ />+ </div>+ <span className="ml-1.5">Terraform Cloud Integration </span>+ <a+ target="_blank"+ href="https://infisical.com/docs/integrations/cloud/terraform-cloud"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl+ label="Terraform Cloud Workspace ID"+ errorText={workspacesIdErrorText}+ isError={workspacesIdErrorText !== ""}+ className="px-6"+ >+ <Input+ placeholder="Workspace Id"+ value={workspacesId}+ onChange={(e) => setWorkSpacesId(e.target.value)}+ />+ </FormControl>+ <FormControl+ label="Terraform Cloud API Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ className="px-6"+ >+ <Input+ placeholder="API Token"+ value={apiKey}+ type="password"+ autoComplete="new-password"+ onChange={(e) => setApiKey(e.target.value)}+ />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isLoading}+ >+ Connect to Terraform Cloud+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/route.tsxnew file mode 100644index 0000000000..20496be9d5--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { TerraformCloudAuthorizePage } from "./TerraformCloudAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize"+)({+ component: TerraformCloudAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsxnew file mode 100644index 0000000000..97f6bd166f--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx@@ -0,0 +1,247 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";+import { IntegrationSyncBehavior } from "@app/hooks/api/integrations/types";++const initialSyncBehaviors = [+ {+ label: "No Import - Overwrite all values in Terraform Cloud",+ value: IntegrationSyncBehavior.OVERWRITE_TARGET+ },+ {+ label: "Import non-sensitive - Prefer values from Terraform Cloud",+ value: IntegrationSyncBehavior.PREFER_TARGET+ },+ {+ label: "Import non-sensitive - Prefer values from Infisical",+ value: IntegrationSyncBehavior.PREFER_SOURCE+ }+];++const variableTypes = [{ name: "env" }, { name: "terraform" }];++export const TerraformCloudConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.TerraformCloudConfigurePage.id,+ select: (el) => el.integrationAuthId+ });+ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetApp, setTargetApp] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [variableType, setVariableType] = useState(variableTypes[0].name);+ const [variableTypeErrorText, setVariableTypeErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);+ const [initialSyncBehavior, setInitialSyncBehavior] = useState("prefer-source");++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setVariableTypeErrorText("");+ if (variableType.length === 0) {+ setVariableTypeErrorText("Variable Type cannot be blank!");+ return;+ }++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ targetService: variableType,+ secretPath,+ metadata: {+ initialSyncBehavior+ }+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Create Terraform Cloud Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Specify the encironment and path within Infisical that you want to push to which project in Terraform."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img+ src="/images/integrations/Terraform.png"+ height={35}+ width={35}+ alt="Terraform logo"+ />+ </div>+ <span className="ml-1.5">Terraform Cloud Integration </span>+ <a+ target="_blank"+ rel="noopener noreferrer"+ href="https://infisical.com/docs/integrations/cloud/terraform-cloud"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl label="Project Environment" className="px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path" className="px-6">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl+ label="Category"+ className="px-6"+ errorText={variableTypeErrorText}+ isError={variableTypeErrorText !== ""}+ >+ <Select+ value={variableType}+ onValueChange={(val) => setVariableType(val)}+ className="w-full border border-mineshaft-500"+ >+ {variableTypes.map((variable) => (+ <SelectItem value={variable.name} key={`target-app-${variable.name}`}>+ {variable.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Terraform Cloud Project" className="px-6">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-app-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No project found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Initial Sync Behavior" className="px-6">+ <Select+ value={initialSyncBehavior}+ onValueChange={(e) => setInitialSyncBehavior(e)}+ className="w-full border border-mineshaft-600"+ >+ {initialSyncBehaviors.map((b) => {+ return (+ <SelectItem value={b.value} key={`sync-behavior-${b.value}`}>+ {b.label}+ </SelectItem>+ );+ })}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ colorSchema="primary"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2 w-min"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/route.tsxnew file mode 100644index 0000000000..3ebfa5e736--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { TerraformCloudConfigurePage } from "./TerraformCloudConfigurePage";++const TerraformCloudConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create"+)({+ component: TerraformCloudConfigurePage,+ validateSearch: zodValidator(TerraformCloudConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsxnew file mode 100644index 0000000000..01c3c18096--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx@@ -0,0 +1,71 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const TravisCIAuthorizePage = () => {+ const navigate = useNavigate();+ const { currentWorkspace } = useWorkspace();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "travisci",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/travisci/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Travis CI Integration</CardTitle>+ <FormControl+ label="Travis CI API Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Travis CI+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/TravisCIAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/TravisCIAuthorizePage/route.tsxnew file mode 100644index 0000000000..b3c1aedf74--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TravisCIAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { TravisCIAuthorizePage } from "./TravisCIAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize"+)({+ component: TravisCIAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsxnew file mode 100644index 0000000000..b6fff7fef8--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx@@ -0,0 +1,148 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const TravisCIConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.TravisCIConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [targetApp, setTargetApp] = useState("");+ const [secretPath, setSecretPath] = useState("/");+ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Travis CI Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Travis CI Project" className="mt-4">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-environment-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/TravisCIConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/TravisCIConfigurePage/route.tsxnew file mode 100644index 0000000000..c2811d90f1--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/TravisCIConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { TravisCIConfigurePage } from "./TravisCIConfigurePage";++const TravisCIConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create"+)({+ component: TravisCIConfigurePage,+ validateSearch: zodValidator(TravisCIConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsxnew file mode 100644index 0000000000..a8bc942f39--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx@@ -0,0 +1,318 @@+import { useEffect, useState } from "react";+import { Helmet } from "react-helmet";+import {+ faArrowUpRightFromSquare,+ faBookOpen,+ faBugs,+ faCircleInfo+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById,+ useGetIntegrationAuthVercelBranches+} from "@app/hooks/api/integrationAuth";+import { IntegrationSyncBehavior } from "@app/hooks/api/integrations/types";++const vercelEnvironments = [+ { name: "Development", slug: "development" },+ { name: "Preview", slug: "preview" },+ { name: "Production", slug: "production" }+];++const initialSyncBehaviors = [+ {+ label: "No Import - Overwrite all values in Vercel",+ value: IntegrationSyncBehavior.OVERWRITE_TARGET+ },+ {+ label: "Import - Prefer values from Infisical",+ value: IntegrationSyncBehavior.PREFER_SOURCE+ }+];++export const VercelConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();+ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");+ const [initialSyncBehavior, setInitialSyncBehavior] = useState<IntegrationSyncBehavior>(+ IntegrationSyncBehavior.PREFER_SOURCE+ );+ const [targetAppId, setTargetAppId] = useState("");+ const [targetEnvironment, setTargetEnvironment] = useState("");+ const [targetBranch, setTargetBranch] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.VercelConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps, isLoading: isIntegrationAuthAppsLoading } =+ useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? "",+ teamId: integrationAuth?.teamId as string+ });++ const { data: branches } = useGetIntegrationAuthVercelBranches({+ integrationAuthId: integrationAuthId as string,+ appId: targetAppId+ });++ const filteredBranches = branches?.filter((branchName) => branchName !== "main").concat();++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetAppId(integrationAuthApps[0].appId as string);+ setTargetEnvironment(vercelEnvironments[0].slug);+ } else {+ setTargetAppId("none");+ setTargetEnvironment(vercelEnvironments[0].slug);+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ const targetApp = integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.appId === targetAppId+ );++ if (!targetApp || !targetApp.appId) return;++ const path =+ targetEnvironment === "preview" && targetBranch !== "" ? targetBranch : undefined;++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp.name,+ appId: targetApp.appId,+ sourceEnvironment: selectedSourceEnvironment,+ targetEnvironment,+ path,+ secretPath,+ metadata: {+ initialSyncBehavior+ }+ });++ setIsLoading(false);+ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth &&+ selectedSourceEnvironment &&+ integrationAuthApps &&+ targetAppId &&+ targetEnvironment ? (+ <div className="flex h-full w-full flex-col items-center justify-center">+ <Helmet>+ <title>Set Up Vercel Integration</title>+ </Helmet>+ <Card className="max-w-lg rounded-md border border-mineshaft-600 p-0">+ <CardTitle+ className="px-6 text-left text-xl"+ subTitle="Select which environment or folder in Infisical you want to sync to Vercel's environment variables."+ >+ <div className="flex flex-row items-center">+ <div className="flex items-center">+ <img src="/images/integrations/Vercel.png" height={30} width={30} alt="Vercel logo" />+ </div>+ <span className="ml-2">Vercel Integration </span>+ <a+ target="_blank"+ href="https://infisical.com/docs/integrations/cloud/vercel"+ rel="noopener noreferrer"+ >+ <div className="mb-1 ml-2 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">+ <FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />+ Docs+ <FontAwesomeIcon+ icon={faArrowUpRightFromSquare}+ className="mb-[0.07rem] ml-1.5 text-xxs"+ />+ </div>+ </a>+ </div>+ </CardTitle>+ <FormControl label="Infisical Project Environment" className="px-6">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`azure-key-vault-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path" className="px-6">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Vercel App" className="px-6">+ <Select+ value={targetAppId}+ onValueChange={(val) => setTargetAppId(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.appId as string}+ key={`target-app-${integrationAuthApp.appId as string}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <FormControl label="Vercel App Environment" className="px-6">+ <Select+ value={targetEnvironment}+ onValueChange={(val) => setTargetEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {vercelEnvironments.map((vercelEnvironment) => (+ <SelectItem+ value={vercelEnvironment.slug}+ key={`target-environment-${vercelEnvironment.slug}`}+ >+ {vercelEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ {targetEnvironment === "preview" && filteredBranches && (+ <FormControl label="Vercel Preview Branch (Optional)" className="px-6">+ <Select+ value={targetBranch}+ onValueChange={(val) => setTargetBranch(val)}+ className="w-full border border-mineshaft-500"+ >+ {filteredBranches.map((branchName) => (+ <SelectItem value={branchName} key={`target-branch-${branchName}`}>+ {branchName}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ )}++ <FormControl label="Initial Sync Behavior" className="px-6">+ <Select+ value={initialSyncBehavior}+ onValueChange={(val) => setInitialSyncBehavior(val as IntegrationSyncBehavior)}+ className="w-full border border-mineshaft-500 text-sm"+ >+ {initialSyncBehaviors.map((syncBehavior) => (+ <SelectItem value={syncBehavior.value} key={`sync-behavior-${syncBehavior.value}`}>+ {syncBehavior.label}+ </SelectItem>+ ))}+ </Select>+ </FormControl>++ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ variant="outline_bg"+ className="mb-6 ml-auto mr-6 mt-2"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ <div className="mt-6 w-full max-w-md border-t border-mineshaft-800" />+ <div className="mt-6 flex w-full max-w-lg flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-4">+ <div className="flex flex-row items-center">+ <FontAwesomeIcon icon={faCircleInfo} className="text-xl text-mineshaft-200" />{" "}+ <span className="text-md ml-3 text-mineshaft-100">Pro Tip</span>+ </div>+ <span className="mt-4 text-sm text-mineshaft-300">+ After creating an integration, your secrets will start syncing immediately. This might+ cause an unexpected override of current secrets in Vercel with secrets from Infisical.+ </span>+ </div>+ </div>+ ) : (+ <div className="flex h-full w-full items-center justify-center">+ <Helmet>+ <title>Set Up Vercel Integration</title>+ </Helmet>+ {isIntegrationAuthAppsLoading ? (+ <img+ src="/images/loading/loading.gif"+ height={70}+ width={120}+ alt="infisical loading indicator"+ />+ ) : (+ <div className="flex h-max max-w-md flex-col rounded-md border border-mineshaft-600 bg-mineshaft-800 p-6 text-center text-mineshaft-200">+ <FontAwesomeIcon icon={faBugs} className="inlineli my-2 text-6xl" />+ <p>+ Something went wrong. Please contact{" "}+ <a+ className="inline cursor-pointer text-mineshaft-100 underline decoration-primary-500 underline-offset-4 opacity-80 duration-200 hover:opacity-100"+ target="_blank"+ rel="noopener noreferrer"+ href="mailto:[email protected]"+ >+ </a>{" "}+ if the issue persists.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/VercelConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/VercelConfigurePage/route.tsxnew file mode 100644index 0000000000..2fea86bc8b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/VercelConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { VercelConfigurePage } from "./VercelConfigurePage";++const VercelConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create"+)({+ component: VercelConfigurePage,+ validateSearch: zodValidator(VercelConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx b/frontend-v2/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsxnew file mode 100644index 0000000000..17922a139e--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx@@ -0,0 +1,46 @@+import { useEffect } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useAuthorizeIntegration } from "@app/hooks/api";++export const VercelOauthCallbackPage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useAuthorizeIntegration();++ const { code, state } = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.VercelOauthCallbackPage.id+ });+ const { currentWorkspace } = useWorkspace();++ useEffect(() => {+ (async () => {+ try {+ // validate state+ if (state !== localStorage.getItem("latestCSRFToken")) return;+ localStorage.removeItem("latestCSRFToken");++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ code: code as string,+ integration: "vercel"+ });++ navigate({+ to: "/secret-manager/$projectId/integrations/vercel/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ })();+ }, []);++ return <div />;+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/VercelOauthCallbackPage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/VercelOauthCallbackPage/route.tsxnew file mode 100644index 0000000000..bfe836cc6a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/VercelOauthCallbackPage/route.tsx@@ -0,0 +1,17 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { VercelOauthCallbackPage } from "./VercelOauthCallbackPage";++export const VercelOAuthCallbackPageQueryParamsSchema = z.object({+ state: z.string().catch(""),+ code: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback"+)({+ component: VercelOauthCallbackPage,+ validateSearch: zodValidator(VercelOAuthCallbackPageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsxnew file mode 100644index 0000000000..0071da9aad--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx@@ -0,0 +1,71 @@+import { useState } from "react";+import { useNavigate } from "@tanstack/react-router";++import { Button, Card, CardTitle, FormControl, Input } from "@app/components/v2";+import { useWorkspace } from "@app/context";+import { useSaveIntegrationAccessToken } from "@app/hooks/api";++export const WindmillAuthorizePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useSaveIntegrationAccessToken();++ const { currentWorkspace } = useWorkspace();+ const [apiKey, setApiKey] = useState("");+ const [apiKeyErrorText, setApiKeyErrorText] = useState("");+ const [isLoading, setIsLoading] = useState(false);++ const handleButtonClick = async () => {+ try {+ setApiKeyErrorText("");+ if (apiKey.length === 0) {+ setApiKeyErrorText("API Key cannot be blank");+ return;+ }++ setIsLoading(true);++ const integrationAuth = await mutateAsync({+ workspaceId: currentWorkspace.id,+ integration: "windmill",+ accessToken: apiKey+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations/windmill/create",+ params: {+ projectId: currentWorkspace.id+ },+ search: {+ integrationAuthId: integrationAuth.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Windmill Integration</CardTitle>+ <FormControl+ label="Windmill Access Token"+ errorText={apiKeyErrorText}+ isError={apiKeyErrorText !== ""}+ >+ <Input placeholder="" value={apiKey} onChange={(e) => setApiKey(e.target.value)} />+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ >+ Connect to Windmill+ </Button>+ </Card>+ </div>+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/WindmillAuthorizePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/WindmillAuthorizePage/route.tsxnew file mode 100644index 0000000000..e59a8e764a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/WindmillAuthorizePage/route.tsx@@ -0,0 +1,9 @@+import { createFileRoute } from "@tanstack/react-router";++import { WindmillAuthorizePage } from "./WindmillAuthorizePage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize"+)({+ component: WindmillAuthorizePage+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx b/frontend-v2/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsxnew file mode 100644index 0000000000..1d8094059b--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx@@ -0,0 +1,149 @@+import { useEffect, useState } from "react";+import { useNavigate, useSearch } from "@tanstack/react-router";++import {+ Button,+ Card,+ CardTitle,+ FormControl,+ Input,+ Select,+ SelectItem+} from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { useWorkspace } from "@app/context";+import { useCreateIntegration } from "@app/hooks/api";+import {+ useGetIntegrationAuthApps,+ useGetIntegrationAuthById+} from "@app/hooks/api/integrationAuth";++export const WindmillConfigurePage = () => {+ const navigate = useNavigate();+ const { mutateAsync } = useCreateIntegration();++ const { currentWorkspace } = useWorkspace();++ const integrationAuthId = useSearch({+ from: ROUTE_PATHS.SecretManager.Integratons.WindmillConfigurePage.id,+ select: (el) => el.integrationAuthId+ });++ const { data: integrationAuth } = useGetIntegrationAuthById((integrationAuthId as string) ?? "");+ const { data: integrationAuthApps } = useGetIntegrationAuthApps({+ integrationAuthId: (integrationAuthId as string) ?? ""+ });++ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState(+ currentWorkspace.environments[0].slug+ );+ const [secretPath, setSecretPath] = useState("/");+ const [targetApp, setTargetApp] = useState("");++ const [isLoading, setIsLoading] = useState(false);++ useEffect(() => {+ if (integrationAuthApps) {+ if (integrationAuthApps.length > 0) {+ setTargetApp(integrationAuthApps[0].name);+ } else {+ setTargetApp("none");+ }+ }+ }, [integrationAuthApps]);++ const handleButtonClick = async () => {+ try {+ if (!integrationAuth?.id) return;++ setIsLoading(true);++ await mutateAsync({+ integrationAuthId: integrationAuth?.id,+ isActive: true,+ app: targetApp,+ appId: integrationAuthApps?.find(+ (integrationAuthApp) => integrationAuthApp.name === targetApp+ )?.appId,+ sourceEnvironment: selectedSourceEnvironment,+ secretPath+ });++ setIsLoading(false);++ navigate({+ to: "/secret-manager/$projectId/integrations",+ params: {+ projectId: currentWorkspace.id+ }+ });+ } catch (err) {+ console.error(err);+ }+ };++ return integrationAuth && selectedSourceEnvironment && integrationAuthApps && targetApp ? (+ <div className="flex h-full w-full items-center justify-center">+ <Card className="max-w-md rounded-md p-8">+ <CardTitle className="text-center">Windmill Integration</CardTitle>+ <FormControl label="Project Environment" className="mt-4">+ <Select+ value={selectedSourceEnvironment}+ onValueChange={(val) => setSelectedSourceEnvironment(val)}+ className="w-full border border-mineshaft-500"+ >+ {currentWorkspace?.environments.map((sourceEnvironment) => (+ <SelectItem+ value={sourceEnvironment.slug}+ key={`source-environment-${sourceEnvironment.slug}`}+ >+ {sourceEnvironment.name}+ </SelectItem>+ ))}+ </Select>+ </FormControl>+ <FormControl label="Secrets Path">+ <Input+ value={secretPath}+ onChange={(evt) => setSecretPath(evt.target.value)}+ placeholder="Provide a path, default is /"+ />+ </FormControl>+ <FormControl label="Windmill Workspace" className="mt-4">+ <Select+ value={targetApp}+ onValueChange={(val) => setTargetApp(val)}+ className="w-full border border-mineshaft-500"+ isDisabled={integrationAuthApps.length === 0}+ >+ {integrationAuthApps.length > 0 ? (+ integrationAuthApps.map((integrationAuthApp) => (+ <SelectItem+ value={integrationAuthApp.name}+ key={`target-environment-${integrationAuthApp.name}`}+ >+ {integrationAuthApp.name}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="none" key="target-app-none">+ No projects found+ </SelectItem>+ )}+ </Select>+ </FormControl>+ <Button+ onClick={handleButtonClick}+ color="mineshaft"+ className="mt-4"+ isLoading={isLoading}+ isDisabled={integrationAuthApps.length === 0}+ >+ Create Integration+ </Button>+ </Card>+ </div>+ ) : (+ <div />+ );+};diff --git a/frontend-v2/src/pages/secret-manager/integrations/WindmillConfigurePage/route.tsx b/frontend-v2/src/pages/secret-manager/integrations/WindmillConfigurePage/route.tsxnew file mode 100644index 0000000000..dcc0d8146e--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/WindmillConfigurePage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { WindmillConfigurePage } from "./WindmillConfigurePage";++const WindmillConfigurePageQueryParamsSchema = z.object({+ integrationAuthId: z.string()+});++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create"+)({+ component: WindmillConfigurePage,+ validateSearch: zodValidator(WindmillConfigurePageQueryParamsSchema)+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsxnew file mode 100644index 0000000000..32662b7434--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { AzureAppConfigurationOauthCallbackPageQueryParamsSchema } from "./AzureAppConfigurationOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/azure-app-configuration/oauth2/callback"+)({+ validateSearch: zodValidator(AzureAppConfigurationOauthCallbackPageQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsxnew file mode 100644index 0000000000..57145b9de3--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { AzureKeyVaultOauthCallbackQueryParamsSchema } from "./AzureKeyVaultOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/azure-key-vault/oauth2/callback"+)({+ validateSearch: zodValidator(AzureKeyVaultOauthCallbackQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-bitbucket-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-bitbucket-oauth-redirect.tsxnew file mode 100644index 0000000000..20982e4555--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-bitbucket-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { BitbucketOauthCallbackQueryParamsSchema } from "./BitbucketOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/bitbucket/oauth2/callback"+)({+ validateSearch: zodValidator(BitbucketOauthCallbackQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/bitbucket/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-gcp-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-gcp-oauth-redirect.tsxnew file mode 100644index 0000000000..566bd1c889--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-gcp-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { GcpSecretManagerOAuthCallbackPageQueryParamsSchema } from "./GcpSecretManagerOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/gcp-secret-manager/oauth2/callback"+)({+ validateSearch: zodValidator(GcpSecretManagerOAuthCallbackPageQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-github-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-github-oauth-redirect.tsxnew file mode 100644index 0000000000..2d62563621--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-github-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { GithubOAuthCallbackPageQueryParamsSchema } from "./GithubOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/github/oauth2/callback"+)({+ validateSearch: zodValidator(GithubOAuthCallbackPageQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/github/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-gitlab-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-gitlab-oauth-redirect.tsxnew file mode 100644index 0000000000..09e507f053--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-gitlab-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { GitlabOAuthCallbackPageQueryParamsSchema } from "./GitlabOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/gitlab/oauth2/callback"+)({+ validateSearch: zodValidator(GitlabOAuthCallbackPageQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/gitlab/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-heroku-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-heroku-oauth-redirect.tsxnew file mode 100644index 0000000000..39dec58b24--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-heroku-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { HerokuOAuthCallbackPageQueryParamsSchema } from "./HerokuOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/heroku/oauth2/callback"+)({+ validateSearch: zodValidator(HerokuOAuthCallbackPageQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/heroku/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-netlify-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-netlify-oauth-redirect.tsxnew file mode 100644index 0000000000..069d78c63a--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-netlify-oauth-redirect.tsx@@ -0,0 +1,29 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { NetlifyOAuthCallbackPageQueryParamsSchema } from "./NetlifyOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/netlify/oauth2/callback"+)({+ validateSearch: zodValidator(NetlifyOAuthCallbackPageQueryParamsSchema),+ beforeLoad: ({ search }) => {+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/netlify/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/pages/secret-manager/integrations/route-vercel-oauth-redirect.tsx b/frontend-v2/src/pages/secret-manager/integrations/route-vercel-oauth-redirect.tsxnew file mode 100644index 0000000000..6634cdaa98--- /dev/null+++ b/frontend-v2/src/pages/secret-manager/integrations/route-vercel-oauth-redirect.tsx@@ -0,0 +1,30 @@+import { createFileRoute, redirect } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";++import { createNotification } from "@app/components/notifications";+import { localStorageService } from "@app/helpers/localStorage";++import { VercelOAuthCallbackPageQueryParamsSchema } from "./VercelOauthCallbackPage/route";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/integrations/vercel/oauth2/callback"+)({+ validateSearch: zodValidator(VercelOAuthCallbackPageQueryParamsSchema),+ beforeLoad: ({ search }) => {+ console.log("reached");+ const projectId = localStorageService.getIintegrationProjectId();+ if (!projectId) {+ createNotification({+ type: "error",+ title: "Missing project id",+ text: "Please retry integration"+ });+ throw redirect({ to: "/organization/secret-manager/overview" });+ }+ throw redirect({+ to: "/secret-manager/$projectId/integrations/vercel/oauth2/callback",+ params: { projectId },+ search+ });+ }+});diff --git a/frontend-v2/src/routeTree.gen.ts b/frontend-v2/src/routeTree.gen.tsindex 8086da1847..d866ce02a0 100644--- a/frontend-v2/src/routeTree.gen.ts+++ b/frontend-v2/src/routeTree.gen.ts@@ -54,6 +54,15 @@ import { Route as organizationAccessManagementPageRouteImport } from './pages/orimport { Route as projectAccessControlPageRouteSshImport } from './pages/project/AccessControlPage/route-ssh'import { Route as projectAccessControlPageRouteSecretManagerImport } from './pages/project/AccessControlPage/route-secret-manager'import { Route as projectAccessControlPageRouteKmsImport } from './pages/project/AccessControlPage/route-kms'+import { Route as secretManagerIntegrationsRouteVercelOauthRedirectImport } from './pages/secret-manager/integrations/route-vercel-oauth-redirect'+import { Route as secretManagerIntegrationsRouteNetlifyOauthRedirectImport } from './pages/secret-manager/integrations/route-netlify-oauth-redirect'+import { Route as secretManagerIntegrationsRouteHerokuOauthRedirectImport } from './pages/secret-manager/integrations/route-heroku-oauth-redirect'+import { Route as secretManagerIntegrationsRouteGitlabOauthRedirectImport } from './pages/secret-manager/integrations/route-gitlab-oauth-redirect'+import { Route as secretManagerIntegrationsRouteGithubOauthRedirectImport } from './pages/secret-manager/integrations/route-github-oauth-redirect'+import { Route as secretManagerIntegrationsRouteGcpOauthRedirectImport } from './pages/secret-manager/integrations/route-gcp-oauth-redirect'+import { Route as secretManagerIntegrationsRouteBitbucketOauthRedirectImport } from './pages/secret-manager/integrations/route-bitbucket-oauth-redirect'+import { Route as secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectImport } from './pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect'+import { Route as secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectImport } from './pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect'import { Route as projectAccessControlPageRouteCertManagerImport } from './pages/project/AccessControlPage/route-cert-manager'import { Route as sshSettingsPageRouteImport } from './pages/ssh/SettingsPage/route'import { Route as sshOverviewPageRouteImport } from './pages/ssh/OverviewPage/route'@@ -89,10 +98,84 @@ import { Route as projectMemberDetailsByIDPageRouteCertManagerImport } from './pimport { Route as projectIdentityDetailsByIDPageRouteCertManagerImport } from './pages/project/IdentityDetailsByIDPage/route-cert-manager'import { Route as sshSshCaByIDPageRouteImport } from './pages/ssh/SshCaByIDPage/route'import { Route as secretManagerSecretDashboardPageRouteImport } from './pages/secret-manager/SecretDashboardPage/route'+import { Route as secretManagerIntegrationsSelectIntegrationAuthPageRouteImport } from './pages/secret-manager/integrations/SelectIntegrationAuthPage/route'import { Route as secretManagerIntegrationsDetailsByIDPageRouteImport } from './pages/secret-manager/IntegrationsDetailsByIDPage/route'import { Route as certManagerCertAuthDetailsByIDPageRouteImport } from './pages/cert-manager/CertAuthDetailsByIDPage/route'import { Route as secretManagerIntegrationsListPageRouteImport } from './pages/secret-manager/IntegrationsListPage/route'+import { Route as secretManagerIntegrationsWindmillConfigurePageRouteImport } from './pages/secret-manager/integrations/WindmillConfigurePage/route'+import { Route as secretManagerIntegrationsWindmillAuthorizePageRouteImport } from './pages/secret-manager/integrations/WindmillAuthorizePage/route'+import { Route as secretManagerIntegrationsVercelConfigurePageRouteImport } from './pages/secret-manager/integrations/VercelConfigurePage/route'+import { Route as secretManagerIntegrationsTravisCIConfigurePageRouteImport } from './pages/secret-manager/integrations/TravisCIConfigurePage/route'+import { Route as secretManagerIntegrationsTravisCIAuthorizePageRouteImport } from './pages/secret-manager/integrations/TravisCIAuthorizePage/route'+import { Route as secretManagerIntegrationsTerraformCloudConfigurePageRouteImport } from './pages/secret-manager/integrations/TerraformCloudConfigurePage/route'+import { Route as secretManagerIntegrationsTerraformCloudAuthorizePageRouteImport } from './pages/secret-manager/integrations/TerraformCloudAuthorizePage/route'+import { Route as secretManagerIntegrationsTeamcityConfigurePageRouteImport } from './pages/secret-manager/integrations/TeamcityConfigurePage/route'+import { Route as secretManagerIntegrationsTeamcityAuthorizePageRouteImport } from './pages/secret-manager/integrations/TeamcityAuthorizePage/route'+import { Route as secretManagerIntegrationsSupabaseConfigurePageRouteImport } from './pages/secret-manager/integrations/SupabaseConfigurePage/route'+import { Route as secretManagerIntegrationsSupabaseAuthorizePageRouteImport } from './pages/secret-manager/integrations/SupabaseAuthorizePage/route'+import { Route as secretManagerIntegrationsRundeckConfigurePageRouteImport } from './pages/secret-manager/integrations/RundeckConfigurePage/route'+import { Route as secretManagerIntegrationsRundeckAuthorizePageRouteImport } from './pages/secret-manager/integrations/RundeckAuthorizePage/route'+import { Route as secretManagerIntegrationsRenderConfigurePageRouteImport } from './pages/secret-manager/integrations/RenderConfigurePage/route'+import { Route as secretManagerIntegrationsRenderAuthorizePageRouteImport } from './pages/secret-manager/integrations/RenderAuthorizePage/route'+import { Route as secretManagerIntegrationsRailwayConfigurePageRouteImport } from './pages/secret-manager/integrations/RailwayConfigurePage/route'+import { Route as secretManagerIntegrationsRailwayAuthorizePageRouteImport } from './pages/secret-manager/integrations/RailwayAuthorizePage/route'+import { Route as secretManagerIntegrationsQoveryConfigurePageRouteImport } from './pages/secret-manager/integrations/QoveryConfigurePage/route'+import { Route as secretManagerIntegrationsQoveryAuthorizePageRouteImport } from './pages/secret-manager/integrations/QoveryAuthorizePage/route'+import { Route as secretManagerIntegrationsOctopusDeployConfigurePageRouteImport } from './pages/secret-manager/integrations/OctopusDeployConfigurePage/route'+import { Route as secretManagerIntegrationsOctopusDeployAuthorizePageRouteImport } from './pages/secret-manager/integrations/OctopusDeployAuthorizePage/route'+import { Route as secretManagerIntegrationsNorthflankConfigurePageRouteImport } from './pages/secret-manager/integrations/NorthflankConfigurePage/route'+import { Route as secretManagerIntegrationsNorthflankAuthorizePageRouteImport } from './pages/secret-manager/integrations/NorthflankAuthorizePage/route'+import { Route as secretManagerIntegrationsNetlifyConfigurePageRouteImport } from './pages/secret-manager/integrations/NetlifyConfigurePage/route'+import { Route as secretManagerIntegrationsLaravelForgeConfigurePageRouteImport } from './pages/secret-manager/integrations/LaravelForgeConfigurePage/route'+import { Route as secretManagerIntegrationsLaravelForgeAuthorizePageRouteImport } from './pages/secret-manager/integrations/LaravelForgeAuthorizePage/route'+import { Route as secretManagerIntegrationsHerokuConfigurePageRouteImport } from './pages/secret-manager/integrations/HerokuConfigurePage/route'+import { Route as secretManagerIntegrationsHasuraCloudConfigurePageRouteImport } from './pages/secret-manager/integrations/HasuraCloudConfigurePage/route'+import { Route as secretManagerIntegrationsHasuraCloudAuthorizePageRouteImport } from './pages/secret-manager/integrations/HasuraCloudAuthorizePage/route'+import { Route as secretManagerIntegrationsHashicorpVaultConfigurePageRouteImport } from './pages/secret-manager/integrations/HashicorpVaultConfigurePage/route'+import { Route as secretManagerIntegrationsHashicorpVaultAuthorizePageRouteImport } from './pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route'+import { Route as secretManagerIntegrationsGitlabConfigurePageRouteImport } from './pages/secret-manager/integrations/GitlabConfigurePage/route'+import { Route as secretManagerIntegrationsGitlabAuthorizePageRouteImport } from './pages/secret-manager/integrations/GitlabAuthorizePage/route'+import { Route as secretManagerIntegrationsGithubConfigurePageRouteImport } from './pages/secret-manager/integrations/GithubConfigurePage/route'+import { Route as secretManagerIntegrationsGithubAuthorizePageRouteImport } from './pages/secret-manager/integrations/GithubAuthorizePage/route'+import { Route as secretManagerIntegrationsGcpSecretManagerConfigurePageRouteImport } from './pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route'+import { Route as secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteImport } from './pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route'+import { Route as secretManagerIntegrationsFlyioConfigurePageRouteImport } from './pages/secret-manager/integrations/FlyioConfigurePage/route'+import { Route as secretManagerIntegrationsFlyioAuthorizePageRouteImport } from './pages/secret-manager/integrations/FlyioAuthorizePage/route'+import { Route as secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteImport } from './pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route'+import { Route as secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteImport } from './pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route'+import { Route as secretManagerIntegrationsDatabricksConfigurePageRouteImport } from './pages/secret-manager/integrations/DatabricksConfigurePage/route'+import { Route as secretManagerIntegrationsDatabricksAuthorizePageRouteImport } from './pages/secret-manager/integrations/DatabricksAuthorizePage/route'+import { Route as secretManagerIntegrationsCodefreshConfigurePageRouteImport } from './pages/secret-manager/integrations/CodefreshConfigurePage/route'+import { Route as secretManagerIntegrationsCodefreshAuthorizePageRouteImport } from './pages/secret-manager/integrations/CodefreshAuthorizePage/route'+import { Route as secretManagerIntegrationsCloudflareWorkersConfigurePageRouteImport } from './pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route'+import { Route as secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteImport } from './pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route'+import { Route as secretManagerIntegrationsCloudflarePagesConfigurePageRouteImport } from './pages/secret-manager/integrations/CloudflarePagesConfigurePage/route'+import { Route as secretManagerIntegrationsCloudflarePagesAuthorizePageRouteImport } from './pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route'+import { Route as secretManagerIntegrationsCloud66ConfigurePageRouteImport } from './pages/secret-manager/integrations/Cloud66ConfigurePage/route'+import { Route as secretManagerIntegrationsCloud66AuthorizePageRouteImport } from './pages/secret-manager/integrations/Cloud66AuthorizePage/route'+import { Route as secretManagerIntegrationsCircleCIConfigurePageRouteImport } from './pages/secret-manager/integrations/CircleCIConfigurePage/route'+import { Route as secretManagerIntegrationsCircleCIAuthorizePageRouteImport } from './pages/secret-manager/integrations/CircleCIAuthorizePage/route'+import { Route as secretManagerIntegrationsChecklyConfigurePageRouteImport } from './pages/secret-manager/integrations/ChecklyConfigurePage/route'+import { Route as secretManagerIntegrationsChecklyAuthorizePageRouteImport } from './pages/secret-manager/integrations/ChecklyAuthorizePage/route'+import { Route as secretManagerIntegrationsBitbucketConfigurePageRouteImport } from './pages/secret-manager/integrations/BitbucketConfigurePage/route'+import { Route as secretManagerIntegrationsAzureKeyVaultConfigurePageRouteImport } from './pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route'+import { Route as secretManagerIntegrationsAzureDevopsConfigurePageRouteImport } from './pages/secret-manager/integrations/AzureDevopsConfigurePage/route'+import { Route as secretManagerIntegrationsAzureDevopsAuthorizePageRouteImport } from './pages/secret-manager/integrations/AzureDevopsAuthorizePage/route'+import { Route as secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteImport } from './pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route'+import { Route as secretManagerIntegrationsAwsSecretManagerConfigurePageRouteImport } from './pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route'+import { Route as secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route'+import { Route as secretManagerIntegrationsAwsParameterStoreConfigurePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route'+import { Route as secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route'import { Route as organizationAppConnectionsGithubOauthCallbackPageRouteImport } from './pages/organization/AppConnections/GithubOauthCallbackPage/route'+import { Route as secretManagerIntegrationsVercelOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/VercelOauthCallbackPage/route'+import { Route as secretManagerIntegrationsNetlifyOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/NetlifyOauthCallbackPage/route'+import { Route as secretManagerIntegrationsHerokuOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/HerokuOauthCallbackPage/route'+import { Route as secretManagerIntegrationsGitlabOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/GitlabOauthCallbackPage/route'+import { Route as secretManagerIntegrationsGithubOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/GithubOauthCallbackPage/route'+import { Route as secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route'+import { Route as secretManagerIntegrationsBitbucketOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/BitbucketOauthCallbackPage/route'+import { Route as secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route'+import { Route as secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route'// Create Virtual Routes@@ -109,6 +192,9 @@ const AuthenticateAdminImport = createFileRoute('/_authenticate/admin')()const AuthenticateInjectOrgDetailsOrganizationImport = createFileRoute('/_authenticate/_inject-org-details/organization',)()+const AuthenticateInjectOrgDetailsIntegrationsImport = createFileRoute(+ '/_authenticate/_inject-org-details/integrations',+)()const AuthenticateInjectOrgDetailsSshProjectIdImport = createFileRoute('/_authenticate/_inject-org-details/ssh/$projectId',)()@@ -242,6 +328,13 @@ const AuthenticateInjectOrgDetailsOrganizationRoute =getParentRoute: () => middlewaresInjectOrgDetailsRoute,} as any)+const AuthenticateInjectOrgDetailsIntegrationsRoute =+ AuthenticateInjectOrgDetailsIntegrationsImport.update({+ id: '/integrations',+ path: '/integrations',+ getParentRoute: () => middlewaresInjectOrgDetailsRoute,+ } as any)+const publicViewSharedSecretByIDPageRouteRoute =publicViewSharedSecretByIDPageRouteImport.update({id: '/shared/secret/$secretId',@@ -460,6 +553,71 @@ const projectAccessControlPageRouteKmsRoute =getParentRoute: () => kmsLayoutRoute,} as any)+const secretManagerIntegrationsRouteVercelOauthRedirectRoute =+ secretManagerIntegrationsRouteVercelOauthRedirectImport.update({+ id: '/vercel/oauth2/callback',+ path: '/vercel/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteNetlifyOauthRedirectRoute =+ secretManagerIntegrationsRouteNetlifyOauthRedirectImport.update({+ id: '/netlify/oauth2/callback',+ path: '/netlify/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteHerokuOauthRedirectRoute =+ secretManagerIntegrationsRouteHerokuOauthRedirectImport.update({+ id: '/heroku/oauth2/callback',+ path: '/heroku/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteGitlabOauthRedirectRoute =+ secretManagerIntegrationsRouteGitlabOauthRedirectImport.update({+ id: '/gitlab/oauth2/callback',+ path: '/gitlab/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteGithubOauthRedirectRoute =+ secretManagerIntegrationsRouteGithubOauthRedirectImport.update({+ id: '/github/oauth2/callback',+ path: '/github/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteGcpOauthRedirectRoute =+ secretManagerIntegrationsRouteGcpOauthRedirectImport.update({+ id: '/gcp-secret-manager/oauth2/callback',+ path: '/gcp-secret-manager/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteBitbucketOauthRedirectRoute =+ secretManagerIntegrationsRouteBitbucketOauthRedirectImport.update({+ id: '/bitbucket/oauth2/callback',+ path: '/bitbucket/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute =+ secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectImport.update({+ id: '/azure-key-vault/oauth2/callback',+ path: '/azure-key-vault/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute =+ secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectImport.update(+ {+ id: '/azure-app-configuration/oauth2/callback',+ path: '/azure-app-configuration/oauth2/callback',+ getParentRoute: () => AuthenticateInjectOrgDetailsIntegrationsRoute,+ } as any,+ )+const projectAccessControlPageRouteCertManagerRoute =projectAccessControlPageRouteCertManagerImport.update({id: '/access-management',@@ -700,6 +858,14 @@ const secretManagerSecretDashboardPageRouteRoute =getParentRoute: () => secretManagerLayoutRoute,} as any)+const secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute =+ secretManagerIntegrationsSelectIntegrationAuthPageRouteImport.update({+ id: '/select-integration-auth',+ path: '/select-integration-auth',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)+const secretManagerIntegrationsDetailsByIDPageRouteRoute =secretManagerIntegrationsDetailsByIDPageRouteImport.update({id: '/$integrationId',@@ -723,232 +889,831 @@ const secretManagerIntegrationsListPageRouteRoute =AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,} as any)-const organizationAppConnectionsGithubOauthCallbackPageRouteRoute =- organizationAppConnectionsGithubOauthCallbackPageRouteImport.update({- id: '/app-connections/github/oauth/callback',- path: '/app-connections/github/oauth/callback',- getParentRoute: () => organizationLayoutRoute,+const secretManagerIntegrationsWindmillConfigurePageRouteRoute =+ secretManagerIntegrationsWindmillConfigurePageRouteImport.update({+ id: '/windmill/create',+ path: '/windmill/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,} as any)-// Populate the FileRoutesByPath interface+const secretManagerIntegrationsWindmillAuthorizePageRouteRoute =+ secretManagerIntegrationsWindmillAuthorizePageRouteImport.update({+ id: '/windmill/authorize',+ path: '/windmill/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)-declare module '@tanstack/react-router' {- interface FileRoutesByPath {- '/': {- id: '/'- path: '/'- fullPath: '/'- preLoaderRoute: typeof indexImport- parentRoute: typeof rootRoute- }- '/share-secret': {- id: '/share-secret'- path: '/share-secret'- fullPath: '/share-secret'- preLoaderRoute: typeof publicShareSecretPageRouteImport- parentRoute: typeof rootRoute- }- '/_authenticate': {- id: '/_authenticate'- path: ''- fullPath: ''- preLoaderRoute: typeof middlewaresAuthenticateImport- parentRoute: typeof rootRoute- }- '/_restrict-login-signup': {- id: '/_restrict-login-signup'- path: ''- fullPath: ''- preLoaderRoute: typeof middlewaresRestrictLoginSignupImport- parentRoute: typeof rootRoute- }- '/_restrict-login-signup/cli-redirect': {- id: '/_restrict-login-signup/cli-redirect'- path: '/cli-redirect'- fullPath: '/cli-redirect'- preLoaderRoute: typeof authCliRedirectPageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/email-not-verified': {- id: '/_restrict-login-signup/email-not-verified'- path: '/email-not-verified'- fullPath: '/email-not-verified'- preLoaderRoute: typeof authEmailNotVerifiedPageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/password-reset': {- id: '/_restrict-login-signup/password-reset'- path: '/password-reset'- fullPath: '/password-reset'- preLoaderRoute: typeof authPasswordResetPageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/requestnewinvite': {- id: '/_restrict-login-signup/requestnewinvite'- path: '/requestnewinvite'- fullPath: '/requestnewinvite'- preLoaderRoute: typeof authRequestNewInvitePageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/signupinvite': {- id: '/_restrict-login-signup/signupinvite'- path: '/signupinvite'- fullPath: '/signupinvite'- preLoaderRoute: typeof authSignUpInvitePageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/verify-email': {- id: '/_restrict-login-signup/verify-email'- path: '/verify-email'- fullPath: '/verify-email'- preLoaderRoute: typeof authVerifyEmailPageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_authenticate/_inject-org-details': {- id: '/_authenticate/_inject-org-details'- path: ''- fullPath: ''- preLoaderRoute: typeof middlewaresInjectOrgDetailsImport- parentRoute: typeof middlewaresAuthenticateImport- }- '/_authenticate/admin': {- id: '/_authenticate/admin'- path: '/admin'- fullPath: '/admin'- preLoaderRoute: typeof AuthenticateAdminImport- parentRoute: typeof middlewaresAuthenticateImport- }- '/_authenticate/personal-settings': {- id: '/_authenticate/personal-settings'- path: '/personal-settings'- fullPath: '/personal-settings'- preLoaderRoute: typeof AuthenticatePersonalSettingsImport- parentRoute: typeof middlewaresAuthenticateImport- }- '/_restrict-login-signup/login': {- id: '/_restrict-login-signup/login'- path: '/login'- fullPath: '/login'- preLoaderRoute: typeof RestrictLoginSignupLoginImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/signup': {- id: '/_restrict-login-signup/signup'- path: '/signup'- fullPath: '/signup'- preLoaderRoute: typeof RestrictLoginSignupSignupImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/login/': {- id: '/_restrict-login-signup/login/'- path: '/'- fullPath: '/login/'- preLoaderRoute: typeof authLoginPageRouteImport- parentRoute: typeof RestrictLoginSignupLoginImport- }- '/_restrict-login-signup/signup/': {- id: '/_restrict-login-signup/signup/'- path: '/'- fullPath: '/signup/'- preLoaderRoute: typeof authSignUpPageRouteImport- parentRoute: typeof RestrictLoginSignupSignupImport- }- '/_restrict-login-signup/admin/signup': {- id: '/_restrict-login-signup/admin/signup'- path: '/admin/signup'- fullPath: '/admin/signup'- preLoaderRoute: typeof adminSignUpPageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }- '/_restrict-login-signup/login/ldap': {- id: '/_restrict-login-signup/login/ldap'- path: '/ldap'- fullPath: '/login/ldap'- preLoaderRoute: typeof authLoginLdapPageRouteImport- parentRoute: typeof RestrictLoginSignupLoginImport- }- '/_restrict-login-signup/login/select-organization': {- id: '/_restrict-login-signup/login/select-organization'- path: '/select-organization'- fullPath: '/login/select-organization'- preLoaderRoute: typeof authSelectOrgPageRouteImport- parentRoute: typeof RestrictLoginSignupLoginImport- }- '/_restrict-login-signup/login/sso': {- id: '/_restrict-login-signup/login/sso'- path: '/sso'- fullPath: '/login/sso'- preLoaderRoute: typeof authLoginSsoPageRouteImport- parentRoute: typeof RestrictLoginSignupLoginImport- }- '/_restrict-login-signup/signup/sso': {- id: '/_restrict-login-signup/signup/sso'- path: '/sso'- fullPath: '/signup/sso'- preLoaderRoute: typeof authSignUpSsoPageRouteImport- parentRoute: typeof RestrictLoginSignupSignupImport- }- '/shared/secret/$secretId': {- id: '/shared/secret/$secretId'- path: '/shared/secret/$secretId'- fullPath: '/shared/secret/$secretId'- preLoaderRoute: typeof publicViewSharedSecretByIDPageRouteImport- parentRoute: typeof rootRoute- }- '/_authenticate/_inject-org-details/organization': {- id: '/_authenticate/_inject-org-details/organization'- path: '/organization'- fullPath: '/organization'- preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrganizationImport- parentRoute: typeof middlewaresInjectOrgDetailsImport- }- '/_authenticate/admin/_admin-layout': {- id: '/_authenticate/admin/_admin-layout'- path: ''- fullPath: '/admin'- preLoaderRoute: typeof adminLayoutImport- parentRoute: typeof AuthenticateAdminImport- }- '/_authenticate/personal-settings/_layout': {- id: '/_authenticate/personal-settings/_layout'- path: ''- fullPath: '/personal-settings'- preLoaderRoute: typeof userLayoutImport- parentRoute: typeof AuthenticatePersonalSettingsImport- }- '/_authenticate/admin/_admin-layout/': {- id: '/_authenticate/admin/_admin-layout/'- path: '/'- fullPath: '/admin/'- preLoaderRoute: typeof adminOverviewPageRouteImport- parentRoute: typeof adminLayoutImport- }- '/_authenticate/personal-settings/_layout/': {- id: '/_authenticate/personal-settings/_layout/'- path: '/'- fullPath: '/personal-settings/'- preLoaderRoute: typeof userPersonalSettingsPageRouteImport- parentRoute: typeof userLayoutImport- }- '/_restrict-login-signup/login/provider/error': {- id: '/_restrict-login-signup/login/provider/error'- path: '/provider/error'- fullPath: '/login/provider/error'- preLoaderRoute: typeof authProviderErrorPageRouteImport- parentRoute: typeof RestrictLoginSignupLoginImport- }- '/_restrict-login-signup/login/provider/success': {- id: '/_restrict-login-signup/login/provider/success'- path: '/provider/success'- fullPath: '/login/provider/success'- preLoaderRoute: typeof authProviderSuccessPageRouteImport- parentRoute: typeof RestrictLoginSignupLoginImport- }- '/_authenticate/_inject-org-details/cert-manager/$projectId': {- id: '/_authenticate/_inject-org-details/cert-manager/$projectId'- path: '/cert-manager/$projectId'- fullPath: '/cert-manager/$projectId'- preLoaderRoute: typeof AuthenticateInjectOrgDetailsCertManagerProjectIdImport+const secretManagerIntegrationsVercelConfigurePageRouteRoute =+ secretManagerIntegrationsVercelConfigurePageRouteImport.update({+ id: '/vercel/create',+ path: '/vercel/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsTravisCIConfigurePageRouteRoute =+ secretManagerIntegrationsTravisCIConfigurePageRouteImport.update({+ id: '/travisci/create',+ path: '/travisci/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsTravisCIAuthorizePageRouteRoute =+ secretManagerIntegrationsTravisCIAuthorizePageRouteImport.update({+ id: '/travisci/authorize',+ path: '/travisci/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute =+ secretManagerIntegrationsTerraformCloudConfigurePageRouteImport.update({+ id: '/terraform-cloud/create',+ path: '/terraform-cloud/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute =+ secretManagerIntegrationsTerraformCloudAuthorizePageRouteImport.update({+ id: '/terraform-cloud/authorize',+ path: '/terraform-cloud/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsTeamcityConfigurePageRouteRoute =+ secretManagerIntegrationsTeamcityConfigurePageRouteImport.update({+ id: '/teamcity/create',+ path: '/teamcity/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsTeamcityAuthorizePageRouteRoute =+ secretManagerIntegrationsTeamcityAuthorizePageRouteImport.update({+ id: '/teamcity/authorize',+ path: '/teamcity/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsSupabaseConfigurePageRouteRoute =+ secretManagerIntegrationsSupabaseConfigurePageRouteImport.update({+ id: '/supabase/create',+ path: '/supabase/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsSupabaseAuthorizePageRouteRoute =+ secretManagerIntegrationsSupabaseAuthorizePageRouteImport.update({+ id: '/supabase/authorize',+ path: '/supabase/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRundeckConfigurePageRouteRoute =+ secretManagerIntegrationsRundeckConfigurePageRouteImport.update({+ id: '/rundeck/create',+ path: '/rundeck/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRundeckAuthorizePageRouteRoute =+ secretManagerIntegrationsRundeckAuthorizePageRouteImport.update({+ id: '/rundeck/authorize',+ path: '/rundeck/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRenderConfigurePageRouteRoute =+ secretManagerIntegrationsRenderConfigurePageRouteImport.update({+ id: '/render/create',+ path: '/render/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRenderAuthorizePageRouteRoute =+ secretManagerIntegrationsRenderAuthorizePageRouteImport.update({+ id: '/render/authorize',+ path: '/render/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRailwayConfigurePageRouteRoute =+ secretManagerIntegrationsRailwayConfigurePageRouteImport.update({+ id: '/railway/create',+ path: '/railway/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsRailwayAuthorizePageRouteRoute =+ secretManagerIntegrationsRailwayAuthorizePageRouteImport.update({+ id: '/railway/authorize',+ path: '/railway/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsQoveryConfigurePageRouteRoute =+ secretManagerIntegrationsQoveryConfigurePageRouteImport.update({+ id: '/qovery/create',+ path: '/qovery/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsQoveryAuthorizePageRouteRoute =+ secretManagerIntegrationsQoveryAuthorizePageRouteImport.update({+ id: '/qovery/authorize',+ path: '/qovery/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute =+ secretManagerIntegrationsOctopusDeployConfigurePageRouteImport.update({+ id: '/octopus-deploy/create',+ path: '/octopus-deploy/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute =+ secretManagerIntegrationsOctopusDeployAuthorizePageRouteImport.update({+ id: '/octopus-deploy/authorize',+ path: '/octopus-deploy/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsNorthflankConfigurePageRouteRoute =+ secretManagerIntegrationsNorthflankConfigurePageRouteImport.update({+ id: '/northflank/create',+ path: '/northflank/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsNorthflankAuthorizePageRouteRoute =+ secretManagerIntegrationsNorthflankAuthorizePageRouteImport.update({+ id: '/northflank/authorize',+ path: '/northflank/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsNetlifyConfigurePageRouteRoute =+ secretManagerIntegrationsNetlifyConfigurePageRouteImport.update({+ id: '/netlify/create',+ path: '/netlify/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute =+ secretManagerIntegrationsLaravelForgeConfigurePageRouteImport.update({+ id: '/laravel-forge/create',+ path: '/laravel-forge/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute =+ secretManagerIntegrationsLaravelForgeAuthorizePageRouteImport.update({+ id: '/laravel-forge/authorize',+ path: '/laravel-forge/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsHerokuConfigurePageRouteRoute =+ secretManagerIntegrationsHerokuConfigurePageRouteImport.update({+ id: '/heroku/create',+ path: '/heroku/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute =+ secretManagerIntegrationsHasuraCloudConfigurePageRouteImport.update({+ id: '/hasura-cloud/create',+ path: '/hasura-cloud/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute =+ secretManagerIntegrationsHasuraCloudAuthorizePageRouteImport.update({+ id: '/hasura-cloud/authorize',+ path: '/hasura-cloud/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute =+ secretManagerIntegrationsHashicorpVaultConfigurePageRouteImport.update({+ id: '/hashicorp-vault/create',+ path: '/hashicorp-vault/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute =+ secretManagerIntegrationsHashicorpVaultAuthorizePageRouteImport.update({+ id: '/hashicorp-vault/authorize',+ path: '/hashicorp-vault/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGitlabConfigurePageRouteRoute =+ secretManagerIntegrationsGitlabConfigurePageRouteImport.update({+ id: '/gitlab/create',+ path: '/gitlab/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGitlabAuthorizePageRouteRoute =+ secretManagerIntegrationsGitlabAuthorizePageRouteImport.update({+ id: '/gitlab/authorize',+ path: '/gitlab/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGithubConfigurePageRouteRoute =+ secretManagerIntegrationsGithubConfigurePageRouteImport.update({+ id: '/github/create',+ path: '/github/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGithubAuthorizePageRouteRoute =+ secretManagerIntegrationsGithubAuthorizePageRouteImport.update({+ id: '/github/auth-mode-selection',+ path: '/github/auth-mode-selection',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute =+ secretManagerIntegrationsGcpSecretManagerConfigurePageRouteImport.update({+ id: '/gcp-secret-manager/create',+ path: '/gcp-secret-manager/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute =+ secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteImport.update({+ id: '/gcp-secret-manager/authorize',+ path: '/gcp-secret-manager/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsFlyioConfigurePageRouteRoute =+ secretManagerIntegrationsFlyioConfigurePageRouteImport.update({+ id: '/flyio/create',+ path: '/flyio/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsFlyioAuthorizePageRouteRoute =+ secretManagerIntegrationsFlyioAuthorizePageRouteImport.update({+ id: '/flyio/authorize',+ path: '/flyio/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute =+ secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteImport.update(+ {+ id: '/digital-ocean-app-platform/create',+ path: '/digital-ocean-app-platform/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any,+ )++const secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute =+ secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteImport.update(+ {+ id: '/digital-ocean-app-platform/authorize',+ path: '/digital-ocean-app-platform/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any,+ )++const secretManagerIntegrationsDatabricksConfigurePageRouteRoute =+ secretManagerIntegrationsDatabricksConfigurePageRouteImport.update({+ id: '/databricks/create',+ path: '/databricks/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsDatabricksAuthorizePageRouteRoute =+ secretManagerIntegrationsDatabricksAuthorizePageRouteImport.update({+ id: '/databricks/authorize',+ path: '/databricks/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCodefreshConfigurePageRouteRoute =+ secretManagerIntegrationsCodefreshConfigurePageRouteImport.update({+ id: '/codefresh/create',+ path: '/codefresh/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCodefreshAuthorizePageRouteRoute =+ secretManagerIntegrationsCodefreshAuthorizePageRouteImport.update({+ id: '/codefresh/authorize',+ path: '/codefresh/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute =+ secretManagerIntegrationsCloudflareWorkersConfigurePageRouteImport.update({+ id: '/cloudflare-workers/create',+ path: '/cloudflare-workers/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute =+ secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteImport.update({+ id: '/cloudflare-workers/authorize',+ path: '/cloudflare-workers/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute =+ secretManagerIntegrationsCloudflarePagesConfigurePageRouteImport.update({+ id: '/cloudflare-pages/create',+ path: '/cloudflare-pages/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute =+ secretManagerIntegrationsCloudflarePagesAuthorizePageRouteImport.update({+ id: '/cloudflare-pages/authorize',+ path: '/cloudflare-pages/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCloud66ConfigurePageRouteRoute =+ secretManagerIntegrationsCloud66ConfigurePageRouteImport.update({+ id: '/cloud-66/create',+ path: '/cloud-66/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCloud66AuthorizePageRouteRoute =+ secretManagerIntegrationsCloud66AuthorizePageRouteImport.update({+ id: '/cloud-66/authorize',+ path: '/cloud-66/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCircleCIConfigurePageRouteRoute =+ secretManagerIntegrationsCircleCIConfigurePageRouteImport.update({+ id: '/circleci/create',+ path: '/circleci/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsCircleCIAuthorizePageRouteRoute =+ secretManagerIntegrationsCircleCIAuthorizePageRouteImport.update({+ id: '/circleci/authorize',+ path: '/circleci/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsChecklyConfigurePageRouteRoute =+ secretManagerIntegrationsChecklyConfigurePageRouteImport.update({+ id: '/checkly/create',+ path: '/checkly/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsChecklyAuthorizePageRouteRoute =+ secretManagerIntegrationsChecklyAuthorizePageRouteImport.update({+ id: '/checkly/authorize',+ path: '/checkly/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsBitbucketConfigurePageRouteRoute =+ secretManagerIntegrationsBitbucketConfigurePageRouteImport.update({+ id: '/bitbucket/create',+ path: '/bitbucket/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute =+ secretManagerIntegrationsAzureKeyVaultConfigurePageRouteImport.update({+ id: '/azure-key-vault/create',+ path: '/azure-key-vault/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute =+ secretManagerIntegrationsAzureDevopsConfigurePageRouteImport.update({+ id: '/azure-devops/create',+ path: '/azure-devops/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute =+ secretManagerIntegrationsAzureDevopsAuthorizePageRouteImport.update({+ id: '/azure-devops/authorize',+ path: '/azure-devops/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute =+ secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteImport.update(+ {+ id: '/azure-app-configuration/create',+ path: '/azure-app-configuration/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any,+ )++const secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute =+ secretManagerIntegrationsAwsSecretManagerConfigurePageRouteImport.update({+ id: '/aws-secret-manager/create',+ path: '/aws-secret-manager/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute =+ secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteImport.update({+ id: '/aws-secret-manager/authorize',+ path: '/aws-secret-manager/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute =+ secretManagerIntegrationsAwsParameterStoreConfigurePageRouteImport.update({+ id: '/aws-parameter-store/create',+ path: '/aws-parameter-store/create',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute =+ secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteImport.update({+ id: '/aws-parameter-store/authorize',+ path: '/aws-parameter-store/authorize',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const organizationAppConnectionsGithubOauthCallbackPageRouteRoute =+ organizationAppConnectionsGithubOauthCallbackPageRouteImport.update({+ id: '/app-connections/github/oauth/callback',+ path: '/app-connections/github/oauth/callback',+ getParentRoute: () => organizationLayoutRoute,+ } as any)++const secretManagerIntegrationsVercelOauthCallbackPageRouteRoute =+ secretManagerIntegrationsVercelOauthCallbackPageRouteImport.update({+ id: '/vercel/oauth2/callback',+ path: '/vercel/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute =+ secretManagerIntegrationsNetlifyOauthCallbackPageRouteImport.update({+ id: '/netlify/oauth2/callback',+ path: '/netlify/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute =+ secretManagerIntegrationsHerokuOauthCallbackPageRouteImport.update({+ id: '/heroku/oauth2/callback',+ path: '/heroku/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute =+ secretManagerIntegrationsGitlabOauthCallbackPageRouteImport.update({+ id: '/gitlab/oauth2/callback',+ path: '/gitlab/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGithubOauthCallbackPageRouteRoute =+ secretManagerIntegrationsGithubOauthCallbackPageRouteImport.update({+ id: '/github/oauth2/callback',+ path: '/github/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute =+ secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteImport.update({+ id: '/gcp-secret-manager/oauth2/callback',+ path: '/gcp-secret-manager/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute =+ secretManagerIntegrationsBitbucketOauthCallbackPageRouteImport.update({+ id: '/bitbucket/oauth2/callback',+ path: '/bitbucket/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute =+ secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteImport.update({+ id: '/azure-key-vault/oauth2/callback',+ path: '/azure-key-vault/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any)++const secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute =+ secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteImport.update(+ {+ id: '/azure-app-configuration/oauth2/callback',+ path: '/azure-app-configuration/oauth2/callback',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRoute,+ } as any,+ )++// Populate the FileRoutesByPath interface++declare module '@tanstack/react-router' {+ interface FileRoutesByPath {+ '/': {+ id: '/'+ path: '/'+ fullPath: '/'+ preLoaderRoute: typeof indexImport+ parentRoute: typeof rootRoute+ }+ '/share-secret': {+ id: '/share-secret'+ path: '/share-secret'+ fullPath: '/share-secret'+ preLoaderRoute: typeof publicShareSecretPageRouteImport+ parentRoute: typeof rootRoute+ }+ '/_authenticate': {+ id: '/_authenticate'+ path: ''+ fullPath: ''+ preLoaderRoute: typeof middlewaresAuthenticateImport+ parentRoute: typeof rootRoute+ }+ '/_restrict-login-signup': {+ id: '/_restrict-login-signup'+ path: ''+ fullPath: ''+ preLoaderRoute: typeof middlewaresRestrictLoginSignupImport+ parentRoute: typeof rootRoute+ }+ '/_restrict-login-signup/cli-redirect': {+ id: '/_restrict-login-signup/cli-redirect'+ path: '/cli-redirect'+ fullPath: '/cli-redirect'+ preLoaderRoute: typeof authCliRedirectPageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/email-not-verified': {+ id: '/_restrict-login-signup/email-not-verified'+ path: '/email-not-verified'+ fullPath: '/email-not-verified'+ preLoaderRoute: typeof authEmailNotVerifiedPageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/password-reset': {+ id: '/_restrict-login-signup/password-reset'+ path: '/password-reset'+ fullPath: '/password-reset'+ preLoaderRoute: typeof authPasswordResetPageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/requestnewinvite': {+ id: '/_restrict-login-signup/requestnewinvite'+ path: '/requestnewinvite'+ fullPath: '/requestnewinvite'+ preLoaderRoute: typeof authRequestNewInvitePageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/signupinvite': {+ id: '/_restrict-login-signup/signupinvite'+ path: '/signupinvite'+ fullPath: '/signupinvite'+ preLoaderRoute: typeof authSignUpInvitePageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/verify-email': {+ id: '/_restrict-login-signup/verify-email'+ path: '/verify-email'+ fullPath: '/verify-email'+ preLoaderRoute: typeof authVerifyEmailPageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_authenticate/_inject-org-details': {+ id: '/_authenticate/_inject-org-details'+ path: ''+ fullPath: ''+ preLoaderRoute: typeof middlewaresInjectOrgDetailsImport+ parentRoute: typeof middlewaresAuthenticateImport+ }+ '/_authenticate/admin': {+ id: '/_authenticate/admin'+ path: '/admin'+ fullPath: '/admin'+ preLoaderRoute: typeof AuthenticateAdminImport+ parentRoute: typeof middlewaresAuthenticateImport+ }+ '/_authenticate/personal-settings': {+ id: '/_authenticate/personal-settings'+ path: '/personal-settings'+ fullPath: '/personal-settings'+ preLoaderRoute: typeof AuthenticatePersonalSettingsImport+ parentRoute: typeof middlewaresAuthenticateImport+ }+ '/_restrict-login-signup/login': {+ id: '/_restrict-login-signup/login'+ path: '/login'+ fullPath: '/login'+ preLoaderRoute: typeof RestrictLoginSignupLoginImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/signup': {+ id: '/_restrict-login-signup/signup'+ path: '/signup'+ fullPath: '/signup'+ preLoaderRoute: typeof RestrictLoginSignupSignupImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/login/': {+ id: '/_restrict-login-signup/login/'+ path: '/'+ fullPath: '/login/'+ preLoaderRoute: typeof authLoginPageRouteImport+ parentRoute: typeof RestrictLoginSignupLoginImport+ }+ '/_restrict-login-signup/signup/': {+ id: '/_restrict-login-signup/signup/'+ path: '/'+ fullPath: '/signup/'+ preLoaderRoute: typeof authSignUpPageRouteImport+ parentRoute: typeof RestrictLoginSignupSignupImport+ }+ '/_restrict-login-signup/admin/signup': {+ id: '/_restrict-login-signup/admin/signup'+ path: '/admin/signup'+ fullPath: '/admin/signup'+ preLoaderRoute: typeof adminSignUpPageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/login/ldap': {+ id: '/_restrict-login-signup/login/ldap'+ path: '/ldap'+ fullPath: '/login/ldap'+ preLoaderRoute: typeof authLoginLdapPageRouteImport+ parentRoute: typeof RestrictLoginSignupLoginImport+ }+ '/_restrict-login-signup/login/select-organization': {+ id: '/_restrict-login-signup/login/select-organization'+ path: '/select-organization'+ fullPath: '/login/select-organization'+ preLoaderRoute: typeof authSelectOrgPageRouteImport+ parentRoute: typeof RestrictLoginSignupLoginImport+ }+ '/_restrict-login-signup/login/sso': {+ id: '/_restrict-login-signup/login/sso'+ path: '/sso'+ fullPath: '/login/sso'+ preLoaderRoute: typeof authLoginSsoPageRouteImport+ parentRoute: typeof RestrictLoginSignupLoginImport+ }+ '/_restrict-login-signup/signup/sso': {+ id: '/_restrict-login-signup/signup/sso'+ path: '/sso'+ fullPath: '/signup/sso'+ preLoaderRoute: typeof authSignUpSsoPageRouteImport+ parentRoute: typeof RestrictLoginSignupSignupImport+ }+ '/shared/secret/$secretId': {+ id: '/shared/secret/$secretId'+ path: '/shared/secret/$secretId'+ fullPath: '/shared/secret/$secretId'+ preLoaderRoute: typeof publicViewSharedSecretByIDPageRouteImport+ parentRoute: typeof rootRoute+ }+ '/_authenticate/_inject-org-details/integrations': {+ id: '/_authenticate/_inject-org-details/integrations'+ path: '/integrations'+ fullPath: '/integrations'+ preLoaderRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ parentRoute: typeof middlewaresInjectOrgDetailsImport+ }+ '/_authenticate/_inject-org-details/organization': {+ id: '/_authenticate/_inject-org-details/organization'+ path: '/organization'+ fullPath: '/organization'+ preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrganizationImport+ parentRoute: typeof middlewaresInjectOrgDetailsImport+ }+ '/_authenticate/admin/_admin-layout': {+ id: '/_authenticate/admin/_admin-layout'+ path: ''+ fullPath: '/admin'+ preLoaderRoute: typeof adminLayoutImport+ parentRoute: typeof AuthenticateAdminImport+ }+ '/_authenticate/personal-settings/_layout': {+ id: '/_authenticate/personal-settings/_layout'+ path: ''+ fullPath: '/personal-settings'+ preLoaderRoute: typeof userLayoutImport+ parentRoute: typeof AuthenticatePersonalSettingsImport+ }+ '/_authenticate/admin/_admin-layout/': {+ id: '/_authenticate/admin/_admin-layout/'+ path: '/'+ fullPath: '/admin/'+ preLoaderRoute: typeof adminOverviewPageRouteImport+ parentRoute: typeof adminLayoutImport+ }+ '/_authenticate/personal-settings/_layout/': {+ id: '/_authenticate/personal-settings/_layout/'+ path: '/'+ fullPath: '/personal-settings/'+ preLoaderRoute: typeof userPersonalSettingsPageRouteImport+ parentRoute: typeof userLayoutImport+ }+ '/_restrict-login-signup/login/provider/error': {+ id: '/_restrict-login-signup/login/provider/error'+ path: '/provider/error'+ fullPath: '/login/provider/error'+ preLoaderRoute: typeof authProviderErrorPageRouteImport+ parentRoute: typeof RestrictLoginSignupLoginImport+ }+ '/_restrict-login-signup/login/provider/success': {+ id: '/_restrict-login-signup/login/provider/success'+ path: '/provider/success'+ fullPath: '/login/provider/success'+ preLoaderRoute: typeof authProviderSuccessPageRouteImport+ parentRoute: typeof RestrictLoginSignupLoginImport+ }+ '/_authenticate/_inject-org-details/cert-manager/$projectId': {+ id: '/_authenticate/_inject-org-details/cert-manager/$projectId'+ path: '/cert-manager/$projectId'+ fullPath: '/cert-manager/$projectId'+ preLoaderRoute: typeof AuthenticateInjectOrgDetailsCertManagerProjectIdImportparentRoute: typeof middlewaresInjectOrgDetailsImport}'/_authenticate/_inject-org-details/kms/$projectId': {@@ -1203,6 +1968,69 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRouteCertManagerImportparentRoute: typeof certManagerLayoutImport}+ '/_authenticate/_inject-org-details/integrations/azure-app-configuration/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/azure-app-configuration/oauth2/callback'+ path: '/azure-app-configuration/oauth2/callback'+ fullPath: '/integrations/azure-app-configuration/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/azure-key-vault/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/azure-key-vault/oauth2/callback'+ path: '/azure-key-vault/oauth2/callback'+ fullPath: '/integrations/azure-key-vault/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/bitbucket/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/bitbucket/oauth2/callback'+ path: '/bitbucket/oauth2/callback'+ fullPath: '/integrations/bitbucket/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteBitbucketOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/gcp-secret-manager/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/gcp-secret-manager/oauth2/callback'+ path: '/gcp-secret-manager/oauth2/callback'+ fullPath: '/integrations/gcp-secret-manager/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteGcpOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/github/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/github/oauth2/callback'+ path: '/github/oauth2/callback'+ fullPath: '/integrations/github/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteGithubOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/gitlab/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/gitlab/oauth2/callback'+ path: '/gitlab/oauth2/callback'+ fullPath: '/integrations/gitlab/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteGitlabOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/heroku/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/heroku/oauth2/callback'+ path: '/heroku/oauth2/callback'+ fullPath: '/integrations/heroku/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteHerokuOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/netlify/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/netlify/oauth2/callback'+ path: '/netlify/oauth2/callback'+ fullPath: '/integrations/netlify/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteNetlifyOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }+ '/_authenticate/_inject-org-details/integrations/vercel/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/integrations/vercel/oauth2/callback'+ path: '/vercel/oauth2/callback'+ fullPath: '/integrations/vercel/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsRouteVercelOauthRedirectImport+ parentRoute: typeof AuthenticateInjectOrgDetailsIntegrationsImport+ }'/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/access-management': {id: '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/access-management'path: '/access-management'@@ -1252,6 +2080,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof secretManagerIntegrationsDetailsByIDPageRouteImportparentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth'+ path: '/select-integration-auth'+ fullPath: '/secret-manager/$projectId/integrations/select-integration-auth'+ preLoaderRoute: typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }'/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/secrets/$envSlug': {id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/secrets/$envSlug'path: '/secrets/$envSlug'@@ -1280,95 +2115,645 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectMemberDetailsByIDPageRouteCertManagerImportparentRoute: typeof certManagerLayoutImport}- '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/pki-collections/$collectionId': {- id: '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/pki-collections/$collectionId'- path: '/pki-collections/$collectionId'- fullPath: '/cert-manager/$projectId/pki-collections/$collectionId'- preLoaderRoute: typeof certManagerPkiCollectionDetailsByIDPageRoutesImport- parentRoute: typeof certManagerLayoutImport+ '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/pki-collections/$collectionId': {+ id: '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/pki-collections/$collectionId'+ path: '/pki-collections/$collectionId'+ fullPath: '/cert-manager/$projectId/pki-collections/$collectionId'+ preLoaderRoute: typeof certManagerPkiCollectionDetailsByIDPageRoutesImport+ parentRoute: typeof certManagerLayoutImport+ }+ '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/roles/$roleSlug': {+ id: '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/roles/$roleSlug'+ path: '/roles/$roleSlug'+ fullPath: '/cert-manager/$projectId/roles/$roleSlug'+ preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteCertManagerImport+ parentRoute: typeof certManagerLayoutImport+ }+ '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/identities/$identityId': {+ id: '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/identities/$identityId'+ path: '/identities/$identityId'+ fullPath: '/kms/$projectId/identities/$identityId'+ preLoaderRoute: typeof projectIdentityDetailsByIDPageRouteKmsImport+ parentRoute: typeof kmsLayoutImport+ }+ '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/members/$membershipId': {+ id: '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/members/$membershipId'+ path: '/members/$membershipId'+ fullPath: '/kms/$projectId/members/$membershipId'+ preLoaderRoute: typeof projectMemberDetailsByIDPageRouteKmsImport+ parentRoute: typeof kmsLayoutImport+ }+ '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/roles/$roleSlug': {+ id: '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/roles/$roleSlug'+ path: '/roles/$roleSlug'+ fullPath: '/kms/$projectId/roles/$roleSlug'+ preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteKmsImport+ parentRoute: typeof kmsLayoutImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/identities/$identityId': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/identities/$identityId'+ path: '/identities/$identityId'+ fullPath: '/secret-manager/$projectId/identities/$identityId'+ preLoaderRoute: typeof projectIdentityDetailsByIDPageRouteSecretManagerImport+ parentRoute: typeof secretManagerLayoutImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/members/$membershipId': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/members/$membershipId'+ path: '/members/$membershipId'+ fullPath: '/secret-manager/$projectId/members/$membershipId'+ preLoaderRoute: typeof projectMemberDetailsByIDPageRouteSecretManagerImport+ parentRoute: typeof secretManagerLayoutImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/roles/$roleSlug': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/roles/$roleSlug'+ path: '/roles/$roleSlug'+ fullPath: '/secret-manager/$projectId/roles/$roleSlug'+ preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteSecretManagerImport+ parentRoute: typeof secretManagerLayoutImport+ }+ '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/identities/$identityId': {+ id: '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/identities/$identityId'+ path: '/identities/$identityId'+ fullPath: '/ssh/$projectId/identities/$identityId'+ preLoaderRoute: typeof projectIdentityDetailsByIDPageRouteSshImport+ parentRoute: typeof sshLayoutImport+ }+ '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/members/$membershipId': {+ id: '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/members/$membershipId'+ path: '/members/$membershipId'+ fullPath: '/ssh/$projectId/members/$membershipId'+ preLoaderRoute: typeof projectMemberDetailsByIDPageRouteSshImport+ parentRoute: typeof sshLayoutImport+ }+ '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/roles/$roleSlug': {+ id: '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/roles/$roleSlug'+ path: '/roles/$roleSlug'+ fullPath: '/ssh/$projectId/roles/$roleSlug'+ preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteSshImport+ parentRoute: typeof sshLayoutImport+ }+ '/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback': {+ id: '/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback'+ path: '/app-connections/github/oauth/callback'+ fullPath: '/organization/app-connections/github/oauth/callback'+ preLoaderRoute: typeof organizationAppConnectionsGithubOauthCallbackPageRouteImport+ parentRoute: typeof organizationLayoutImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize'+ path: '/aws-parameter-store/authorize'+ fullPath: '/secret-manager/$projectId/integrations/aws-parameter-store/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create'+ path: '/aws-parameter-store/create'+ fullPath: '/secret-manager/$projectId/integrations/aws-parameter-store/create'+ preLoaderRoute: typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize'+ path: '/aws-secret-manager/authorize'+ fullPath: '/secret-manager/$projectId/integrations/aws-secret-manager/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create'+ path: '/aws-secret-manager/create'+ fullPath: '/secret-manager/$projectId/integrations/aws-secret-manager/create'+ preLoaderRoute: typeof secretManagerIntegrationsAwsSecretManagerConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create'+ path: '/azure-app-configuration/create'+ fullPath: '/secret-manager/$projectId/integrations/azure-app-configuration/create'+ preLoaderRoute: typeof secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize'+ path: '/azure-devops/authorize'+ fullPath: '/secret-manager/$projectId/integrations/azure-devops/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsAzureDevopsAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create'+ path: '/azure-devops/create'+ fullPath: '/secret-manager/$projectId/integrations/azure-devops/create'+ preLoaderRoute: typeof secretManagerIntegrationsAzureDevopsConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create'+ path: '/azure-key-vault/create'+ fullPath: '/secret-manager/$projectId/integrations/azure-key-vault/create'+ preLoaderRoute: typeof secretManagerIntegrationsAzureKeyVaultConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create'+ path: '/bitbucket/create'+ fullPath: '/secret-manager/$projectId/integrations/bitbucket/create'+ preLoaderRoute: typeof secretManagerIntegrationsBitbucketConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize'+ path: '/checkly/authorize'+ fullPath: '/secret-manager/$projectId/integrations/checkly/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsChecklyAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create'+ path: '/checkly/create'+ fullPath: '/secret-manager/$projectId/integrations/checkly/create'+ preLoaderRoute: typeof secretManagerIntegrationsChecklyConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize'+ path: '/circleci/authorize'+ fullPath: '/secret-manager/$projectId/integrations/circleci/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsCircleCIAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create'+ path: '/circleci/create'+ fullPath: '/secret-manager/$projectId/integrations/circleci/create'+ preLoaderRoute: typeof secretManagerIntegrationsCircleCIConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize'+ path: '/cloud-66/authorize'+ fullPath: '/secret-manager/$projectId/integrations/cloud-66/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsCloud66AuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create'+ path: '/cloud-66/create'+ fullPath: '/secret-manager/$projectId/integrations/cloud-66/create'+ preLoaderRoute: typeof secretManagerIntegrationsCloud66ConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize'+ path: '/cloudflare-pages/authorize'+ fullPath: '/secret-manager/$projectId/integrations/cloudflare-pages/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsCloudflarePagesAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create'+ path: '/cloudflare-pages/create'+ fullPath: '/secret-manager/$projectId/integrations/cloudflare-pages/create'+ preLoaderRoute: typeof secretManagerIntegrationsCloudflarePagesConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize'+ path: '/cloudflare-workers/authorize'+ fullPath: '/secret-manager/$projectId/integrations/cloudflare-workers/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create'+ path: '/cloudflare-workers/create'+ fullPath: '/secret-manager/$projectId/integrations/cloudflare-workers/create'+ preLoaderRoute: typeof secretManagerIntegrationsCloudflareWorkersConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize'+ path: '/codefresh/authorize'+ fullPath: '/secret-manager/$projectId/integrations/codefresh/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsCodefreshAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create'+ path: '/codefresh/create'+ fullPath: '/secret-manager/$projectId/integrations/codefresh/create'+ preLoaderRoute: typeof secretManagerIntegrationsCodefreshConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize'+ path: '/databricks/authorize'+ fullPath: '/secret-manager/$projectId/integrations/databricks/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsDatabricksAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create'+ path: '/databricks/create'+ fullPath: '/secret-manager/$projectId/integrations/databricks/create'+ preLoaderRoute: typeof secretManagerIntegrationsDatabricksConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize'+ path: '/digital-ocean-app-platform/authorize'+ fullPath: '/secret-manager/$projectId/integrations/digital-ocean-app-platform/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create'+ path: '/digital-ocean-app-platform/create'+ fullPath: '/secret-manager/$projectId/integrations/digital-ocean-app-platform/create'+ preLoaderRoute: typeof secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize'+ path: '/flyio/authorize'+ fullPath: '/secret-manager/$projectId/integrations/flyio/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsFlyioAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create'+ path: '/flyio/create'+ fullPath: '/secret-manager/$projectId/integrations/flyio/create'+ preLoaderRoute: typeof secretManagerIntegrationsFlyioConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize'+ path: '/gcp-secret-manager/authorize'+ fullPath: '/secret-manager/$projectId/integrations/gcp-secret-manager/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create'+ path: '/gcp-secret-manager/create'+ fullPath: '/secret-manager/$projectId/integrations/gcp-secret-manager/create'+ preLoaderRoute: typeof secretManagerIntegrationsGcpSecretManagerConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection'+ path: '/github/auth-mode-selection'+ fullPath: '/secret-manager/$projectId/integrations/github/auth-mode-selection'+ preLoaderRoute: typeof secretManagerIntegrationsGithubAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create'+ path: '/github/create'+ fullPath: '/secret-manager/$projectId/integrations/github/create'+ preLoaderRoute: typeof secretManagerIntegrationsGithubConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize'+ path: '/gitlab/authorize'+ fullPath: '/secret-manager/$projectId/integrations/gitlab/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsGitlabAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create'+ path: '/gitlab/create'+ fullPath: '/secret-manager/$projectId/integrations/gitlab/create'+ preLoaderRoute: typeof secretManagerIntegrationsGitlabConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize'+ path: '/hashicorp-vault/authorize'+ fullPath: '/secret-manager/$projectId/integrations/hashicorp-vault/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsHashicorpVaultAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create'+ path: '/hashicorp-vault/create'+ fullPath: '/secret-manager/$projectId/integrations/hashicorp-vault/create'+ preLoaderRoute: typeof secretManagerIntegrationsHashicorpVaultConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize'+ path: '/hasura-cloud/authorize'+ fullPath: '/secret-manager/$projectId/integrations/hasura-cloud/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsHasuraCloudAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create'+ path: '/hasura-cloud/create'+ fullPath: '/secret-manager/$projectId/integrations/hasura-cloud/create'+ preLoaderRoute: typeof secretManagerIntegrationsHasuraCloudConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create'+ path: '/heroku/create'+ fullPath: '/secret-manager/$projectId/integrations/heroku/create'+ preLoaderRoute: typeof secretManagerIntegrationsHerokuConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize'+ path: '/laravel-forge/authorize'+ fullPath: '/secret-manager/$projectId/integrations/laravel-forge/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsLaravelForgeAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create'+ path: '/laravel-forge/create'+ fullPath: '/secret-manager/$projectId/integrations/laravel-forge/create'+ preLoaderRoute: typeof secretManagerIntegrationsLaravelForgeConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create'+ path: '/netlify/create'+ fullPath: '/secret-manager/$projectId/integrations/netlify/create'+ preLoaderRoute: typeof secretManagerIntegrationsNetlifyConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize'+ path: '/northflank/authorize'+ fullPath: '/secret-manager/$projectId/integrations/northflank/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsNorthflankAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create'+ path: '/northflank/create'+ fullPath: '/secret-manager/$projectId/integrations/northflank/create'+ preLoaderRoute: typeof secretManagerIntegrationsNorthflankConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize'+ path: '/octopus-deploy/authorize'+ fullPath: '/secret-manager/$projectId/integrations/octopus-deploy/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsOctopusDeployAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create'+ path: '/octopus-deploy/create'+ fullPath: '/secret-manager/$projectId/integrations/octopus-deploy/create'+ preLoaderRoute: typeof secretManagerIntegrationsOctopusDeployConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize'+ path: '/qovery/authorize'+ fullPath: '/secret-manager/$projectId/integrations/qovery/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsQoveryAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create'+ path: '/qovery/create'+ fullPath: '/secret-manager/$projectId/integrations/qovery/create'+ preLoaderRoute: typeof secretManagerIntegrationsQoveryConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize'+ path: '/railway/authorize'+ fullPath: '/secret-manager/$projectId/integrations/railway/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsRailwayAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create'+ path: '/railway/create'+ fullPath: '/secret-manager/$projectId/integrations/railway/create'+ preLoaderRoute: typeof secretManagerIntegrationsRailwayConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize'+ path: '/render/authorize'+ fullPath: '/secret-manager/$projectId/integrations/render/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsRenderAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create'+ path: '/render/create'+ fullPath: '/secret-manager/$projectId/integrations/render/create'+ preLoaderRoute: typeof secretManagerIntegrationsRenderConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize'+ path: '/rundeck/authorize'+ fullPath: '/secret-manager/$projectId/integrations/rundeck/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsRundeckAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create'+ path: '/rundeck/create'+ fullPath: '/secret-manager/$projectId/integrations/rundeck/create'+ preLoaderRoute: typeof secretManagerIntegrationsRundeckConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize'+ path: '/supabase/authorize'+ fullPath: '/secret-manager/$projectId/integrations/supabase/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsSupabaseAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create'+ path: '/supabase/create'+ fullPath: '/secret-manager/$projectId/integrations/supabase/create'+ preLoaderRoute: typeof secretManagerIntegrationsSupabaseConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize'+ path: '/teamcity/authorize'+ fullPath: '/secret-manager/$projectId/integrations/teamcity/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsTeamcityAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create'+ path: '/teamcity/create'+ fullPath: '/secret-manager/$projectId/integrations/teamcity/create'+ preLoaderRoute: typeof secretManagerIntegrationsTeamcityConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize'+ path: '/terraform-cloud/authorize'+ fullPath: '/secret-manager/$projectId/integrations/terraform-cloud/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsTerraformCloudAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create'+ path: '/terraform-cloud/create'+ fullPath: '/secret-manager/$projectId/integrations/terraform-cloud/create'+ preLoaderRoute: typeof secretManagerIntegrationsTerraformCloudConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize'+ path: '/travisci/authorize'+ fullPath: '/secret-manager/$projectId/integrations/travisci/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsTravisCIAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create'+ path: '/travisci/create'+ fullPath: '/secret-manager/$projectId/integrations/travisci/create'+ preLoaderRoute: typeof secretManagerIntegrationsTravisCIConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/roles/$roleSlug': {- id: '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/roles/$roleSlug'- path: '/roles/$roleSlug'- fullPath: '/cert-manager/$projectId/roles/$roleSlug'- preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteCertManagerImport- parentRoute: typeof certManagerLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create'+ path: '/vercel/create'+ fullPath: '/secret-manager/$projectId/integrations/vercel/create'+ preLoaderRoute: typeof secretManagerIntegrationsVercelConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/identities/$identityId': {- id: '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/identities/$identityId'- path: '/identities/$identityId'- fullPath: '/kms/$projectId/identities/$identityId'- preLoaderRoute: typeof projectIdentityDetailsByIDPageRouteKmsImport- parentRoute: typeof kmsLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize'+ path: '/windmill/authorize'+ fullPath: '/secret-manager/$projectId/integrations/windmill/authorize'+ preLoaderRoute: typeof secretManagerIntegrationsWindmillAuthorizePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/members/$membershipId': {- id: '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/members/$membershipId'- path: '/members/$membershipId'- fullPath: '/kms/$projectId/members/$membershipId'- preLoaderRoute: typeof projectMemberDetailsByIDPageRouteKmsImport- parentRoute: typeof kmsLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create'+ path: '/windmill/create'+ fullPath: '/secret-manager/$projectId/integrations/windmill/create'+ preLoaderRoute: typeof secretManagerIntegrationsWindmillConfigurePageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/roles/$roleSlug': {- id: '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/roles/$roleSlug'- path: '/roles/$roleSlug'- fullPath: '/kms/$projectId/roles/$roleSlug'- preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteKmsImport- parentRoute: typeof kmsLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback'+ path: '/azure-app-configuration/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/identities/$identityId': {- id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/identities/$identityId'- path: '/identities/$identityId'- fullPath: '/secret-manager/$projectId/identities/$identityId'- preLoaderRoute: typeof projectIdentityDetailsByIDPageRouteSecretManagerImport- parentRoute: typeof secretManagerLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback'+ path: '/azure-key-vault/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/members/$membershipId': {- id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/members/$membershipId'- path: '/members/$membershipId'- fullPath: '/secret-manager/$projectId/members/$membershipId'- preLoaderRoute: typeof projectMemberDetailsByIDPageRouteSecretManagerImport- parentRoute: typeof secretManagerLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback'+ path: '/bitbucket/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/roles/$roleSlug': {- id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/roles/$roleSlug'- path: '/roles/$roleSlug'- fullPath: '/secret-manager/$projectId/roles/$roleSlug'- preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteSecretManagerImport- parentRoute: typeof secretManagerLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback'+ path: '/gcp-secret-manager/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/identities/$identityId': {- id: '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/identities/$identityId'- path: '/identities/$identityId'- fullPath: '/ssh/$projectId/identities/$identityId'- preLoaderRoute: typeof projectIdentityDetailsByIDPageRouteSshImport- parentRoute: typeof sshLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback'+ path: '/github/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/github/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsGithubOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/members/$membershipId': {- id: '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/members/$membershipId'- path: '/members/$membershipId'- fullPath: '/ssh/$projectId/members/$membershipId'- preLoaderRoute: typeof projectMemberDetailsByIDPageRouteSshImport- parentRoute: typeof sshLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback'+ path: '/gitlab/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/gitlab/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsGitlabOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/roles/$roleSlug': {- id: '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/roles/$roleSlug'- path: '/roles/$roleSlug'- fullPath: '/ssh/$projectId/roles/$roleSlug'- preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteSshImport- parentRoute: typeof sshLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback'+ path: '/heroku/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/heroku/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsHerokuOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}- '/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback': {- id: '/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback'- path: '/app-connections/github/oauth/callback'- fullPath: '/organization/app-connections/github/oauth/callback'- preLoaderRoute: typeof organizationAppConnectionsGithubOauthCallbackPageRouteImport- parentRoute: typeof organizationLayoutImport+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback'+ path: '/netlify/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/netlify/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsNetlifyOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport+ }+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback': {+ id: '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback'+ path: '/vercel/oauth2/callback'+ fullPath: '/secret-manager/$projectId/integrations/vercel/oauth2/callback'+ preLoaderRoute: typeof secretManagerIntegrationsVercelOauthCallbackPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsImport}}}// Create and export the route tree+interface AuthenticateInjectOrgDetailsIntegrationsRouteChildren {+ secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute: typeof secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute+ secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute: typeof secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute+ secretManagerIntegrationsRouteBitbucketOauthRedirectRoute: typeof secretManagerIntegrationsRouteBitbucketOauthRedirectRoute+ secretManagerIntegrationsRouteGcpOauthRedirectRoute: typeof secretManagerIntegrationsRouteGcpOauthRedirectRoute+ secretManagerIntegrationsRouteGithubOauthRedirectRoute: typeof secretManagerIntegrationsRouteGithubOauthRedirectRoute+ secretManagerIntegrationsRouteGitlabOauthRedirectRoute: typeof secretManagerIntegrationsRouteGitlabOauthRedirectRoute+ secretManagerIntegrationsRouteHerokuOauthRedirectRoute: typeof secretManagerIntegrationsRouteHerokuOauthRedirectRoute+ secretManagerIntegrationsRouteNetlifyOauthRedirectRoute: typeof secretManagerIntegrationsRouteNetlifyOauthRedirectRoute+ secretManagerIntegrationsRouteVercelOauthRedirectRoute: typeof secretManagerIntegrationsRouteVercelOauthRedirectRoute+}++const AuthenticateInjectOrgDetailsIntegrationsRouteChildren: AuthenticateInjectOrgDetailsIntegrationsRouteChildren =+ {+ secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute:+ secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute,+ secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute:+ secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute,+ secretManagerIntegrationsRouteBitbucketOauthRedirectRoute:+ secretManagerIntegrationsRouteBitbucketOauthRedirectRoute,+ secretManagerIntegrationsRouteGcpOauthRedirectRoute:+ secretManagerIntegrationsRouteGcpOauthRedirectRoute,+ secretManagerIntegrationsRouteGithubOauthRedirectRoute:+ secretManagerIntegrationsRouteGithubOauthRedirectRoute,+ secretManagerIntegrationsRouteGitlabOauthRedirectRoute:+ secretManagerIntegrationsRouteGitlabOauthRedirectRoute,+ secretManagerIntegrationsRouteHerokuOauthRedirectRoute:+ secretManagerIntegrationsRouteHerokuOauthRedirectRoute,+ secretManagerIntegrationsRouteNetlifyOauthRedirectRoute:+ secretManagerIntegrationsRouteNetlifyOauthRedirectRoute,+ secretManagerIntegrationsRouteVercelOauthRedirectRoute:+ secretManagerIntegrationsRouteVercelOauthRedirectRoute,+ }++const AuthenticateInjectOrgDetailsIntegrationsRouteWithChildren =+ AuthenticateInjectOrgDetailsIntegrationsRoute._addFileChildren(+ AuthenticateInjectOrgDetailsIntegrationsRouteChildren,+ )+interface organizationLayoutRouteChildren {organizationAccessManagementPageRouteRoute: typeof organizationAccessManagementPageRouteRouteorganizationAdminPageRouteRoute: typeof organizationAdminPageRouteRoute@@ -1522,6 +2907,80 @@ const AuthenticateInjectOrgDetailsKmsProjectIdRouteWithChildren =interface AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRouteChildren {secretManagerIntegrationsListPageRouteRoute: typeof secretManagerIntegrationsListPageRouteRoutesecretManagerIntegrationsDetailsByIDPageRouteRoute: typeof secretManagerIntegrationsDetailsByIDPageRouteRoute+ secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute: typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute+ secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute: typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute+ secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute: typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute+ secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute: typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute+ secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute: typeof secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute+ secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute: typeof secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute+ secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute: typeof secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute+ secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute: typeof secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute+ secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute: typeof secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute+ secretManagerIntegrationsBitbucketConfigurePageRouteRoute: typeof secretManagerIntegrationsBitbucketConfigurePageRouteRoute+ secretManagerIntegrationsChecklyAuthorizePageRouteRoute: typeof secretManagerIntegrationsChecklyAuthorizePageRouteRoute+ secretManagerIntegrationsChecklyConfigurePageRouteRoute: typeof secretManagerIntegrationsChecklyConfigurePageRouteRoute+ secretManagerIntegrationsCircleCIAuthorizePageRouteRoute: typeof secretManagerIntegrationsCircleCIAuthorizePageRouteRoute+ secretManagerIntegrationsCircleCIConfigurePageRouteRoute: typeof secretManagerIntegrationsCircleCIConfigurePageRouteRoute+ secretManagerIntegrationsCloud66AuthorizePageRouteRoute: typeof secretManagerIntegrationsCloud66AuthorizePageRouteRoute+ secretManagerIntegrationsCloud66ConfigurePageRouteRoute: typeof secretManagerIntegrationsCloud66ConfigurePageRouteRoute+ secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute: typeof secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute+ secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute: typeof secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute+ secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute: typeof secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute+ secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute: typeof secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute+ secretManagerIntegrationsCodefreshAuthorizePageRouteRoute: typeof secretManagerIntegrationsCodefreshAuthorizePageRouteRoute+ secretManagerIntegrationsCodefreshConfigurePageRouteRoute: typeof secretManagerIntegrationsCodefreshConfigurePageRouteRoute+ secretManagerIntegrationsDatabricksAuthorizePageRouteRoute: typeof secretManagerIntegrationsDatabricksAuthorizePageRouteRoute+ secretManagerIntegrationsDatabricksConfigurePageRouteRoute: typeof secretManagerIntegrationsDatabricksConfigurePageRouteRoute+ secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute: typeof secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute+ secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute: typeof secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute+ secretManagerIntegrationsFlyioAuthorizePageRouteRoute: typeof secretManagerIntegrationsFlyioAuthorizePageRouteRoute+ secretManagerIntegrationsFlyioConfigurePageRouteRoute: typeof secretManagerIntegrationsFlyioConfigurePageRouteRoute+ secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute: typeof secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute+ secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute: typeof secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute+ secretManagerIntegrationsGithubAuthorizePageRouteRoute: typeof secretManagerIntegrationsGithubAuthorizePageRouteRoute+ secretManagerIntegrationsGithubConfigurePageRouteRoute: typeof secretManagerIntegrationsGithubConfigurePageRouteRoute+ secretManagerIntegrationsGitlabAuthorizePageRouteRoute: typeof secretManagerIntegrationsGitlabAuthorizePageRouteRoute+ secretManagerIntegrationsGitlabConfigurePageRouteRoute: typeof secretManagerIntegrationsGitlabConfigurePageRouteRoute+ secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute: typeof secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute+ secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute: typeof secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute+ secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute: typeof secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute+ secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute: typeof secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute+ secretManagerIntegrationsHerokuConfigurePageRouteRoute: typeof secretManagerIntegrationsHerokuConfigurePageRouteRoute+ secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute: typeof secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute+ secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute: typeof secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute+ secretManagerIntegrationsNetlifyConfigurePageRouteRoute: typeof secretManagerIntegrationsNetlifyConfigurePageRouteRoute+ secretManagerIntegrationsNorthflankAuthorizePageRouteRoute: typeof secretManagerIntegrationsNorthflankAuthorizePageRouteRoute+ secretManagerIntegrationsNorthflankConfigurePageRouteRoute: typeof secretManagerIntegrationsNorthflankConfigurePageRouteRoute+ secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute: typeof secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute+ secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute: typeof secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute+ secretManagerIntegrationsQoveryAuthorizePageRouteRoute: typeof secretManagerIntegrationsQoveryAuthorizePageRouteRoute+ secretManagerIntegrationsQoveryConfigurePageRouteRoute: typeof secretManagerIntegrationsQoveryConfigurePageRouteRoute+ secretManagerIntegrationsRailwayAuthorizePageRouteRoute: typeof secretManagerIntegrationsRailwayAuthorizePageRouteRoute+ secretManagerIntegrationsRailwayConfigurePageRouteRoute: typeof secretManagerIntegrationsRailwayConfigurePageRouteRoute+ secretManagerIntegrationsRenderAuthorizePageRouteRoute: typeof secretManagerIntegrationsRenderAuthorizePageRouteRoute+ secretManagerIntegrationsRenderConfigurePageRouteRoute: typeof secretManagerIntegrationsRenderConfigurePageRouteRoute+ secretManagerIntegrationsRundeckAuthorizePageRouteRoute: typeof secretManagerIntegrationsRundeckAuthorizePageRouteRoute+ secretManagerIntegrationsRundeckConfigurePageRouteRoute: typeof secretManagerIntegrationsRundeckConfigurePageRouteRoute+ secretManagerIntegrationsSupabaseAuthorizePageRouteRoute: typeof secretManagerIntegrationsSupabaseAuthorizePageRouteRoute+ secretManagerIntegrationsSupabaseConfigurePageRouteRoute: typeof secretManagerIntegrationsSupabaseConfigurePageRouteRoute+ secretManagerIntegrationsTeamcityAuthorizePageRouteRoute: typeof secretManagerIntegrationsTeamcityAuthorizePageRouteRoute+ secretManagerIntegrationsTeamcityConfigurePageRouteRoute: typeof secretManagerIntegrationsTeamcityConfigurePageRouteRoute+ secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute: typeof secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute+ secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute: typeof secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute+ secretManagerIntegrationsTravisCIAuthorizePageRouteRoute: typeof secretManagerIntegrationsTravisCIAuthorizePageRouteRoute+ secretManagerIntegrationsTravisCIConfigurePageRouteRoute: typeof secretManagerIntegrationsTravisCIConfigurePageRouteRoute+ secretManagerIntegrationsVercelConfigurePageRouteRoute: typeof secretManagerIntegrationsVercelConfigurePageRouteRoute+ secretManagerIntegrationsWindmillAuthorizePageRouteRoute: typeof secretManagerIntegrationsWindmillAuthorizePageRouteRoute+ secretManagerIntegrationsWindmillConfigurePageRouteRoute: typeof secretManagerIntegrationsWindmillConfigurePageRouteRoute+ secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute+ secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute+ secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute+ secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute+ secretManagerIntegrationsGithubOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsGithubOauthCallbackPageRouteRoute+ secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute+ secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute+ secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute+ secretManagerIntegrationsVercelOauthCallbackPageRouteRoute: typeof secretManagerIntegrationsVercelOauthCallbackPageRouteRoute}const AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRouteChildren: AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRouteChildren =@@ -1530,6 +2989,154 @@ const AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegsecretManagerIntegrationsListPageRouteRoute,secretManagerIntegrationsDetailsByIDPageRouteRoute:secretManagerIntegrationsDetailsByIDPageRouteRoute,+ secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute:+ secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute,+ secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute:+ secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute,+ secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute:+ secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute,+ secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute:+ secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute,+ secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute:+ secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute,+ secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute:+ secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute,+ secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute:+ secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute,+ secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute:+ secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute,+ secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute:+ secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute,+ secretManagerIntegrationsBitbucketConfigurePageRouteRoute:+ secretManagerIntegrationsBitbucketConfigurePageRouteRoute,+ secretManagerIntegrationsChecklyAuthorizePageRouteRoute:+ secretManagerIntegrationsChecklyAuthorizePageRouteRoute,+ secretManagerIntegrationsChecklyConfigurePageRouteRoute:+ secretManagerIntegrationsChecklyConfigurePageRouteRoute,+ secretManagerIntegrationsCircleCIAuthorizePageRouteRoute:+ secretManagerIntegrationsCircleCIAuthorizePageRouteRoute,+ secretManagerIntegrationsCircleCIConfigurePageRouteRoute:+ secretManagerIntegrationsCircleCIConfigurePageRouteRoute,+ secretManagerIntegrationsCloud66AuthorizePageRouteRoute:+ secretManagerIntegrationsCloud66AuthorizePageRouteRoute,+ secretManagerIntegrationsCloud66ConfigurePageRouteRoute:+ secretManagerIntegrationsCloud66ConfigurePageRouteRoute,+ secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute:+ secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute,+ secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute:+ secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute,+ secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute:+ secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute,+ secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute:+ secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute,+ secretManagerIntegrationsCodefreshAuthorizePageRouteRoute:+ secretManagerIntegrationsCodefreshAuthorizePageRouteRoute,+ secretManagerIntegrationsCodefreshConfigurePageRouteRoute:+ secretManagerIntegrationsCodefreshConfigurePageRouteRoute,+ secretManagerIntegrationsDatabricksAuthorizePageRouteRoute:+ secretManagerIntegrationsDatabricksAuthorizePageRouteRoute,+ secretManagerIntegrationsDatabricksConfigurePageRouteRoute:+ secretManagerIntegrationsDatabricksConfigurePageRouteRoute,+ secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute:+ secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute,+ secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute:+ secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute,+ secretManagerIntegrationsFlyioAuthorizePageRouteRoute:+ secretManagerIntegrationsFlyioAuthorizePageRouteRoute,+ secretManagerIntegrationsFlyioConfigurePageRouteRoute:+ secretManagerIntegrationsFlyioConfigurePageRouteRoute,+ secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute:+ secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute,+ secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute:+ secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute,+ secretManagerIntegrationsGithubAuthorizePageRouteRoute:+ secretManagerIntegrationsGithubAuthorizePageRouteRoute,+ secretManagerIntegrationsGithubConfigurePageRouteRoute:+ secretManagerIntegrationsGithubConfigurePageRouteRoute,+ secretManagerIntegrationsGitlabAuthorizePageRouteRoute:+ secretManagerIntegrationsGitlabAuthorizePageRouteRoute,+ secretManagerIntegrationsGitlabConfigurePageRouteRoute:+ secretManagerIntegrationsGitlabConfigurePageRouteRoute,+ secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute:+ secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute,+ secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute:+ secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute,+ secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute:+ secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute,+ secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute:+ secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute,+ secretManagerIntegrationsHerokuConfigurePageRouteRoute:+ secretManagerIntegrationsHerokuConfigurePageRouteRoute,+ secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute:+ secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute,+ secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute:+ secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute,+ secretManagerIntegrationsNetlifyConfigurePageRouteRoute:+ secretManagerIntegrationsNetlifyConfigurePageRouteRoute,+ secretManagerIntegrationsNorthflankAuthorizePageRouteRoute:+ secretManagerIntegrationsNorthflankAuthorizePageRouteRoute,+ secretManagerIntegrationsNorthflankConfigurePageRouteRoute:+ secretManagerIntegrationsNorthflankConfigurePageRouteRoute,+ secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute:+ secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute,+ secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute:+ secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute,+ secretManagerIntegrationsQoveryAuthorizePageRouteRoute:+ secretManagerIntegrationsQoveryAuthorizePageRouteRoute,+ secretManagerIntegrationsQoveryConfigurePageRouteRoute:+ secretManagerIntegrationsQoveryConfigurePageRouteRoute,+ secretManagerIntegrationsRailwayAuthorizePageRouteRoute:+ secretManagerIntegrationsRailwayAuthorizePageRouteRoute,+ secretManagerIntegrationsRailwayConfigurePageRouteRoute:+ secretManagerIntegrationsRailwayConfigurePageRouteRoute,+ secretManagerIntegrationsRenderAuthorizePageRouteRoute:+ secretManagerIntegrationsRenderAuthorizePageRouteRoute,+ secretManagerIntegrationsRenderConfigurePageRouteRoute:+ secretManagerIntegrationsRenderConfigurePageRouteRoute,+ secretManagerIntegrationsRundeckAuthorizePageRouteRoute:+ secretManagerIntegrationsRundeckAuthorizePageRouteRoute,+ secretManagerIntegrationsRundeckConfigurePageRouteRoute:+ secretManagerIntegrationsRundeckConfigurePageRouteRoute,+ secretManagerIntegrationsSupabaseAuthorizePageRouteRoute:+ secretManagerIntegrationsSupabaseAuthorizePageRouteRoute,+ secretManagerIntegrationsSupabaseConfigurePageRouteRoute:+ secretManagerIntegrationsSupabaseConfigurePageRouteRoute,+ secretManagerIntegrationsTeamcityAuthorizePageRouteRoute:+ secretManagerIntegrationsTeamcityAuthorizePageRouteRoute,+ secretManagerIntegrationsTeamcityConfigurePageRouteRoute:+ secretManagerIntegrationsTeamcityConfigurePageRouteRoute,+ secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute:+ secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute,+ secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute:+ secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute,+ secretManagerIntegrationsTravisCIAuthorizePageRouteRoute:+ secretManagerIntegrationsTravisCIAuthorizePageRouteRoute,+ secretManagerIntegrationsTravisCIConfigurePageRouteRoute:+ secretManagerIntegrationsTravisCIConfigurePageRouteRoute,+ secretManagerIntegrationsVercelConfigurePageRouteRoute:+ secretManagerIntegrationsVercelConfigurePageRouteRoute,+ secretManagerIntegrationsWindmillAuthorizePageRouteRoute:+ secretManagerIntegrationsWindmillAuthorizePageRouteRoute,+ secretManagerIntegrationsWindmillConfigurePageRouteRoute:+ secretManagerIntegrationsWindmillConfigurePageRouteRoute,+ secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute:+ secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute,+ secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute:+ secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute,+ secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute:+ secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute,+ secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute:+ secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute,+ secretManagerIntegrationsGithubOauthCallbackPageRouteRoute:+ secretManagerIntegrationsGithubOauthCallbackPageRouteRoute,+ secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute:+ secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute,+ secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute:+ secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute,+ secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute:+ secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute,+ secretManagerIntegrationsVercelOauthCallbackPageRouteRoute:+ secretManagerIntegrationsVercelOauthCallbackPageRouteRoute,}const AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRouteWithChildren =@@ -1633,6 +3240,7 @@ const AuthenticateInjectOrgDetailsSshProjectIdRouteWithChildren =)interface middlewaresInjectOrgDetailsRouteChildren {+ AuthenticateInjectOrgDetailsIntegrationsRoute: typeof AuthenticateInjectOrgDetailsIntegrationsRouteWithChildrenAuthenticateInjectOrgDetailsOrganizationRoute: typeof AuthenticateInjectOrgDetailsOrganizationRouteWithChildrenAuthenticateInjectOrgDetailsCertManagerProjectIdRoute: typeof AuthenticateInjectOrgDetailsCertManagerProjectIdRouteWithChildrenAuthenticateInjectOrgDetailsKmsProjectIdRoute: typeof AuthenticateInjectOrgDetailsKmsProjectIdRouteWithChildren@@ -1642,6 +3250,8 @@ interface middlewaresInjectOrgDetailsRouteChildren {const middlewaresInjectOrgDetailsRouteChildren: middlewaresInjectOrgDetailsRouteChildren ={+ AuthenticateInjectOrgDetailsIntegrationsRoute:+ AuthenticateInjectOrgDetailsIntegrationsRouteWithChildren,AuthenticateInjectOrgDetailsOrganizationRoute:AuthenticateInjectOrgDetailsOrganizationRouteWithChildren,AuthenticateInjectOrgDetailsCertManagerProjectIdRoute:@@ -1820,6 +3430,7 @@ export interface FileRoutesByFullPath {'/login/sso': typeof authLoginSsoPageRouteRoute'/signup/sso': typeof authSignUpSsoPageRouteRoute'/shared/secret/$secretId': typeof publicViewSharedSecretByIDPageRouteRoute+ '/integrations': typeof AuthenticateInjectOrgDetailsIntegrationsRouteWithChildren'/organization': typeof organizationLayoutRouteWithChildren'/admin/': typeof adminOverviewPageRouteRoute'/personal-settings/': typeof userPersonalSettingsPageRouteRoute@@ -1857,6 +3468,15 @@ export interface FileRoutesByFullPath {'/ssh/$projectId/overview': typeof sshOverviewPageRouteRoute'/ssh/$projectId/settings': typeof sshSettingsPageRouteRoute'/cert-manager/$projectId/access-management': typeof projectAccessControlPageRouteCertManagerRoute+ '/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute+ '/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute+ '/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsRouteBitbucketOauthRedirectRoute+ '/integrations/gcp-secret-manager/oauth2/callback': typeof secretManagerIntegrationsRouteGcpOauthRedirectRoute+ '/integrations/github/oauth2/callback': typeof secretManagerIntegrationsRouteGithubOauthRedirectRoute+ '/integrations/gitlab/oauth2/callback': typeof secretManagerIntegrationsRouteGitlabOauthRedirectRoute+ '/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsRouteHerokuOauthRedirectRoute+ '/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsRouteNetlifyOauthRedirectRoute+ '/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsRouteVercelOauthRedirectRoute'/kms/$projectId/access-management': typeof projectAccessControlPageRouteKmsRoute'/secret-manager/$projectId/access-management': typeof projectAccessControlPageRouteSecretManagerRoute'/secret-manager/$projectId/integrations': typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRouteWithChildren@@ -1864,6 +3484,7 @@ export interface FileRoutesByFullPath {'/secret-manager/$projectId/integrations/': typeof secretManagerIntegrationsListPageRouteRoute'/cert-manager/$projectId/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute'/secret-manager/$projectId/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute+ '/secret-manager/$projectId/integrations/select-integration-auth': typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute'/secret-manager/$projectId/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute'/ssh/$projectId/ca/$caId': typeof sshSshCaByIDPageRouteRoute'/cert-manager/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteCertManagerRoute@@ -1880,6 +3501,79 @@ export interface FileRoutesByFullPath {'/ssh/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteSshRoute'/ssh/$projectId/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteSshRoute'/organization/app-connections/github/oauth/callback': typeof organizationAppConnectionsGithubOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/aws-parameter-store/authorize': typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/aws-parameter-store/create': typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/aws-secret-manager/authorize': typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/aws-secret-manager/create': typeof secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-app-configuration/create': typeof secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-devops/authorize': typeof secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-devops/create': typeof secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-key-vault/create': typeof secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/bitbucket/create': typeof secretManagerIntegrationsBitbucketConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/checkly/authorize': typeof secretManagerIntegrationsChecklyAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/checkly/create': typeof secretManagerIntegrationsChecklyConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/circleci/authorize': typeof secretManagerIntegrationsCircleCIAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/circleci/create': typeof secretManagerIntegrationsCircleCIConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/cloud-66/authorize': typeof secretManagerIntegrationsCloud66AuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/cloud-66/create': typeof secretManagerIntegrationsCloud66ConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-pages/authorize': typeof secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-pages/create': typeof secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-workers/authorize': typeof secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-workers/create': typeof secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/codefresh/authorize': typeof secretManagerIntegrationsCodefreshAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/codefresh/create': typeof secretManagerIntegrationsCodefreshConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/databricks/authorize': typeof secretManagerIntegrationsDatabricksAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/databricks/create': typeof secretManagerIntegrationsDatabricksConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/digital-ocean-app-platform/authorize': typeof secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/digital-ocean-app-platform/create': typeof secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/flyio/authorize': typeof secretManagerIntegrationsFlyioAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/flyio/create': typeof secretManagerIntegrationsFlyioConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/gcp-secret-manager/authorize': typeof secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/gcp-secret-manager/create': typeof secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/github/auth-mode-selection': typeof secretManagerIntegrationsGithubAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/github/create': typeof secretManagerIntegrationsGithubConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/gitlab/authorize': typeof secretManagerIntegrationsGitlabAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/gitlab/create': typeof secretManagerIntegrationsGitlabConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/hashicorp-vault/authorize': typeof secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/hashicorp-vault/create': typeof secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/hasura-cloud/authorize': typeof secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/hasura-cloud/create': typeof secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/heroku/create': typeof secretManagerIntegrationsHerokuConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/laravel-forge/authorize': typeof secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/laravel-forge/create': typeof secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/netlify/create': typeof secretManagerIntegrationsNetlifyConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/northflank/authorize': typeof secretManagerIntegrationsNorthflankAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/northflank/create': typeof secretManagerIntegrationsNorthflankConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/octopus-deploy/authorize': typeof secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/octopus-deploy/create': typeof secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/qovery/authorize': typeof secretManagerIntegrationsQoveryAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/qovery/create': typeof secretManagerIntegrationsQoveryConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/railway/authorize': typeof secretManagerIntegrationsRailwayAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/railway/create': typeof secretManagerIntegrationsRailwayConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/render/authorize': typeof secretManagerIntegrationsRenderAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/render/create': typeof secretManagerIntegrationsRenderConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/rundeck/authorize': typeof secretManagerIntegrationsRundeckAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/rundeck/create': typeof secretManagerIntegrationsRundeckConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/supabase/authorize': typeof secretManagerIntegrationsSupabaseAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/supabase/create': typeof secretManagerIntegrationsSupabaseConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/teamcity/authorize': typeof secretManagerIntegrationsTeamcityAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/teamcity/create': typeof secretManagerIntegrationsTeamcityConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/terraform-cloud/authorize': typeof secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/terraform-cloud/create': typeof secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/travisci/authorize': typeof secretManagerIntegrationsTravisCIAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/travisci/create': typeof secretManagerIntegrationsTravisCIConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/vercel/create': typeof secretManagerIntegrationsVercelConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/windmill/authorize': typeof secretManagerIntegrationsWindmillAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/windmill/create': typeof secretManagerIntegrationsWindmillConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback': typeof secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/github/oauth2/callback': typeof secretManagerIntegrationsGithubOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/gitlab/oauth2/callback': typeof secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsVercelOauthCallbackPageRouteRoute}export interface FileRoutesByTo {@@ -1902,6 +3596,7 @@ export interface FileRoutesByTo {'/login/sso': typeof authLoginSsoPageRouteRoute'/signup/sso': typeof authSignUpSsoPageRouteRoute'/shared/secret/$secretId': typeof publicViewSharedSecretByIDPageRouteRoute+ '/integrations': typeof AuthenticateInjectOrgDetailsIntegrationsRouteWithChildren'/organization': typeof organizationLayoutRouteWithChildren'/login/provider/error': typeof authProviderErrorPageRouteRoute'/login/provider/success': typeof authProviderSuccessPageRouteRoute@@ -1937,12 +3632,22 @@ export interface FileRoutesByTo {'/ssh/$projectId/overview': typeof sshOverviewPageRouteRoute'/ssh/$projectId/settings': typeof sshSettingsPageRouteRoute'/cert-manager/$projectId/access-management': typeof projectAccessControlPageRouteCertManagerRoute+ '/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute+ '/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute+ '/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsRouteBitbucketOauthRedirectRoute+ '/integrations/gcp-secret-manager/oauth2/callback': typeof secretManagerIntegrationsRouteGcpOauthRedirectRoute+ '/integrations/github/oauth2/callback': typeof secretManagerIntegrationsRouteGithubOauthRedirectRoute+ '/integrations/gitlab/oauth2/callback': typeof secretManagerIntegrationsRouteGitlabOauthRedirectRoute+ '/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsRouteHerokuOauthRedirectRoute+ '/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsRouteNetlifyOauthRedirectRoute+ '/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsRouteVercelOauthRedirectRoute'/kms/$projectId/access-management': typeof projectAccessControlPageRouteKmsRoute'/secret-manager/$projectId/access-management': typeof projectAccessControlPageRouteSecretManagerRoute'/ssh/$projectId/access-management': typeof projectAccessControlPageRouteSshRoute'/secret-manager/$projectId/integrations': typeof secretManagerIntegrationsListPageRouteRoute'/cert-manager/$projectId/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute'/secret-manager/$projectId/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute+ '/secret-manager/$projectId/integrations/select-integration-auth': typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute'/secret-manager/$projectId/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute'/ssh/$projectId/ca/$caId': typeof sshSshCaByIDPageRouteRoute'/cert-manager/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteCertManagerRoute@@ -1959,6 +3664,79 @@ export interface FileRoutesByTo {'/ssh/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteSshRoute'/ssh/$projectId/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteSshRoute'/organization/app-connections/github/oauth/callback': typeof organizationAppConnectionsGithubOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/aws-parameter-store/authorize': typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/aws-parameter-store/create': typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/aws-secret-manager/authorize': typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/aws-secret-manager/create': typeof secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-app-configuration/create': typeof secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-devops/authorize': typeof secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-devops/create': typeof secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-key-vault/create': typeof secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/bitbucket/create': typeof secretManagerIntegrationsBitbucketConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/checkly/authorize': typeof secretManagerIntegrationsChecklyAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/checkly/create': typeof secretManagerIntegrationsChecklyConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/circleci/authorize': typeof secretManagerIntegrationsCircleCIAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/circleci/create': typeof secretManagerIntegrationsCircleCIConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/cloud-66/authorize': typeof secretManagerIntegrationsCloud66AuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/cloud-66/create': typeof secretManagerIntegrationsCloud66ConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-pages/authorize': typeof secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-pages/create': typeof secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-workers/authorize': typeof secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/cloudflare-workers/create': typeof secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/codefresh/authorize': typeof secretManagerIntegrationsCodefreshAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/codefresh/create': typeof secretManagerIntegrationsCodefreshConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/databricks/authorize': typeof secretManagerIntegrationsDatabricksAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/databricks/create': typeof secretManagerIntegrationsDatabricksConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/digital-ocean-app-platform/authorize': typeof secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/digital-ocean-app-platform/create': typeof secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/flyio/authorize': typeof secretManagerIntegrationsFlyioAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/flyio/create': typeof secretManagerIntegrationsFlyioConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/gcp-secret-manager/authorize': typeof secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/gcp-secret-manager/create': typeof secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/github/auth-mode-selection': typeof secretManagerIntegrationsGithubAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/github/create': typeof secretManagerIntegrationsGithubConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/gitlab/authorize': typeof secretManagerIntegrationsGitlabAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/gitlab/create': typeof secretManagerIntegrationsGitlabConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/hashicorp-vault/authorize': typeof secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/hashicorp-vault/create': typeof secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/hasura-cloud/authorize': typeof secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/hasura-cloud/create': typeof secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/heroku/create': typeof secretManagerIntegrationsHerokuConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/laravel-forge/authorize': typeof secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/laravel-forge/create': typeof secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/netlify/create': typeof secretManagerIntegrationsNetlifyConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/northflank/authorize': typeof secretManagerIntegrationsNorthflankAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/northflank/create': typeof secretManagerIntegrationsNorthflankConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/octopus-deploy/authorize': typeof secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/octopus-deploy/create': typeof secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/qovery/authorize': typeof secretManagerIntegrationsQoveryAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/qovery/create': typeof secretManagerIntegrationsQoveryConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/railway/authorize': typeof secretManagerIntegrationsRailwayAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/railway/create': typeof secretManagerIntegrationsRailwayConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/render/authorize': typeof secretManagerIntegrationsRenderAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/render/create': typeof secretManagerIntegrationsRenderConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/rundeck/authorize': typeof secretManagerIntegrationsRundeckAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/rundeck/create': typeof secretManagerIntegrationsRundeckConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/supabase/authorize': typeof secretManagerIntegrationsSupabaseAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/supabase/create': typeof secretManagerIntegrationsSupabaseConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/teamcity/authorize': typeof secretManagerIntegrationsTeamcityAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/teamcity/create': typeof secretManagerIntegrationsTeamcityConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/terraform-cloud/authorize': typeof secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/terraform-cloud/create': typeof secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/travisci/authorize': typeof secretManagerIntegrationsTravisCIAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/travisci/create': typeof secretManagerIntegrationsTravisCIConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/vercel/create': typeof secretManagerIntegrationsVercelConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/windmill/authorize': typeof secretManagerIntegrationsWindmillAuthorizePageRouteRoute+ '/secret-manager/$projectId/integrations/windmill/create': typeof secretManagerIntegrationsWindmillConfigurePageRouteRoute+ '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback': typeof secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/github/oauth2/callback': typeof secretManagerIntegrationsGithubOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/gitlab/oauth2/callback': typeof secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute+ '/secret-manager/$projectId/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsVercelOauthCallbackPageRouteRoute}export interface FileRoutesById {@@ -1986,6 +3764,7 @@ export interface FileRoutesById {'/_restrict-login-signup/login/sso': typeof authLoginSsoPageRouteRoute'/_restrict-login-signup/signup/sso': typeof authSignUpSsoPageRouteRoute'/shared/secret/$secretId': typeof publicViewSharedSecretByIDPageRouteRoute+ '/_authenticate/_inject-org-details/integrations': typeof AuthenticateInjectOrgDetailsIntegrationsRouteWithChildren'/_authenticate/_inject-org-details/organization': typeof AuthenticateInjectOrgDetailsOrganizationRouteWithChildren'/_authenticate/admin/_admin-layout': typeof adminLayoutRouteWithChildren'/_authenticate/personal-settings/_layout': typeof userLayoutRouteWithChildren@@ -2030,6 +3809,15 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/overview': typeof sshOverviewPageRouteRoute'/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/settings': typeof sshSettingsPageRouteRoute'/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/access-management': typeof projectAccessControlPageRouteCertManagerRoute+ '/_authenticate/_inject-org-details/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsRouteAzureAppConfigurationsOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsRouteAzureKeyVaultOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsRouteBitbucketOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/gcp-secret-manager/oauth2/callback': typeof secretManagerIntegrationsRouteGcpOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/github/oauth2/callback': typeof secretManagerIntegrationsRouteGithubOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/gitlab/oauth2/callback': typeof secretManagerIntegrationsRouteGitlabOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsRouteHerokuOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsRouteNetlifyOauthRedirectRoute+ '/_authenticate/_inject-org-details/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsRouteVercelOauthRedirectRoute'/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/access-management': typeof projectAccessControlPageRouteKmsRoute'/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/access-management': typeof projectAccessControlPageRouteSecretManagerRoute'/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations': typeof AuthenticateInjectOrgDetailsSecretManagerProjectIdSecretManagerLayoutIntegrationsRouteWithChildren@@ -2037,6 +3825,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/': typeof secretManagerIntegrationsListPageRouteRoute'/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute'/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth': typeof secretManagerIntegrationsSelectIntegrationAuthPageRouteRoute'/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute'/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/ca/$caId': typeof sshSshCaByIDPageRouteRoute'/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteCertManagerRoute@@ -2053,6 +3842,79 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/members/$membershipId': typeof projectMemberDetailsByIDPageRouteSshRoute'/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteSshRoute'/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback': typeof organizationAppConnectionsGithubOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize': typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create': typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize': typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create': typeof secretManagerIntegrationsAwsSecretManagerConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create': typeof secretManagerIntegrationsAzureAppConfigurationConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize': typeof secretManagerIntegrationsAzureDevopsAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create': typeof secretManagerIntegrationsAzureDevopsConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create': typeof secretManagerIntegrationsAzureKeyVaultConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create': typeof secretManagerIntegrationsBitbucketConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize': typeof secretManagerIntegrationsChecklyAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create': typeof secretManagerIntegrationsChecklyConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize': typeof secretManagerIntegrationsCircleCIAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create': typeof secretManagerIntegrationsCircleCIConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize': typeof secretManagerIntegrationsCloud66AuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create': typeof secretManagerIntegrationsCloud66ConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize': typeof secretManagerIntegrationsCloudflarePagesAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create': typeof secretManagerIntegrationsCloudflarePagesConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize': typeof secretManagerIntegrationsCloudflareWorkersAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create': typeof secretManagerIntegrationsCloudflareWorkersConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize': typeof secretManagerIntegrationsCodefreshAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create': typeof secretManagerIntegrationsCodefreshConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize': typeof secretManagerIntegrationsDatabricksAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create': typeof secretManagerIntegrationsDatabricksConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize': typeof secretManagerIntegrationsDigitalOceanAppPlatformAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create': typeof secretManagerIntegrationsDigitalOceanAppPlatformConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize': typeof secretManagerIntegrationsFlyioAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create': typeof secretManagerIntegrationsFlyioConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize': typeof secretManagerIntegrationsGcpSecretManagerAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create': typeof secretManagerIntegrationsGcpSecretManagerConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection': typeof secretManagerIntegrationsGithubAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create': typeof secretManagerIntegrationsGithubConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize': typeof secretManagerIntegrationsGitlabAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create': typeof secretManagerIntegrationsGitlabConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize': typeof secretManagerIntegrationsHashicorpVaultAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create': typeof secretManagerIntegrationsHashicorpVaultConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize': typeof secretManagerIntegrationsHasuraCloudAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create': typeof secretManagerIntegrationsHasuraCloudConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create': typeof secretManagerIntegrationsHerokuConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize': typeof secretManagerIntegrationsLaravelForgeAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create': typeof secretManagerIntegrationsLaravelForgeConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create': typeof secretManagerIntegrationsNetlifyConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize': typeof secretManagerIntegrationsNorthflankAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create': typeof secretManagerIntegrationsNorthflankConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize': typeof secretManagerIntegrationsOctopusDeployAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create': typeof secretManagerIntegrationsOctopusDeployConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize': typeof secretManagerIntegrationsQoveryAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create': typeof secretManagerIntegrationsQoveryConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize': typeof secretManagerIntegrationsRailwayAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create': typeof secretManagerIntegrationsRailwayConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize': typeof secretManagerIntegrationsRenderAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create': typeof secretManagerIntegrationsRenderConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize': typeof secretManagerIntegrationsRundeckAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create': typeof secretManagerIntegrationsRundeckConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize': typeof secretManagerIntegrationsSupabaseAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create': typeof secretManagerIntegrationsSupabaseConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize': typeof secretManagerIntegrationsTeamcityAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create': typeof secretManagerIntegrationsTeamcityConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize': typeof secretManagerIntegrationsTerraformCloudAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create': typeof secretManagerIntegrationsTerraformCloudConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize': typeof secretManagerIntegrationsTravisCIAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create': typeof secretManagerIntegrationsTravisCIConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create': typeof secretManagerIntegrationsVercelConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize': typeof secretManagerIntegrationsWindmillAuthorizePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create': typeof secretManagerIntegrationsWindmillConfigurePageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback': typeof secretManagerIntegrationsAzureAppConfigurationOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback': typeof secretManagerIntegrationsAzureKeyVaultOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback': typeof secretManagerIntegrationsBitbucketOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback': typeof secretManagerIntegrationsGcpSecretManagerOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback': typeof secretManagerIntegrationsGithubOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback': typeof secretManagerIntegrationsGitlabOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback': typeof secretManagerIntegrationsHerokuOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback': typeof secretManagerIntegrationsNetlifyOauthCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback': typeof secretManagerIntegrationsVercelOauthCallbackPageRouteRoute}export interface FileRouteTypes {@@ -2079,6 +3941,7 @@ export interface FileRouteTypes {| '/login/sso'| '/signup/sso'| '/shared/secret/$secretId'+ | '/integrations'| '/organization'| '/admin/'| '/personal-settings/'@@ -2116,6 +3979,15 @@ export interface FileRouteTypes {| '/ssh/$projectId/overview'| '/ssh/$projectId/settings'| '/cert-manager/$projectId/access-management'+ | '/integrations/azure-app-configuration/oauth2/callback'+ | '/integrations/azure-key-vault/oauth2/callback'+ | '/integrations/bitbucket/oauth2/callback'+ | '/integrations/gcp-secret-manager/oauth2/callback'+ | '/integrations/github/oauth2/callback'+ | '/integrations/gitlab/oauth2/callback'+ | '/integrations/heroku/oauth2/callback'+ | '/integrations/netlify/oauth2/callback'+ | '/integrations/vercel/oauth2/callback'| '/kms/$projectId/access-management'| '/secret-manager/$projectId/access-management'| '/secret-manager/$projectId/integrations'@@ -2123,6 +3995,7 @@ export interface FileRouteTypes {| '/secret-manager/$projectId/integrations/'| '/cert-manager/$projectId/ca/$caId'| '/secret-manager/$projectId/integrations/$integrationId'+ | '/secret-manager/$projectId/integrations/select-integration-auth'| '/secret-manager/$projectId/secrets/$envSlug'| '/ssh/$projectId/ca/$caId'| '/cert-manager/$projectId/identities/$identityId'@@ -2139,6 +4012,79 @@ export interface FileRouteTypes {| '/ssh/$projectId/members/$membershipId'| '/ssh/$projectId/roles/$roleSlug'| '/organization/app-connections/github/oauth/callback'+ | '/secret-manager/$projectId/integrations/aws-parameter-store/authorize'+ | '/secret-manager/$projectId/integrations/aws-parameter-store/create'+ | '/secret-manager/$projectId/integrations/aws-secret-manager/authorize'+ | '/secret-manager/$projectId/integrations/aws-secret-manager/create'+ | '/secret-manager/$projectId/integrations/azure-app-configuration/create'+ | '/secret-manager/$projectId/integrations/azure-devops/authorize'+ | '/secret-manager/$projectId/integrations/azure-devops/create'+ | '/secret-manager/$projectId/integrations/azure-key-vault/create'+ | '/secret-manager/$projectId/integrations/bitbucket/create'+ | '/secret-manager/$projectId/integrations/checkly/authorize'+ | '/secret-manager/$projectId/integrations/checkly/create'+ | '/secret-manager/$projectId/integrations/circleci/authorize'+ | '/secret-manager/$projectId/integrations/circleci/create'+ | '/secret-manager/$projectId/integrations/cloud-66/authorize'+ | '/secret-manager/$projectId/integrations/cloud-66/create'+ | '/secret-manager/$projectId/integrations/cloudflare-pages/authorize'+ | '/secret-manager/$projectId/integrations/cloudflare-pages/create'+ | '/secret-manager/$projectId/integrations/cloudflare-workers/authorize'+ | '/secret-manager/$projectId/integrations/cloudflare-workers/create'+ | '/secret-manager/$projectId/integrations/codefresh/authorize'+ | '/secret-manager/$projectId/integrations/codefresh/create'+ | '/secret-manager/$projectId/integrations/databricks/authorize'+ | '/secret-manager/$projectId/integrations/databricks/create'+ | '/secret-manager/$projectId/integrations/digital-ocean-app-platform/authorize'+ | '/secret-manager/$projectId/integrations/digital-ocean-app-platform/create'+ | '/secret-manager/$projectId/integrations/flyio/authorize'+ | '/secret-manager/$projectId/integrations/flyio/create'+ | '/secret-manager/$projectId/integrations/gcp-secret-manager/authorize'+ | '/secret-manager/$projectId/integrations/gcp-secret-manager/create'+ | '/secret-manager/$projectId/integrations/github/auth-mode-selection'+ | '/secret-manager/$projectId/integrations/github/create'+ | '/secret-manager/$projectId/integrations/gitlab/authorize'+ | '/secret-manager/$projectId/integrations/gitlab/create'+ | '/secret-manager/$projectId/integrations/hashicorp-vault/authorize'+ | '/secret-manager/$projectId/integrations/hashicorp-vault/create'+ | '/secret-manager/$projectId/integrations/hasura-cloud/authorize'+ | '/secret-manager/$projectId/integrations/hasura-cloud/create'+ | '/secret-manager/$projectId/integrations/heroku/create'+ | '/secret-manager/$projectId/integrations/laravel-forge/authorize'+ | '/secret-manager/$projectId/integrations/laravel-forge/create'+ | '/secret-manager/$projectId/integrations/netlify/create'+ | '/secret-manager/$projectId/integrations/northflank/authorize'+ | '/secret-manager/$projectId/integrations/northflank/create'+ | '/secret-manager/$projectId/integrations/octopus-deploy/authorize'+ | '/secret-manager/$projectId/integrations/octopus-deploy/create'+ | '/secret-manager/$projectId/integrations/qovery/authorize'+ | '/secret-manager/$projectId/integrations/qovery/create'+ | '/secret-manager/$projectId/integrations/railway/authorize'+ | '/secret-manager/$projectId/integrations/railway/create'+ | '/secret-manager/$projectId/integrations/render/authorize'+ | '/secret-manager/$projectId/integrations/render/create'+ | '/secret-manager/$projectId/integrations/rundeck/authorize'+ | '/secret-manager/$projectId/integrations/rundeck/create'+ | '/secret-manager/$projectId/integrations/supabase/authorize'+ | '/secret-manager/$projectId/integrations/supabase/create'+ | '/secret-manager/$projectId/integrations/teamcity/authorize'+ | '/secret-manager/$projectId/integrations/teamcity/create'+ | '/secret-manager/$projectId/integrations/terraform-cloud/authorize'+ | '/secret-manager/$projectId/integrations/terraform-cloud/create'+ | '/secret-manager/$projectId/integrations/travisci/authorize'+ | '/secret-manager/$projectId/integrations/travisci/create'+ | '/secret-manager/$projectId/integrations/vercel/create'+ | '/secret-manager/$projectId/integrations/windmill/authorize'+ | '/secret-manager/$projectId/integrations/windmill/create'+ | '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback'+ | '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback'+ | '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback'+ | '/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback'+ | '/secret-manager/$projectId/integrations/github/oauth2/callback'+ | '/secret-manager/$projectId/integrations/gitlab/oauth2/callback'+ | '/secret-manager/$projectId/integrations/heroku/oauth2/callback'+ | '/secret-manager/$projectId/integrations/netlify/oauth2/callback'+ | '/secret-manager/$projectId/integrations/vercel/oauth2/callback'fileRoutesByTo: FileRoutesByToto:| '/'@@ -2160,6 +4106,7 @@ export interface FileRouteTypes {| '/login/sso'| '/signup/sso'| '/shared/secret/$secretId'+ | '/integrations'| '/organization'| '/login/provider/error'| '/login/provider/success'@@ -2195,12 +4142,22 @@ export interface FileRouteTypes {| '/ssh/$projectId/overview'| '/ssh/$projectId/settings'| '/cert-manager/$projectId/access-management'+ | '/integrations/azure-app-configuration/oauth2/callback'+ | '/integrations/azure-key-vault/oauth2/callback'+ | '/integrations/bitbucket/oauth2/callback'+ | '/integrations/gcp-secret-manager/oauth2/callback'+ | '/integrations/github/oauth2/callback'+ | '/integrations/gitlab/oauth2/callback'+ | '/integrations/heroku/oauth2/callback'+ | '/integrations/netlify/oauth2/callback'+ | '/integrations/vercel/oauth2/callback'| '/kms/$projectId/access-management'| '/secret-manager/$projectId/access-management'| '/ssh/$projectId/access-management'| '/secret-manager/$projectId/integrations'| '/cert-manager/$projectId/ca/$caId'| '/secret-manager/$projectId/integrations/$integrationId'+ | '/secret-manager/$projectId/integrations/select-integration-auth'| '/secret-manager/$projectId/secrets/$envSlug'| '/ssh/$projectId/ca/$caId'| '/cert-manager/$projectId/identities/$identityId'@@ -2217,6 +4174,79 @@ export interface FileRouteTypes {| '/ssh/$projectId/members/$membershipId'| '/ssh/$projectId/roles/$roleSlug'| '/organization/app-connections/github/oauth/callback'+ | '/secret-manager/$projectId/integrations/aws-parameter-store/authorize'+ | '/secret-manager/$projectId/integrations/aws-parameter-store/create'+ | '/secret-manager/$projectId/integrations/aws-secret-manager/authorize'+ | '/secret-manager/$projectId/integrations/aws-secret-manager/create'+ | '/secret-manager/$projectId/integrations/azure-app-configuration/create'+ | '/secret-manager/$projectId/integrations/azure-devops/authorize'+ | '/secret-manager/$projectId/integrations/azure-devops/create'+ | '/secret-manager/$projectId/integrations/azure-key-vault/create'+ | '/secret-manager/$projectId/integrations/bitbucket/create'+ | '/secret-manager/$projectId/integrations/checkly/authorize'+ | '/secret-manager/$projectId/integrations/checkly/create'+ | '/secret-manager/$projectId/integrations/circleci/authorize'+ | '/secret-manager/$projectId/integrations/circleci/create'+ | '/secret-manager/$projectId/integrations/cloud-66/authorize'+ | '/secret-manager/$projectId/integrations/cloud-66/create'+ | '/secret-manager/$projectId/integrations/cloudflare-pages/authorize'+ | '/secret-manager/$projectId/integrations/cloudflare-pages/create'+ | '/secret-manager/$projectId/integrations/cloudflare-workers/authorize'+ | '/secret-manager/$projectId/integrations/cloudflare-workers/create'+ | '/secret-manager/$projectId/integrations/codefresh/authorize'+ | '/secret-manager/$projectId/integrations/codefresh/create'+ | '/secret-manager/$projectId/integrations/databricks/authorize'+ | '/secret-manager/$projectId/integrations/databricks/create'+ | '/secret-manager/$projectId/integrations/digital-ocean-app-platform/authorize'+ | '/secret-manager/$projectId/integrations/digital-ocean-app-platform/create'+ | '/secret-manager/$projectId/integrations/flyio/authorize'+ | '/secret-manager/$projectId/integrations/flyio/create'+ | '/secret-manager/$projectId/integrations/gcp-secret-manager/authorize'+ | '/secret-manager/$projectId/integrations/gcp-secret-manager/create'+ | '/secret-manager/$projectId/integrations/github/auth-mode-selection'+ | '/secret-manager/$projectId/integrations/github/create'+ | '/secret-manager/$projectId/integrations/gitlab/authorize'+ | '/secret-manager/$projectId/integrations/gitlab/create'+ | '/secret-manager/$projectId/integrations/hashicorp-vault/authorize'+ | '/secret-manager/$projectId/integrations/hashicorp-vault/create'+ | '/secret-manager/$projectId/integrations/hasura-cloud/authorize'+ | '/secret-manager/$projectId/integrations/hasura-cloud/create'+ | '/secret-manager/$projectId/integrations/heroku/create'+ | '/secret-manager/$projectId/integrations/laravel-forge/authorize'+ | '/secret-manager/$projectId/integrations/laravel-forge/create'+ | '/secret-manager/$projectId/integrations/netlify/create'+ | '/secret-manager/$projectId/integrations/northflank/authorize'+ | '/secret-manager/$projectId/integrations/northflank/create'+ | '/secret-manager/$projectId/integrations/octopus-deploy/authorize'+ | '/secret-manager/$projectId/integrations/octopus-deploy/create'+ | '/secret-manager/$projectId/integrations/qovery/authorize'+ | '/secret-manager/$projectId/integrations/qovery/create'+ | '/secret-manager/$projectId/integrations/railway/authorize'+ | '/secret-manager/$projectId/integrations/railway/create'+ | '/secret-manager/$projectId/integrations/render/authorize'+ | '/secret-manager/$projectId/integrations/render/create'+ | '/secret-manager/$projectId/integrations/rundeck/authorize'+ | '/secret-manager/$projectId/integrations/rundeck/create'+ | '/secret-manager/$projectId/integrations/supabase/authorize'+ | '/secret-manager/$projectId/integrations/supabase/create'+ | '/secret-manager/$projectId/integrations/teamcity/authorize'+ | '/secret-manager/$projectId/integrations/teamcity/create'+ | '/secret-manager/$projectId/integrations/terraform-cloud/authorize'+ | '/secret-manager/$projectId/integrations/terraform-cloud/create'+ | '/secret-manager/$projectId/integrations/travisci/authorize'+ | '/secret-manager/$projectId/integrations/travisci/create'+ | '/secret-manager/$projectId/integrations/vercel/create'+ | '/secret-manager/$projectId/integrations/windmill/authorize'+ | '/secret-manager/$projectId/integrations/windmill/create'+ | '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback'+ | '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback'+ | '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback'+ | '/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback'+ | '/secret-manager/$projectId/integrations/github/oauth2/callback'+ | '/secret-manager/$projectId/integrations/gitlab/oauth2/callback'+ | '/secret-manager/$projectId/integrations/heroku/oauth2/callback'+ | '/secret-manager/$projectId/integrations/netlify/oauth2/callback'+ | '/secret-manager/$projectId/integrations/vercel/oauth2/callback'id:| '__root__'| '/'@@ -2242,6 +4272,7 @@ export interface FileRouteTypes {| '/_restrict-login-signup/login/sso'| '/_restrict-login-signup/signup/sso'| '/shared/secret/$secretId'+ | '/_authenticate/_inject-org-details/integrations'| '/_authenticate/_inject-org-details/organization'| '/_authenticate/admin/_admin-layout'| '/_authenticate/personal-settings/_layout'@@ -2286,6 +4317,15 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/overview'| '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/settings'| '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/access-management'+ | '/_authenticate/_inject-org-details/integrations/azure-app-configuration/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/azure-key-vault/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/bitbucket/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/gcp-secret-manager/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/github/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/gitlab/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/heroku/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/netlify/oauth2/callback'+ | '/_authenticate/_inject-org-details/integrations/vercel/oauth2/callback'| '/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/access-management'| '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/access-management'| '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations'@@ -2293,6 +4333,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/'| '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/ca/$caId'| '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/$integrationId'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth'| '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/secrets/$envSlug'| '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/ca/$caId'| '/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout/identities/$identityId'@@ -2309,6 +4350,79 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/members/$membershipId'| '/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/roles/$roleSlug'| '/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback'+ | '/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback'fileRoutesById: FileRoutesById}@@ -2403,6 +4517,7 @@ export const routeTree = rootRoute"filePath": "middlewares/inject-org-details.tsx","parent": "/_authenticate","children": [+ "/_authenticate/_inject-org-details/integrations","/_authenticate/_inject-org-details/organization","/_authenticate/_inject-org-details/cert-manager/$projectId","/_authenticate/_inject-org-details/kms/$projectId",@@ -2475,6 +4590,21 @@ export const routeTree = rootRoute"/shared/secret/$secretId": {"filePath": "public/ViewSharedSecretByIDPage/route.tsx"},+ "/_authenticate/_inject-org-details/integrations": {+ "filePath": "",+ "parent": "/_authenticate/_inject-org-details",+ "children": [+ "/_authenticate/_inject-org-details/integrations/azure-app-configuration/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/azure-key-vault/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/bitbucket/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/gcp-secret-manager/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/github/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/gitlab/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/heroku/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/netlify/oauth2/callback",+ "/_authenticate/_inject-org-details/integrations/vercel/oauth2/callback"+ ]+ },"/_authenticate/_inject-org-details/organization": {"filePath": "","parent": "/_authenticate/_inject-org-details",@@ -2731,6 +4861,42 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-cert-manager.tsx","parent": "/_authenticate/_inject-org-details/cert-manager/$projectId/_cert-manager-layout"},+ "/_authenticate/_inject-org-details/integrations/azure-app-configuration/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/azure-key-vault/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/bitbucket/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-bitbucket-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/gcp-secret-manager/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-gcp-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/github/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-github-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/gitlab/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-gitlab-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/heroku/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-heroku-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/netlify/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-netlify-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },+ "/_authenticate/_inject-org-details/integrations/vercel/oauth2/callback": {+ "filePath": "secret-manager/integrations/route-vercel-oauth-redirect.tsx",+ "parent": "/_authenticate/_inject-org-details/integrations"+ },"/_authenticate/_inject-org-details/kms/$projectId/_kms-layout/access-management": {"filePath": "project/AccessControlPage/route-kms.tsx","parent": "/_authenticate/_inject-org-details/kms/$projectId/_kms-layout"@@ -2744,7 +4910,81 @@ export const routeTree = rootRoute"parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout","children": ["/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/",- "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/$integrationId"+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/$integrationId",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback",+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback"]},"/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout/access-management": {@@ -2763,6 +5003,10 @@ export const routeTree = rootRoute"filePath": "secret-manager/IntegrationsDetailsByIDPage/route.tsx","parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"},+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth": {+ "filePath": "secret-manager/integrations/SelectIntegrationAuthPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },"/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/secrets/$envSlug": {"filePath": "secret-manager/SecretDashboardPage/route.tsx","parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout"@@ -2826,6 +5070,298 @@ export const routeTree = rootRoute"/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback": {"filePath": "organization/AppConnections/GithubOauthCallbackPage/route.tsx","parent": "/_authenticate/_inject-org-details/organization/_layout"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize": {+ "filePath": "secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create": {+ "filePath": "secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize": {+ "filePath": "secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create": {+ "filePath": "secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create": {+ "filePath": "secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize": {+ "filePath": "secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create": {+ "filePath": "secret-manager/integrations/AzureDevopsConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create": {+ "filePath": "secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create": {+ "filePath": "secret-manager/integrations/BitbucketConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize": {+ "filePath": "secret-manager/integrations/ChecklyAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create": {+ "filePath": "secret-manager/integrations/ChecklyConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize": {+ "filePath": "secret-manager/integrations/CircleCIAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create": {+ "filePath": "secret-manager/integrations/CircleCIConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize": {+ "filePath": "secret-manager/integrations/Cloud66AuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create": {+ "filePath": "secret-manager/integrations/Cloud66ConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize": {+ "filePath": "secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create": {+ "filePath": "secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize": {+ "filePath": "secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create": {+ "filePath": "secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize": {+ "filePath": "secret-manager/integrations/CodefreshAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create": {+ "filePath": "secret-manager/integrations/CodefreshConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize": {+ "filePath": "secret-manager/integrations/DatabricksAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create": {+ "filePath": "secret-manager/integrations/DatabricksConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize": {+ "filePath": "secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create": {+ "filePath": "secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize": {+ "filePath": "secret-manager/integrations/FlyioAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create": {+ "filePath": "secret-manager/integrations/FlyioConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize": {+ "filePath": "secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create": {+ "filePath": "secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection": {+ "filePath": "secret-manager/integrations/GithubAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/create": {+ "filePath": "secret-manager/integrations/GithubConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize": {+ "filePath": "secret-manager/integrations/GitlabAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create": {+ "filePath": "secret-manager/integrations/GitlabConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize": {+ "filePath": "secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create": {+ "filePath": "secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize": {+ "filePath": "secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create": {+ "filePath": "secret-manager/integrations/HasuraCloudConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create": {+ "filePath": "secret-manager/integrations/HerokuConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize": {+ "filePath": "secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create": {+ "filePath": "secret-manager/integrations/LaravelForgeConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create": {+ "filePath": "secret-manager/integrations/NetlifyConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize": {+ "filePath": "secret-manager/integrations/NorthflankAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create": {+ "filePath": "secret-manager/integrations/NorthflankConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize": {+ "filePath": "secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create": {+ "filePath": "secret-manager/integrations/OctopusDeployConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize": {+ "filePath": "secret-manager/integrations/QoveryAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create": {+ "filePath": "secret-manager/integrations/QoveryConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize": {+ "filePath": "secret-manager/integrations/RailwayAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create": {+ "filePath": "secret-manager/integrations/RailwayConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize": {+ "filePath": "secret-manager/integrations/RenderAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/render/create": {+ "filePath": "secret-manager/integrations/RenderConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize": {+ "filePath": "secret-manager/integrations/RundeckAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create": {+ "filePath": "secret-manager/integrations/RundeckConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize": {+ "filePath": "secret-manager/integrations/SupabaseAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create": {+ "filePath": "secret-manager/integrations/SupabaseConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize": {+ "filePath": "secret-manager/integrations/TeamcityAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create": {+ "filePath": "secret-manager/integrations/TeamcityConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize": {+ "filePath": "secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create": {+ "filePath": "secret-manager/integrations/TerraformCloudConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize": {+ "filePath": "secret-manager/integrations/TravisCIAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create": {+ "filePath": "secret-manager/integrations/TravisCIConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create": {+ "filePath": "secret-manager/integrations/VercelConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize": {+ "filePath": "secret-manager/integrations/WindmillAuthorizePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create": {+ "filePath": "secret-manager/integrations/WindmillConfigurePage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback": {+ "filePath": "secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback": {+ "filePath": "secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback": {+ "filePath": "secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback": {+ "filePath": "secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback": {+ "filePath": "secret-manager/integrations/GithubOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback": {+ "filePath": "secret-manager/integrations/GitlabOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback": {+ "filePath": "secret-manager/integrations/HerokuOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback": {+ "filePath": "secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"+ },+ "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback": {+ "filePath": "secret-manager/integrations/VercelOauthCallbackPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations"}}}diff --git a/frontend-v2/src/routes.ts b/frontend-v2/src/routes.tsindex 47417f652b..f1702c784f 100644--- a/frontend-v2/src/routes.ts+++ b/frontend-v2/src/routes.ts@@ -42,7 +42,199 @@ const secretManagerRoutes = route("/secret-manager/$projectId", [route("/settings", "secret-manager/SettingsPage/route.tsx"),route("/integrations", [index("secret-manager/IntegrationsListPage/route.tsx"),- route("/$integrationId", "secret-manager/IntegrationsDetailsByIDPage/route.tsx")+ route("/$integrationId", "secret-manager/IntegrationsDetailsByIDPage/route.tsx"),+ route(+ "/aws-parameter-store/authorize",+ "secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx"+ ),+ route(+ "/aws-parameter-store/create",+ "secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx"+ ),+ route(+ "/aws-secret-manager/authorize",+ "secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx"+ ),+ route(+ "/aws-secret-manager/create",+ "secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx"+ ),+ route(+ "/azure-app-configuration/oauth2/callback",+ "secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx"+ ),+ route(+ "/azure-app-configuration/create",+ "secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx"+ ),+ route(+ "/azure-devops/authorize",+ "secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx"+ ),+ route(+ "/azure-devops/create",+ "secret-manager/integrations/AzureDevopsConfigurePage/route.tsx"+ ),+ route(+ "/azure-key-vault/oauth2/callback",+ "secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx"+ ),+ route(+ "/azure-key-vault/create",+ "secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx"+ ),+ route(+ "/bitbucket/oauth2/callback",+ "secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx"+ ),+ route("/bitbucket/create", "secret-manager/integrations/BitbucketConfigurePage/route.tsx"),+ route("/checkly/authorize", "secret-manager/integrations/ChecklyAuthorizePage/route.tsx"),+ route("/checkly/create", "secret-manager/integrations/ChecklyConfigurePage/route.tsx"),+ route("/circleci/authorize", "secret-manager/integrations/CircleCIAuthorizePage/route.tsx"),+ route("/circleci/create", "secret-manager/integrations/CircleCIConfigurePage/route.tsx"),+ route("/cloud-66/authorize", "secret-manager/integrations/Cloud66AuthorizePage/route.tsx"),+ route("/cloud-66/create", "secret-manager/integrations/Cloud66ConfigurePage/route.tsx"),+ route(+ "/cloudflare-pages/authorize",+ "secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx"+ ),+ route(+ "/cloudflare-pages/create",+ "secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx"+ ),+ route(+ "/cloudflare-workers/authorize",+ "secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx"+ ),+ route(+ "/cloudflare-workers/create",+ "secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx"+ ),+ route("/codefresh/authorize", "secret-manager/integrations/CodefreshAuthorizePage/route.tsx"),+ route("/codefresh/create", "secret-manager/integrations/CodefreshConfigurePage/route.tsx"),+ route(+ "/databricks/authorize",+ "secret-manager/integrations/DatabricksAuthorizePage/route.tsx"+ ),+ route("/databricks/create", "secret-manager/integrations/DatabricksConfigurePage/route.tsx"),+ route(+ "/digital-ocean-app-platform/authorize",+ "secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx"+ ),+ route(+ "/digital-ocean-app-platform/create",+ "secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx"+ ),+ route("/flyio/authorize", "secret-manager/integrations/FlyioAuthorizePage/route.tsx"),+ route("/flyio/create", "secret-manager/integrations/FlyioConfigurePage/route.tsx"),+ route(+ "/gcp-secret-manager/authorize",+ "secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx"+ ),+ route(+ "/gcp-secret-manager/create",+ "secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx"+ ),+ route(+ "/gcp-secret-manager/oauth2/callback",+ "secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx"+ ),+ route(+ "/github/auth-mode-selection",+ "secret-manager/integrations/GithubAuthorizePage/route.tsx"+ ),+ route("/github/create", "secret-manager/integrations/GithubConfigurePage/route.tsx"),+ route(+ "/select-integration-auth",+ "secret-manager/integrations/SelectIntegrationAuthPage/route.tsx"+ ),+ route(+ "/github/oauth2/callback",+ "secret-manager/integrations/GithubOauthCallbackPage/route.tsx"+ ),+ route("/gitlab/authorize", "secret-manager/integrations/GitlabAuthorizePage/route.tsx"),+ route("/gitlab/create", "secret-manager/integrations/GitlabConfigurePage/route.tsx"),+ route(+ "/gitlab/oauth2/callback",+ "secret-manager/integrations/GitlabOauthCallbackPage/route.tsx"+ ),+ route(+ "/hashicorp-vault/authorize",+ "secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx"+ ),+ route(+ "/hashicorp-vault/create",+ "secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx"+ ),++ route(+ "/hasura-cloud/authorize",+ "secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx"+ ),+ route(+ "/hasura-cloud/create",+ "secret-manager/integrations/HasuraCloudConfigurePage/route.tsx"+ ),+ route(+ "/laravel-forge/authorize",+ "secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx"+ ),+ route(+ "/laravel-forge/create",+ "secret-manager/integrations/LaravelForgeConfigurePage/route.tsx"+ ),+ route(+ "/netlify/oauth2/callback",+ "secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx"+ ),+ route("/netlify/create", "secret-manager/integrations/NetlifyConfigurePage/route.tsx"),+ route(+ "/northflank/authorize",+ "secret-manager/integrations/NorthflankAuthorizePage/route.tsx"+ ),+ route("/northflank/create", "secret-manager/integrations/NorthflankConfigurePage/route.tsx"),+ route(+ "/octopus-deploy/authorize",+ "secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx"+ ),+ route(+ "/octopus-deploy/create",+ "secret-manager/integrations/OctopusDeployConfigurePage/route.tsx"+ ),+ route("/qovery/authorize", "secret-manager/integrations/QoveryAuthorizePage/route.tsx"),+ route("/qovery/create", "secret-manager/integrations/QoveryConfigurePage/route.tsx"),+ route("/railway/authorize", "secret-manager/integrations/RailwayAuthorizePage/route.tsx"),+ route("/railway/create", "secret-manager/integrations/RailwayConfigurePage/route.tsx"),+ route("/render/authorize", "secret-manager/integrations/RenderAuthorizePage/route.tsx"),+ route("/render/create", "secret-manager/integrations/RenderConfigurePage/route.tsx"),+ route("/rundeck/authorize", "secret-manager/integrations/RundeckAuthorizePage/route.tsx"),+ route("/rundeck/create", "secret-manager/integrations/RundeckConfigurePage/route.tsx"),+ route("/supabase/authorize", "secret-manager/integrations/SupabaseAuthorizePage/route.tsx"),+ route("/supabase/create", "secret-manager/integrations/SupabaseConfigurePage/route.tsx"),+ route("/teamcity/authorize", "secret-manager/integrations/TeamcityAuthorizePage/route.tsx"),+ route("/teamcity/create", "secret-manager/integrations/TeamcityConfigurePage/route.tsx"),+ route(+ "/terraform-cloud/authorize",+ "secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx"+ ),+ route(+ "/terraform-cloud/create",+ "secret-manager/integrations/TerraformCloudConfigurePage/route.tsx"+ ),+ route("/travisci/authorize", "secret-manager/integrations/TravisCIAuthorizePage/route.tsx"),+ route("/travisci/create", "secret-manager/integrations/TravisCIConfigurePage/route.tsx"),+ route("/windmill/authorize", "secret-manager/integrations/WindmillAuthorizePage/route.tsx"),+ route("/windmill/create", "secret-manager/integrations/WindmillConfigurePage/route.tsx"),+ route(+ "/vercel/oauth2/callback",+ "secret-manager/integrations/VercelOauthCallbackPage/route.tsx"+ ),+ route("/vercel/create", "secret-manager/integrations/VercelConfigurePage/route.tsx"),+ route(+ "/heroku/oauth2/callback",+ "secret-manager/integrations/HerokuOauthCallbackPage/route.tsx"+ ),+ route("/heroku/create", "secret-manager/integrations/HerokuConfigurePage/route.tsx")]),route("/access-management", "project/AccessControlPage/route-secret-manager.tsx"),route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-secret-manager.tsx"),@@ -51,6 +243,30 @@ const secretManagerRoutes = route("/secret-manager/$projectId", [])]);+const secretManagerIntegrationsRedirect = route("/integrations", [+ route("/heroku/oauth2/callback", "secret-manager/integrations/route-heroku-oauth-redirect.tsx"),+ route(+ "/gcp-secret-manager/oauth2/callback",+ "secret-manager/integrations/route-gcp-oauth-redirect.tsx"+ ),+ route(+ "/bitbucket/oauth2/callback",+ "secret-manager/integrations/route-bitbucket-oauth-redirect.tsx"+ ),+ route("/vercel/oauth2/callback", "secret-manager/integrations/route-vercel-oauth-redirect.tsx"),+ route("/netlify/oauth2/callback", "secret-manager/integrations/route-netlify-oauth-redirect.tsx"),+ route("/gitlab/oauth2/callback", "secret-manager/integrations/route-gitlab-oauth-redirect.tsx"),+ route("/github/oauth2/callback", "secret-manager/integrations/route-github-oauth-redirect.tsx"),+ route(+ "/azure-key-vault/oauth2/callback",+ "secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx"+ ),+ route(+ "/azure-app-configuration/oauth2/callback",+ "secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx"+ )+]);+const certManagerRoutes = route("/cert-manager/$projectId", [layout("cert-manager-layout", "cert-manager/layout.tsx", [route("/overview", "cert-manager/CertificatesPage/route.tsx"),@@ -120,6 +336,7 @@ export const routes = rootRoute("root.tsx", [middleware("inject-org-details.tsx", [organizationRoutes,secretManagerRoutes,+ secretManagerIntegrationsRedirect,certManagerRoutes,kmsRoutes,sshRoutes