Skip to content

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

Fix lint errors, merge conflicts

Tuan Dange548883bbae9
diff --cc backend/src/helpers/integration.ts
index 47c99adaa4,552e918599..196078533c
--- a/backend/src/helpers/integration.ts
+++ b/backend/src/helpers/integration.ts
@@@ -115,53 -116,52 +116,60 @@@ export const syncIntegrationsHelper = a
workspaceId: Types.ObjectId;
environment?: string;
}) => {
- const integrations = await Integration.find({
- workspace: workspaceId,
- ...(environment
- ? {
+ try {
+ const integrations = await Integration.find({
+ workspace: workspaceId,
+ ...(environment
+ ? {
environment,
}
- : {}),
+ : {}),
- isActive: true,
- app: { $ne: null },
- });
-
- // for each workspace integration, sync/push secrets
- // to that integration
- for await (const integration of integrations) {
- // get workspace, environment (shared) secrets
- const secrets = await BotService.getSecrets({
- workspaceId: integration.workspace,
- environment: integration.environment,
- secretPath: integration.secretPath,
+ isActive: true,
+ app: { $ne: null },
});
- // get workspace, environment (shared) secrets comments
- const secretComments = await BotService.getSecretComments({
- workspaceId: integration.workspace,
- environment: integration.environment,
- secretPath: integration.secretPath,
- })
-
- const integrationAuth = await IntegrationAuth.findById(
- integration.integrationAuth
- );
- if (!integrationAuth) throw new Error("Failed to find integration auth");
-
- // get integration auth access token
- const access = await getIntegrationAuthAccessHelper({
- integrationAuthId: integration.integrationAuth,
- });
-
- // sync secrets to integration
- await syncSecrets({
- integration,
- integrationAuth,
- secrets,
- accessId: access.accessId === undefined ? null : access.accessId,
- accessToken: access.accessToken,
- secretComments
- });
+ // for each workspace integration, sync/push secrets
+ // to that integration
+ for await (const integration of integrations) {
+ // get workspace, environment (shared) secrets
+ const secrets = await BotService.getSecrets({
- // issue here?
+ workspaceId: integration.workspace,
+ environment: integration.environment,
+ secretPath: integration.secretPath,
+ });
+
++ // get workspace, environment (shared) secrets comments
++ const secretComments = await BotService.getSecretComments({
++ workspaceId: integration.workspace,
++ environment: integration.environment,
++ secretPath: integration.secretPath,
++ })
++
+ const integrationAuth = await IntegrationAuth.findById(
+ integration.integrationAuth
+ );
- if (!integrationAuth) throw new Error("Failed to find integration auth");
+
++ if (!integrationAuth) throw new Error("Failed to find integration auth");
++
+ // get integration auth access token
+ const access = await getIntegrationAuthAccessHelper({
+ integrationAuthId: integration.integrationAuth,
+ });
+
+ // sync secrets to integration
+ await syncSecrets({
+ integration,
+ integrationAuth,
+ secrets,
+ accessId: access.accessId === undefined ? null : access.accessId,
+ accessToken: access.accessToken,
++ secretComments
+ });
+ }
+ } catch (err) {
+ Sentry.captureException(err);
+ console.log(`syncIntegrationsHelper: failed with [workspaceId=${workspaceId}] [environment=${environment}]`, err) // eslint-disable-line no-use-before-define
+ throw err
}
};
diff --cc backend/src/integrations/apps.ts
index cd243e9d0c,fbbc1b7591..0e5a9bf33c
--- a/backend/src/integrations/apps.ts
+++ b/backend/src/integrations/apps.ts
@@@ -31,12 -40,11 +40,13 @@@ import
INTEGRATION_TRAVISCI,
INTEGRATION_TRAVISCI_API_URL,
INTEGRATION_VERCEL,
- INTEGRATION_VERCEL_API_URL
+ INTEGRATION_VERCEL_API_URL,
- INTEGRATION_CODEFRESH,
- INTEGRATION_CODEFRESH_API_URL,
+ INTEGRATION_WINDMILL,
+ INTEGRATION_WINDMILL_API_URL,
} from "../variables";
+ import { IIntegrationAuth } from "../models";
+ import { Octokit } from "@octokit/rest";
+ import { standardRequest } from "../config/request";
interface App {
name: string;
@@@ -154,8 -181,13 +183,18 @@@ const getApps = async (
accessToken,
});
break;
+ case INTEGRATION_WINDMILL:
+ apps = await getAppsWindmill({
++ accessToken
++ });
++ break;
+ case INTEGRATION_DIGITAL_OCEAN_APP_PLATFORM:
+ apps = await getAppsDigitalOceanAppPlatform({
+ accessToken
+ });
+ break;
+ case INTEGRATION_CLOUD_66:
+ apps = await getAppsCloud66({
accessToken,
});
break;
@@@ -766,102 -941,103 +948,203 @@@ const getAppsCodefresh = async (
};
+/**
+ * Return list of projects for Windmill integration
+ * @param {Object} obj
+ * @param {String} obj.accessToken - access token for Windmill API
+ * @returns {Object[]} apps - names of Windmill workspaces
+ * @returns {String} apps.name - name of Windmill workspace
+ */
+const getAppsWindmill = async ({ accessToken }: { accessToken: string }) => {
+ const { data } = await standardRequest.get(
+ `${INTEGRATION_WINDMILL_API_URL}/workspaces/list`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ );
+
+ // check for write access of secrets in windmill workspaces
+ const writeAccessCheck = data.map(async (app: any) => {
+ try {
+ const userPath = "u/user/variable";
+ const folderPath = "f/folder/variable";
+
+ const { data: writeUser } = await standardRequest.post(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${app.id}/variables/create`,
+ {
+ path: userPath,
+ value: "variable",
+ is_secret: true,
+ description: "variable description"
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ );
+
+ const { data: writeFolder } = await standardRequest.post(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${app.id}/variables/create`,
+ {
+ path: folderPath,
+ value: "variable",
+ is_secret: true,
+ description: "variable description"
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ );
+
+ // is write access is allowed then delete the created secrets from workspace
+ if (writeUser && writeFolder) {
+ await standardRequest.delete(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${app.id}/variables/delete/${userPath}`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ );
+
+ await standardRequest.delete(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${app.id}/variables/delete/${folderPath}`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ );
+
+ return app;
+ } else {
+ return { error: "cannot write secret" };
+ }
+ } catch (err: any) {
+ return { error: err.message };
+ }
+ });
+
+ const appsWriteResponses = await Promise.all(writeAccessCheck);
+ const appsWithWriteAccess = appsWriteResponses.filter((appRes: any) => !appRes.error);
+
+ const apps = appsWithWriteAccess.map((a: any) => {
+ return {
+ name: a.name,
+ appId: a.id,
+ };
+ });
++
++ return apps;
++}
++
+ /**
+ * Return list of applications for DigitalOcean App Platform integration
+ * @param {Object} obj
+ * @param {String} obj.accessToken - personal access token for DigitalOcean
+ * @returns {Object[]} apps - names of DigitalOcean apps
+ * @returns {String} apps.name - name of DigitalOcean app
+ * @returns {String} apps.appId - id of DigitalOcean app
+ */
+ const getAppsDigitalOceanAppPlatform = async ({ accessToken }: { accessToken: string }) => {
+ interface DigitalOceanApp {
+ id: string;
+ owner_uuid: string;
+ spec: Spec;
+ }
+
+ interface Spec {
+ name: string;
+ region: string;
+ envs: Env[];
+ }
+
+ interface Env {
+ key: string;
+ value: string;
+ scope: string;
+ }
+
+ const res = (
+ await standardRequest.get(`${INTEGRATION_DIGITAL_OCEAN_API_URL}/v2/apps`, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json"
+ }
+ })
+ ).data;
+
+ return (res.apps ?? []).map((a: DigitalOceanApp) => ({
+ name: a.spec.name,
+ appId: a.id
+ }));
+ }
+
+ /**
+ * Return list of applications for Cloud66 integration
+ * @param {Object} obj
+ * @param {String} obj.accessToken - personal access token for Cloud66 API
+ * @returns {Object[]} apps - Cloud66 apps
+ * @returns {String} apps.name - name of Cloud66 app
+ * @returns {String} apps.appId - uid of Cloud66 app
+ */
+ const getAppsCloud66 = async ({ accessToken }: { accessToken: string }) => {
+ interface Cloud66Apps {
+ uid: string;
+ name: string;
+ account_id: number;
+ git: string;
+ git_branch: string;
+ environment: string;
+ cloud: string;
+ fqdn: string;
+ language: string;
+ framework: string;
+ status: number;
+ health: number;
+ last_activity: string;
+ last_activity_iso: string;
+ maintenance_mode: boolean;
+ has_loadbalancer: boolean;
+ created_at: string;
+ updated_at: string;
+ deploy_directory: string;
+ cloud_status: string;
+ backend: string;
+ version: string;
+ revision: string;
+ is_busy: boolean;
+ account_name: string;
+ is_cluster: boolean;
+ is_inside_cluster: boolean;
+ cluster_name: any;
+ application_address: string;
+ configstore_namespace: string;
+ }
+
+ const stacks = (
+ await standardRequest.get(`${INTEGRATION_CLOUD_66_API_URL}/3/stacks`, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json"
+ }
+ })
+ ).data.response as Cloud66Apps[]
+
+ const apps = stacks.map((app) => ({
+ name: app.name,
+ appId: app.uid
+ }));
return apps;
};
diff --cc backend/src/integrations/sync.ts
index 8e5bf327cf,8839c44497..7aa74112f5
--- a/backend/src/integrations/sync.ts
+++ b/backend/src/integrations/sync.ts
@@@ -41,14 -49,13 +49,15 @@@ import
INTEGRATION_TRAVISCI,
INTEGRATION_TRAVISCI_API_URL,
INTEGRATION_VERCEL,
- INTEGRATION_VERCEL_API_URL
+ INTEGRATION_VERCEL_API_URL,
- INTEGRATION_CODEFRESH,
- INTEGRATION_CODEFRESH_API_URL,
+ INTEGRATION_WINDMILL,
+ INTEGRATION_WINDMILL_API_URL,
} from "../variables";
+ import AWS from "aws-sdk";
+ import { Octokit } from "@octokit/rest";
+ import _ from "lodash";
+ import sodium from "libsodium-wrappers";
import { standardRequest } from "../config/request";
- import { handleAuthProviderCallback } from "../controllers/v1/authController";
/**
* Sync/push [secrets] to [app] in integration named [integration]
@@@ -237,23 -249,14 +254,22 @@@ const syncSecrets = async (
accessToken
});
break;
- case INTEGRATION_CODEFRESH:
- await syncSecretsCodefresh({
+ case INTEGRATION_NORTHFLANK:
+ await syncSecretsNorthflank({
integration,
secrets,
- accessToken,
+ accessToken
});
break;
- }
+ case INTEGRATION_WINDMILL:
+ await syncSecretsWindmill({
+ integration,
+ secrets,
+ accessToken,
+ secretComments
+ });
+ break;
+ }
};
/**
@@@ -2021,111 -2238,172 +2251,280 @@@ const syncSecretsCodefresh = async (
);
};
+ /**
+ * Sync/push [secrets] to DigitalOcean App Platform application with name [integration.app]
+ * @param {Object} obj
+ * @param {IIntegration} obj.integration - integration details
+ * @param {IIntegrationAuth} obj.integrationAuth - integration auth details
+ * @param {Object} obj.secrets - secrets to push to integration (object where keys are secret keys and values are secret values)
- * @param {String} obj.accessToken - personal access token for DigitalOcean
++ * @param {String} obj.accessToken - access token for integration
+ */
+ const syncSecretsDigitalOceanAppPlatform = async ({
+ integration,
+ secrets,
+ accessToken
+ }: {
+ integration: IIntegration;
+ secrets: any;
+ accessToken: string;
+ }) => {
+ await standardRequest.put(
+ `${INTEGRATION_DIGITAL_OCEAN_API_URL}/v2/apps/${integration.appId}`,
+ {
+ spec: {
+ name: integration.app,
+ envs: Object.entries(secrets).map(([key, value]) => ({ key, value }))
+ }
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ Accept: "application/json"
+ }
+ }
+ );
+ }
+
+/**
+ * Sync/push [secrets] to Windmill with name [integration.app]
+ * @param {Object} obj
+ * @param {IIntegration} obj.integration - integration details
+ * @param {IIntegrationAuth} obj.integrationAuth - integration auth details
+ * @param {Object} obj.secrets - secrets to push to integration (object where keys are secret keys and values are secret values)
+ * @param {String} obj.accessToken - access token for windmill integration
+ * @param {Object} obj.secretComments - secret comments to push to integration (object where keys are secret keys and values are comment values)
+ */
+const syncSecretsWindmill = async ({
+ integration,
+ secrets,
+ accessToken,
+ secretComments
+}: {
+ integration: IIntegration;
+ secrets: any;
+ accessToken: string;
+ secretComments: any;
+}) => {
+ interface WindmillSecret {
+ path: string;
+ value: string;
+ is_secret: boolean;
+ description?: string;
+ }
+
+ // get secrets stored in windmill workspace
+ const res = (await standardRequest.get(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/list`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ ))
+ .data
+ .reduce(
+ (obj: any, secret: WindmillSecret) => ({
+ ...obj,
+ [secret.path]: secret
+ }),
+ {}
+ );
+
- const pattern = /^(u\/|f\/)[a-zA-Z0-9_-]+\/([a-zA-Z0-9_-]+\/)*[a-zA-Z0-9_-]*[^\/]$/;
++ // eslint-disable-next-line no-useless-escape
++ const pattern = new RegExp("^(u\/|f\/)[a-zA-Z0-9_-]+\/([a-zA-Z0-9_-]+\/)*[a-zA-Z0-9_-]*[^\/]$");
+
+ for await (const key of Object.keys(secrets)) {
+ if((key.startsWith("u/") || key.startsWith("f/")) && pattern.test(key)) {
+ if(!(key in res)) {
+ // case: secret does not exist in windmill
+ // -> create secret
+
+ await standardRequest.post(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/create`,
+ {
+ path: key,
+ value: secrets[key],
+ is_secret: true,
+ description: secretComments[key] || ""
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ );
+ } else {
+ // -> update secret
+ await standardRequest.post(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/update/${res[key].path}`,
+ {
+ path: key,
+ value: secrets[key],
+ is_secret: true,
+ description: secretComments[key] || ""
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json",
+ },
+ }
+ );
+ }
- };
++ }
+ }
+
+ for await (const key of Object.keys(res)) {
+ if (!(key in secrets)) {
+ // -> delete secret
+ await standardRequest.delete(
+ `${INTEGRATION_WINDMILL_API_URL}/w/${integration.appId}/variables/delete/${res[key].path}`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Content-Type": "application/json",
+ "Accept-Encoding": "application/json",
+ }
+ }
+ );
+ }
+ }
++}
++
+ /**
+ * Sync/push [secrets] to Cloud66 application with name [integration.app]
+ * @param {Object} obj
+ * @param {IIntegration} obj.integration - integration details
+ * @param {IIntegrationAuth} obj.integrationAuth - integration auth details
+ * @param {Object} obj.secrets - secrets to push to integration (object where keys are secret keys and values are secret values)
+ * @param {String} obj.accessToken - access token for Cloud66 integration
+ */
+ const syncSecretsCloud66 = async ({
+ integration,
+ secrets,
+ accessToken
+ }: {
+ integration: IIntegration;
+ secrets: any;
+ accessToken: string;
+ }) => {
+
+ interface Cloud66Secret {
+ id: number;
+ key: string;
+ value: string;
+ readonly: boolean;
+ created_at: string;
+ updated_at: string;
+ is_password: boolean;
+ is_generated: boolean;
+ history: any[];
+ }
+
+ // get all current secrets
+ const res = (
+ await standardRequest.get(
+ `${INTEGRATION_CLOUD_66_API_URL}/3/stacks/${integration.appId}/environments`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ Accept: "application/json"
+ }
+ }
+ )
+ )
+ .data
+ .response
+ .filter((secret: Cloud66Secret) => !secret.readonly || !secret.is_generated)
+ .reduce(
+ (obj: any, secret: any) => ({
+ ...obj,
+ [secret.key]: secret
+ }),
+ {}
+ );
+
+ for await (const key of Object.keys(secrets)) {
+ if (key in res) {
+ // update existing secret
+ await standardRequest.put(
+ `${INTEGRATION_CLOUD_66_API_URL}/3/stacks/${integration.appId}/environments/${key}`,
+ {
+ key,
+ value: secrets[key]
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ Accept: "application/json"
+ }
+ }
+ );
+ } else {
+ // create new secret
+ await standardRequest.post(
+ `${INTEGRATION_CLOUD_66_API_URL}/3/stacks/${integration.appId}/environments`,
+ {
+ key,
+ value: secrets[key]
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ Accept: "application/json"
+ }
+ }
+ );
+ }
+ }
+
+ for await (const key of Object.keys(res)) {
+ if (!(key in secrets)) {
+ // delete secret
+ await standardRequest.delete(
+ `${INTEGRATION_CLOUD_66_API_URL}/3/stacks/${integration.appId}/environments/${key}`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ Accept: "application/json"
+ }
+ }
+ );
+ }
+ }
+ };
+
+ /** Sync/push [secrets] to Northflank
+ * @param {Object} obj
+ * @param {IIntegration} obj.integration - integration details
+ * @param {Object} obj.secrets - secrets to push to integration (object where keys are secret keys and values are secret values)
+ * @param {String} obj.accessToken - access token for Northflank integration
+ */
+ const syncSecretsNorthflank = async ({
+ integration,
+ secrets,
+ accessToken
+ }: {
+ integration: IIntegration;
+ secrets: any;
+ accessToken: string;
+ }) => {
+ await standardRequest.patch(
+ `${INTEGRATION_NORTHFLANK_API_URL}/v1/projects/${integration.appId}/secrets/${integration.targetServiceId}`,
+ {
+ secrets: {
+ variables: secrets
+ }
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json"
+ }
+ }
+ );
};
export { syncSecrets };
diff --cc backend/src/models/integration.ts
index a443c3f836,d56c603e5c..e6673e77e3
--- a/backend/src/models/integration.ts
+++ b/backend/src/models/integration.ts
@@@ -16,11 -20,11 +20,12 @@@ import
INTEGRATION_RAILWAY,
INTEGRATION_RENDER,
INTEGRATION_SUPABASE,
+ INTEGRATION_TERRAFORM_CLOUD,
INTEGRATION_TRAVISCI,
- INTEGRATION_VERCEL
+ INTEGRATION_VERCEL,
- INTEGRATION_CODEFRESH,
- INTEGRATION_WINDMILL,
++ INTEGRATION_WINDMILL
} from "../variables";
+ import { Schema, Types, model } from "mongoose";
export interface IIntegration {
_id: Types.ObjectId;
@@@ -55,10 -59,14 +60,15 @@@
| "travisci"
| "supabase"
| "checkly"
+ | "terraform-cloud"
| "hashicorp-vault"
| "cloudflare-pages"
+ | "bitbucket"
| "codefresh"
+ | "digital-ocean-app-platform"
+ | "cloud-66"
+ | "northflank"
+ | "windmill";
integrationAuth: Types.ObjectId;
}
@@@ -146,10 -154,14 +156,15 @@@ const integrationSchema = new Schema<II
INTEGRATION_TRAVISCI,
INTEGRATION_SUPABASE,
INTEGRATION_CHECKLY,
+ INTEGRATION_TERRAFORM_CLOUD,
INTEGRATION_HASHICORP_VAULT,
INTEGRATION_CLOUDFLARE_PAGES,
+ INTEGRATION_CODEFRESH,
+ INTEGRATION_WINDMILL,
+ INTEGRATION_BITBUCKET,
+ INTEGRATION_DIGITAL_OCEAN_APP_PLATFORM,
- INTEGRATION_CODEFRESH,
+ INTEGRATION_CLOUD_66,
+ INTEGRATION_NORTHFLANK
],
required: true,
},
diff --cc backend/src/models/integrationAuth.ts
index 219c1e428f,dd8d0cd194..6791868cd0
--- a/backend/src/models/integrationAuth.ts
+++ b/backend/src/models/integrationAuth.ts
@@@ -18,16 -22,39 +22,41 @@@ import
INTEGRATION_RAILWAY,
INTEGRATION_RENDER,
INTEGRATION_SUPABASE,
+ INTEGRATION_TERRAFORM_CLOUD,
INTEGRATION_TRAVISCI,
- INTEGRATION_VERCEL
+ INTEGRATION_VERCEL,
- INTEGRATION_CODEFRESH,
+ INTEGRATION_WINDMILL
} from "../variables";
+ import { Document, Schema, Types, model } from "mongoose";
export interface IIntegrationAuth extends Document {
_id: Types.ObjectId;
workspace: Types.ObjectId;
- integration: 'heroku' | 'vercel' | 'netlify' | 'github' | 'gitlab' | 'render' | 'railway' | 'flyio' | 'azure-key-vault' | 'laravel-forge' | 'circleci' | 'travisci' | 'supabase' | 'aws-parameter-store' | 'aws-secret-manager' | 'checkly' | 'cloudflare-pages' | 'windmill' | 'codefresh';
+ integration:
+ | "heroku"
+ | "vercel"
+ | "netlify"
+ | "github"
+ | "gitlab"
+ | "render"
+ | "railway"
+ | "flyio"
+ | "azure-key-vault"
+ | "laravel-forge"
+ | "circleci"
+ | "travisci"
+ | "supabase"
+ | "aws-parameter-store"
+ | "aws-secret-manager"
+ | "checkly"
+ | "cloudflare-pages"
+ | "codefresh"
+ | "digital-ocean-app-platform"
+ | "bitbucket"
+ | "cloud-66"
+ | "terraform-cloud"
- | "northflank";
++ | "northflank"
++ | "windmill";
teamId: string;
accountId: string;
url: string;
@@@ -71,10 -98,14 +100,15 @@@ const integrationAuthSchema = new Schem
INTEGRATION_LARAVELFORGE,
INTEGRATION_TRAVISCI,
INTEGRATION_SUPABASE,
+ INTEGRATION_TERRAFORM_CLOUD,
INTEGRATION_HASHICORP_VAULT,
INTEGRATION_CLOUDFLARE_PAGES,
+ INTEGRATION_CODEFRESH,
+ INTEGRATION_WINDMILL,
+ INTEGRATION_BITBUCKET,
+ INTEGRATION_DIGITAL_OCEAN_APP_PLATFORM,
- INTEGRATION_CODEFRESH,
+ INTEGRATION_CLOUD_66,
+ INTEGRATION_NORTHFLANK
],
required: true,
},
diff --cc backend/src/variables/integration.ts
index 3c8bea7bea,42066e3e59..a649763c0a
--- a/backend/src/variables/integration.ts
+++ b/backend/src/variables/integration.ts
@@@ -24,10 -25,14 +25,15 @@@ export const INTEGRATION_CIRCLECI = "ci
export const INTEGRATION_TRAVISCI = "travisci";
export const INTEGRATION_SUPABASE = "supabase";
export const INTEGRATION_CHECKLY = "checkly";
+ export const INTEGRATION_TERRAFORM_CLOUD = "terraform-cloud";
export const INTEGRATION_HASHICORP_VAULT = "hashicorp-vault";
export const INTEGRATION_CLOUDFLARE_PAGES = "cloudflare-pages";
+ export const INTEGRATION_BITBUCKET = "bitbucket";
export const INTEGRATION_CODEFRESH = "codefresh";
+export const INTEGRATION_WINDMILL = "windmill";
+ export const INTEGRATION_DIGITAL_OCEAN_APP_PLATFORM = "digital-ocean-app-platform";
+ export const INTEGRATION_CLOUD_66 = "cloud-66";
+ export const INTEGRATION_NORTHFLANK = "northflank";
export const INTEGRATION_SET = new Set([
INTEGRATION_AZURE_KEY_VAULT,
INTEGRATION_HEROKU,
@@@ -42,10 -47,14 +48,15 @@@
INTEGRATION_TRAVISCI,
INTEGRATION_SUPABASE,
INTEGRATION_CHECKLY,
+ INTEGRATION_TERRAFORM_CLOUD,
INTEGRATION_HASHICORP_VAULT,
INTEGRATION_CLOUDFLARE_PAGES,
+ INTEGRATION_CODEFRESH,
- INTEGRATION_WINDMILL
++ INTEGRATION_WINDMILL,
+ INTEGRATION_BITBUCKET,
+ INTEGRATION_DIGITAL_OCEAN_APP_PLATFORM,
- INTEGRATION_CODEFRESH,
+ INTEGRATION_CLOUD_66,
+ INTEGRATION_NORTHFLANK
]);
// integration types
@@@ -74,9 -84,13 +86,14 @@@ export const INTEGRATION_TRAVISCI_API_U
export const INTEGRATION_SUPABASE_API_URL = "https://api.supabase.com";
export const INTEGRATION_LARAVELFORGE_API_URL = "https://forge.laravel.com";
export const INTEGRATION_CHECKLY_API_URL = "https://api.checklyhq.com";
+ export const INTEGRATION_TERRAFORM_CLOUD_API_URL = "https://app.terraform.io";
export const INTEGRATION_CLOUDFLARE_PAGES_API_URL = "https://api.cloudflare.com";
+ export const INTEGRATION_BITBUCKET_API_URL = "https://api.bitbucket.org";
export const INTEGRATION_CODEFRESH_API_URL = "https://g.codefresh.io/api";
+export const INTEGRATION_WINDMILL_API_URL = "https://app.windmill.dev/api";
+ export const INTEGRATION_DIGITAL_OCEAN_API_URL = "https://api.digitalocean.com";
+ export const INTEGRATION_CLOUD_66_API_URL = "https://app.cloud66.com/api";
+ export const INTEGRATION_NORTHFLANK_API_URL = "https://api.northflank.com";
export const getIntegrationOptions = async () => {
const INTEGRATION_OPTIONS = [
@@@ -261,16 -293,33 +296,42 @@@
clientId: "",
docsLink: "",
},
+ {
+ name: "Windmill",
+ slug: "windmill",
+ image: "Windmill.png",
+ isAvailable: true,
+ type: "pat",
+ clientId: "",
++ docsLink: "",
++ },
+ {
+ name: "Digital Ocean App Platform",
+ slug: "digital-ocean-app-platform",
+ image: "Digital Ocean.png",
+ isAvailable: true,
+ type: "pat",
+ clientId: "",
+ docsLink: "",
+ },
+ {
+ name: "Cloud 66",
+ slug: "cloud-66",
+ image: "Cloud 66.png",
+ isAvailable: true,
+ type: "pat",
+ clientId: "",
+ docsLink: "",
+ },
+ {
+ name: "Northflank",
+ slug: "northflank",
+ image: "Northflank.png",
+ isAvailable: true,
+ type: "pat",
+ clientId: "",
docsLink: ""
},
-
]
return INTEGRATION_OPTIONS;
diff --cc frontend/public/data/frequentConstants.ts
index 0b4fb65c85,f05c2ade0e..3352999f6d
--- a/frontend/public/data/frequentConstants.ts
+++ b/frontend/public/data/frequentConstants.ts
@@@ -3,27 -3,31 +3,32 @@@ interface Mapping
}
const integrationSlugNameMapping: Mapping = {
- 'azure-key-vault': 'Azure Key Vault',
- 'aws-parameter-store': 'AWS Parameter Store',
- 'aws-secret-manager': 'AWS Secret Manager',
- 'heroku': 'Heroku',
- 'vercel': 'Vercel',
- 'netlify': 'Netlify',
- 'github': 'GitHub',
- 'gitlab': 'GitLab',
- 'render': 'Render',
- 'laravel-forge': "Laravel Forge",
- 'railway': 'Railway',
- 'flyio': 'Fly.io',
- 'circleci': 'CircleCI',
- 'travisci': 'TravisCI',
- 'supabase': 'Supabase',
- 'checkly': 'Checkly',
- 'hashicorp-vault': 'Vault',
- 'cloudflare-pages': 'Cloudflare Pages',
- 'codefresh': 'Codefresh',
+ "azure-key-vault": "Azure Key Vault",
+ "aws-parameter-store": "AWS Parameter Store",
+ "aws-secret-manager": "AWS Secret Manager",
+ heroku: "Heroku",
+ vercel: "Vercel",
+ netlify: "Netlify",
+ github: "GitHub",
+ gitlab: "GitLab",
+ render: "Render",
+ "laravel-forge": "Laravel Forge",
+ railway: "Railway",
+ flyio: "Fly.io",
+ circleci: "CircleCI",
+ travisci: "TravisCI",
+ supabase: "Supabase",
+ checkly: "Checkly",
+ 'terraform-cloud': 'Terraform Cloud',
+ "hashicorp-vault": "Vault",
+ "cloudflare-pages": "Cloudflare Pages",
+ "codefresh": "Codefresh",
+ "digital-ocean-app-platform": "Digital Ocean App Platform",
+ bitbucket: "BitBucket",
+ "cloud-66": "Cloud 66",
- northflank: "Northflank"
-};
++ northflank: "Northflank",
+ 'windmill': 'Windmill'
+}
const envMapping: Mapping = {
Development: "dev",
diff --cc frontend/src/views/IntegrationsPage/IntegrationPage.utils.tsx
index d74c88893b,c453cdf377..1f845b6448
--- a/frontend/src/views/IntegrationsPage/IntegrationPage.utils.tsx
+++ b/frontend/src/views/IntegrationsPage/IntegrationPage.utils.tsx
@@@ -95,9 -101,15 +101,18 @@@ export const redirectForProviderAuth =
case "codefresh":
link = `${window.location.origin}/integrations/codefresh/authorize`;
break;
+ case "digital-ocean-app-platform":
+ link = `${window.location.origin}/integrations/digital-ocean-app-platform/authorize`;
+ break;
+ case "cloud-66":
+ link = `${window.location.origin}/integrations/cloud-66/authorize`;
+ break;
+ case "northflank":
+ link = `${window.location.origin}/integrations/northflank/authorize`;
+ break;
+ case "windmill":
+ link = `${window.location.origin}/integrations/windmill/authorize`;
+ break;
default:
break;
}