Skip to content

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

added databricks integration

Vladyslav Matsiiako25b55087cfe5
diff --git a/backend/src/ee/services/license/license-fns.ts b/backend/src/ee/services/license/license-fns.ts
index fa67b72d16..126f86c413 100644
--- a/backend/src/ee/services/license/license-fns.ts
+++ b/backend/src/ee/services/license/license-fns.ts
@@ -32,11 +32,11 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
oidcSSO: false,
scim: false,
ldap: false,
- groups: false,
+ groups: true,
status: null,
trial_end: null,
has_used_trial: true,
- secretApproval: false,
+ secretApproval: true,
secretRotation: true,
caCrl: false,
instanceUserManagement: false,
diff --git a/backend/src/ee/services/license/license-types.ts b/backend/src/ee/services/license/license-types.ts
index 6e671c26fd..b41393b08d 100644
--- a/backend/src/ee/services/license/license-types.ts
+++ b/backend/src/ee/services/license/license-types.ts
@@ -49,11 +49,11 @@ export type TFeatureSet = {
oidcSSO: false;
scim: false;
ldap: false;
- groups: false;
+ groups: true;
status: null;
trial_end: null;
has_used_trial: true;
- secretApproval: false;
+ secretApproval: true;
secretRotation: true;
caCrl: false;
instanceUserManagement: false;
diff --git a/backend/src/services/integration-auth/integration-app-list.ts b/backend/src/services/integration-auth/integration-app-list.ts
index dd0cb16dca..c20cb9913c 100644
--- a/backend/src/services/integration-auth/integration-app-list.ts
+++ b/backend/src/services/integration-auth/integration-app-list.ts
@@ -455,6 +455,28 @@ const getAppsCircleCI = async ({ accessToken }: { accessToken: string }) => {
return apps;
};
+/**
+ * Return list of projects for Databricks integration
+ */
+const getAppsDatabricks = async ({ accessToken }: { accessToken: string }) => {
+ const res = await request.get<{ scopes: { name: string; backend_type: string }[] }>(
+ `${IntegrationUrls.DATABRICKS_API_URL}/2.0/secrets/scopes/list`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json"
+ }
+ }
+ );
+
+ const scopes = res.data.scopes.map((a) => ({
+ name: a.name, // name maps to unique scope name in Databricks
+ backend_type: a.backend_type
+ }));
+
+ return scopes;
+};
+
const getAppsTravisCI = async ({ accessToken }: { accessToken: string }) => {
const res = (
await request.get<{ id: string; slug: string }[]>(`${IntegrationUrls.TRAVISCI_API_URL}/repos`, {
@@ -1104,6 +1126,11 @@ export const getApps = async ({
accessToken
});
+ case Integrations.DATABRICKS:
+ return getAppsDatabricks({
+ accessToken
+ });
+
case Integrations.LARAVELFORGE:
return getAppsLaravelForge({
accessToken,
diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.ts
index 5085d42532..a335bce4e2 100644
--- a/backend/src/services/integration-auth/integration-sync-secret.ts
+++ b/backend/src/services/integration-auth/integration-sync-secret.ts
@@ -2085,6 +2085,76 @@ const syncSecretsCircleCI = async ({
);
};
+/**
+ * Sync/push [secrets] to Databricks project
+ */
+const syncSecretsDatabricks = async ({
+ integration,
+ secrets,
+ accessToken
+}: {
+ integration: TIntegrations;
+ secrets: Record<string, { value: string; comment?: string }>;
+ accessToken: string;
+}) => {
+ // sync secrets to Databricks
+ await Promise.all(
+ Object.keys(secrets).map(async (key) =>
+ request.post(
+ `${IntegrationUrls.DATABRICKS_API_URL}/2.0/secrets/put`,
+ {
+ scope: integration.app,
+ key,
+ string_value: secrets[key].value
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Accept-Encoding": "application/json"
+ }
+ }
+ )
+ )
+ );
+
+ // get secrets from Databricks
+ const getSecretsRes = (
+ await request.get<{ secrets: { key: string; last_updated_timestamp: number }[] }>(
+ `${IntegrationUrls.DATABRICKS_API_URL}/2.0/secrets/list`,
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Content-Type": "application/json"
+ },
+ params: {
+ scope: integration.app
+ }
+ }
+ )
+ ).data.secrets;
+
+ // delete secrets from Databricks
+ await Promise.all(
+ getSecretsRes.map(async (sec) => {
+ if (!(sec.key in secrets)) {
+ return request.post(
+ `${IntegrationUrls.DATABRICKS_API_URL}/2.0/secrets/delete`,
+ {
+ scope: integration.app,
+ key: sec.key
+ },
+ {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Content-Type": "application/json"
+ }
+ }
+ );
+ }
+ })
+ );
+};
+
/**
* Sync/push [secrets] to TravisCI project
*/
@@ -4021,6 +4091,13 @@ export const syncIntegrationSecrets = async ({
accessToken
});
break;
+ case Integrations.DATABRICKS:
+ await syncSecretsDatabricks({
+ integration,
+ secrets,
+ accessToken
+ });
+ break;
case Integrations.LARAVELFORGE:
await syncSecretsLaravelForge({
integration,
diff --git a/docs/images/integrations/databricks/integrations-databricks-auth.png b/docs/images/integrations/databricks/integrations-databricks-auth.png
new file mode 100644
index 0000000000..dc640f68a4
Binary files /dev/null and b/docs/images/integrations/databricks/integrations-databricks-auth.png differ
diff --git a/docs/images/integrations/databricks/integrations-databricks-create.png b/docs/images/integrations/databricks/integrations-databricks-create.png
new file mode 100644
index 0000000000..058f08369a
Binary files /dev/null and b/docs/images/integrations/databricks/integrations-databricks-create.png differ
diff --git a/docs/images/integrations/databricks/integrations-databricks.png b/docs/images/integrations/databricks/integrations-databricks.png
new file mode 100644
index 0000000000..f48f6b95a2
Binary files /dev/null and b/docs/images/integrations/databricks/integrations-databricks.png differ
diff --git a/docs/images/integrations/databricks/pat-token.png b/docs/images/integrations/databricks/pat-token.png
new file mode 100644
index 0000000000..02a264710c
Binary files /dev/null and b/docs/images/integrations/databricks/pat-token.png differ
diff --git a/docs/integrations/cicd/circleci.mdx b/docs/integrations/cicd/circleci.mdx
index ed14b891ea..0753f40f7b 100644
--- a/docs/integrations/cicd/circleci.mdx
+++ b/docs/integrations/cicd/circleci.mdx
@@ -21,12 +21,6 @@ Prerequisites:
![integrations circleci authorization](../../images/integrations/circleci/integrations-circleci-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which CircleCI project and press create integration to start syncing secrets to CircleCI.
diff --git a/docs/integrations/cicd/codefresh.mdx b/docs/integrations/cicd/codefresh.mdx
index e41e00f50c..cf69ae04d3 100644
--- a/docs/integrations/cicd/codefresh.mdx
+++ b/docs/integrations/cicd/codefresh.mdx
@@ -22,12 +22,6 @@ Prerequisites:
![integrations codefresh authorization](../../images/integrations/codefresh/integrations-codefresh-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Codefresh service and press create integration to start syncing secrets to Codefresh.
diff --git a/docs/integrations/cicd/githubactions.mdx b/docs/integrations/cicd/githubactions.mdx
index 93b1347f73..607a58d36e 100644
--- a/docs/integrations/cicd/githubactions.mdx
+++ b/docs/integrations/cicd/githubactions.mdx
@@ -27,10 +27,6 @@ Prerequisites:
![integrations github authorization](../../images/integrations/github/integrations-github-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant Infisical access to your project's environment variables.
- Although this step breaks E2EE, it's necessary for Infisical to sync the environment variables to the cloud platform.
- </Info>
</Step>
<Step title="Configure Infisical GitHub integration">
Select which Infisical environment secrets you want to sync to which GitHub organization, repository, or repository environment.
diff --git a/docs/integrations/cicd/gitlab.mdx b/docs/integrations/cicd/gitlab.mdx
index c6d72a11ea..2da61ef770 100644
--- a/docs/integrations/cicd/gitlab.mdx
+++ b/docs/integrations/cicd/gitlab.mdx
@@ -20,12 +20,6 @@ description: "How to sync secrets from Infisical to GitLab"
![integrations gitlab authorization](../../images/integrations/gitlab/integrations-gitlab-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which GitLab repository and press create integration to start syncing secrets to GitLab.
diff --git a/docs/integrations/cicd/rundeck.mdx b/docs/integrations/cicd/rundeck.mdx
index a0743fd01f..bda7d81627 100644
--- a/docs/integrations/cicd/rundeck.mdx
+++ b/docs/integrations/cicd/rundeck.mdx
@@ -21,13 +21,6 @@ Prerequisites:
![integrations rundeck authorization](../../images/integrations/rundeck/integrations-rundeck-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
-
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to a Rundeck Key Storage Path and press create integration to start syncing secrets to Rundeck.
diff --git a/docs/integrations/cicd/travisci.mdx b/docs/integrations/cicd/travisci.mdx
index 4e70c76962..873c371b60 100644
--- a/docs/integrations/cicd/travisci.mdx
+++ b/docs/integrations/cicd/travisci.mdx
@@ -21,12 +21,6 @@ Prerequisites:
![integrations travis ci authorization](../../images/integrations/travis-ci/integrations-travisci-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Travis CI repository and press create integration to start syncing secrets to Travis CI.
diff --git a/docs/integrations/cloud/aws-parameter-store.mdx b/docs/integrations/cloud/aws-parameter-store.mdx
index 4677896471..9ce84bd22b 100644
--- a/docs/integrations/cloud/aws-parameter-store.mdx
+++ b/docs/integrations/cloud/aws-parameter-store.mdx
@@ -60,13 +60,6 @@ Prerequisites:
![integration auth](../../images/integrations/aws/integrations-aws-parameter-store-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
-
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which AWS Parameter Store region and indicate the path for your secrets. Then, press create integration to start syncing secrets to AWS Parameter Store.
diff --git a/docs/integrations/cloud/checkly.mdx b/docs/integrations/cloud/checkly.mdx
index 618082a3b7..00ec38d2f1 100644
--- a/docs/integrations/cloud/checkly.mdx
+++ b/docs/integrations/cloud/checkly.mdx
@@ -22,12 +22,6 @@ Prerequisites:
![integrations checkly authorization](../../images/integrations/checkly/integrations-checkly-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to Checkly and press create integration to start syncing secrets.
diff --git a/docs/integrations/cloud/cloud-66.mdx b/docs/integrations/cloud/cloud-66.mdx
index ab362137cb..c087f65644 100644
--- a/docs/integrations/cloud/cloud-66.mdx
+++ b/docs/integrations/cloud/cloud-66.mdx
@@ -31,13 +31,6 @@ Copy and save your token.
Click on the Cloud 66 tile and enter your API token to grant Infisical access to your Cloud 66 account.
![integrations cloud 66 tile in infisical dashboard](../../images/integrations/cloud-66/integrations-cloud-66-infisical-dashboard.png)
-<Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
-</Info>
-
Enter your Cloud 66 Personal Access Token here. Then click "Connect to Cloud 66".
![integrations cloud 66 tile in infisical dashboard](../../images/integrations/cloud-66/integrations-cloud-66-paste-pat.png)
diff --git a/docs/integrations/cloud/cloudflare-pages.mdx b/docs/integrations/cloud/cloudflare-pages.mdx
index 4d28cc5740..addba4fcdf 100644
--- a/docs/integrations/cloud/cloudflare-pages.mdx
+++ b/docs/integrations/cloud/cloudflare-pages.mdx
@@ -29,12 +29,6 @@ Prerequisites:
![integrations cloudflare authorization](../../images/integrations/cloudflare/integrations-cloudflare-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to Cloudflare and press create integration to start syncing secrets.
diff --git a/docs/integrations/cloud/cloudflare-workers.mdx b/docs/integrations/cloud/cloudflare-workers.mdx
index 9a126a0e38..10a5797016 100644
--- a/docs/integrations/cloud/cloudflare-workers.mdx
+++ b/docs/integrations/cloud/cloudflare-workers.mdx
@@ -29,13 +29,6 @@ Prerequisites:
![integrations cloudflare authorization](../../images/integrations/cloudflare/integration-cloudflare-workers-connect.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
-
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to Cloudflare Workers and press create integration to start syncing secrets.
diff --git a/docs/integrations/cloud/databricks.mdx b/docs/integrations/cloud/databricks.mdx
new file mode 100644
index 0000000000..f4597f2722
--- /dev/null
+++ b/docs/integrations/cloud/databricks.mdx
@@ -0,0 +1,31 @@
+---
+title: "Databricks"
+description: "Learn how to sync secrets from Infisical to Databricks."
+---
+
+Prerequisites:
+
+- Set up and add secrets to [Infisical Cloud](https://app.infisical.com)
+
+<Steps>
+ <Step title="Authorize Infisical for Databricks">
+ Obtain a Personal Access Token in User Settings > Developer > Access Tokens
+
+ ![integrations databricks token](../../images/integrations/databricks/pat-token.png)
+
+ Navigate to your project's integrations tab in Infisical.
+
+ ![integrations](../../images/integrations.png)
+
+ Press on the Databricks tile and input your Databricks Access Token to grant Infisical the necessary permissions in your Databricks account.
+
+ ![integrations databricks authorization](../../images/integrations/databricks/integrations-databricks-auth.png)
+
+ </Step>
+ <Step title="Start integration">
+ Select which Infisical environment and secret path you want to sync to which Databricks scope. Then, press create integration to start syncing secrets to Databricks.
+
+ ![create integration Databricks](../../images/integrations/databricks/integrations-databricks-create.png)
+ ![integrations Databricks](../../images/integrations/databricks/integrations-databricks.png)
+ </Step>
+</Steps>
\ No newline at end of file
diff --git a/docs/integrations/cloud/digital-ocean-app-platform.mdx b/docs/integrations/cloud/digital-ocean-app-platform.mdx
index 1ed255a489..a0ed545cc4 100644
--- a/docs/integrations/cloud/digital-ocean-app-platform.mdx
+++ b/docs/integrations/cloud/digital-ocean-app-platform.mdx
@@ -20,13 +20,6 @@ Name it **infisical**, choose **No expiry**, and make sure to check **Write (opt
Click on the **Digital Ocean App Platform** tile and enter your API token to grant Infisical access to your Digital Ocean account.
![integrations](../../images/integrations.png)
-<Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
-</Info>
-
Then enter your Digital Ocean Personal Access Token here. Then click "Connect to Digital Ocean App Platform".
![integrations infisical dashboard digital ocean integration](../../images/integrations/digital-ocean/integrations-do-enter-token.png)
diff --git a/docs/integrations/cloud/flyio.mdx b/docs/integrations/cloud/flyio.mdx
index 71b24e2a95..2aa14a9197 100644
--- a/docs/integrations/cloud/flyio.mdx
+++ b/docs/integrations/cloud/flyio.mdx
@@ -22,12 +22,6 @@ Prerequisites:
![integrations fly authorization](../../images/integrations/flyio/integrations-flyio-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Fly.io app and press create integration to start syncing secrets to Fly.io.
diff --git a/docs/integrations/cloud/gcp-secret-manager.mdx b/docs/integrations/cloud/gcp-secret-manager.mdx
index 99edcd115a..e57a976f0b 100644
--- a/docs/integrations/cloud/gcp-secret-manager.mdx
+++ b/docs/integrations/cloud/gcp-secret-manager.mdx
@@ -24,12 +24,6 @@ description: "How to sync secrets from Infisical to GCP Secret Manager"
![integrations GCP authorization](../../images/integrations/gcp-secret-manager/integrations-gcp-secret-manager-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
In the **Connection** tab, select which Infisical environment secrets you want to sync to which GCP secret manager project. Lastly, press create integration to start syncing secrets to GCP secret manager.
@@ -85,12 +79,6 @@ description: "How to sync secrets from Infisical to GCP Secret Manager"
![integrations GCP authorization options](../../images/integrations/gcp-secret-manager/integrations-gcp-secret-manager-auth-options.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
In the **Connection** tab, select which Infisical environment secrets you want to sync to the GCP secret manager project. Lastly, press create integration to start syncing secrets to GCP secret manager.
diff --git a/docs/integrations/cloud/hasura-cloud.mdx b/docs/integrations/cloud/hasura-cloud.mdx
index 48d9d301b9..f88c1eb508 100644
--- a/docs/integrations/cloud/hasura-cloud.mdx
+++ b/docs/integrations/cloud/hasura-cloud.mdx
@@ -21,12 +21,6 @@ Prerequisites:
![integrations hasura cloud authorization](../../images/integrations/hasura-cloud/integrations-hasura-cloud-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Hasura Cloud project and press create integration to start syncing secrets to Hasura Cloud.
diff --git a/docs/integrations/cloud/heroku.mdx b/docs/integrations/cloud/heroku.mdx
index 903ab82701..a63c3f3819 100644
--- a/docs/integrations/cloud/heroku.mdx
+++ b/docs/integrations/cloud/heroku.mdx
@@ -19,12 +19,6 @@ description: "How to sync secrets from Infisical to Heroku"
![integrations heroku authorization](../../images/integrations/heroku/integrations-heroku-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Heroku app and press create integration to start syncing secrets to Heroku.
diff --git a/docs/integrations/cloud/laravel-forge.mdx b/docs/integrations/cloud/laravel-forge.mdx
index 5797692ea3..c58c4a7be7 100644
--- a/docs/integrations/cloud/laravel-forge.mdx
+++ b/docs/integrations/cloud/laravel-forge.mdx
@@ -27,12 +27,6 @@ Prerequisites:
![integrations laravel forge authorization](../../images/integrations/laravel-forge/integrations-laravelforge-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Laravel Forge site and press create integration to start syncing secrets to Laravel Forge.
diff --git a/docs/integrations/cloud/netlify.mdx b/docs/integrations/cloud/netlify.mdx
index f9b20abda1..f793aae100 100644
--- a/docs/integrations/cloud/netlify.mdx
+++ b/docs/integrations/cloud/netlify.mdx
@@ -25,12 +25,6 @@ description: "How to sync secrets from Infisical to Netlify"
![integrations netlify authorization](../../images/integrations/netlify/integrations-netlify-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Netlify app and context. Lastly, press create integration to start syncing secrets to Netlify.
diff --git a/docs/integrations/cloud/northflank.mdx b/docs/integrations/cloud/northflank.mdx
index 117ac73a8a..10dcb288eb 100644
--- a/docs/integrations/cloud/northflank.mdx
+++ b/docs/integrations/cloud/northflank.mdx
@@ -23,12 +23,6 @@ Prerequisites:
![integrations northflank authorization](../../images/integrations/northflank/integrations-northflank-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Northflank project and secret group. Finally, press create integration to start syncing secrets to Northflank.
diff --git a/docs/integrations/cloud/qovery.mdx b/docs/integrations/cloud/qovery.mdx
index 6eae9b954e..13aa6af464 100644
--- a/docs/integrations/cloud/qovery.mdx
+++ b/docs/integrations/cloud/qovery.mdx
@@ -21,12 +21,6 @@ Prerequisites:
![integrations qovery authorization](../../images/integrations/qovery/integrations-qovery-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it is necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to Qovery and press create integration to start syncing secrets.
diff --git a/docs/integrations/cloud/railway.mdx b/docs/integrations/cloud/railway.mdx
index 3f08d75a09..77b3155170 100644
--- a/docs/integrations/cloud/railway.mdx
+++ b/docs/integrations/cloud/railway.mdx
@@ -30,12 +30,6 @@ Prerequisites:
![integrations railway authorization](../../images/integrations/railway/integrations-railway-authorization.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Railway project and environment (and optionally service). Lastly, press create integration to start syncing secrets to Railway.
diff --git a/docs/integrations/cloud/render.mdx b/docs/integrations/cloud/render.mdx
index 970789a31c..3663161711 100644
--- a/docs/integrations/cloud/render.mdx
+++ b/docs/integrations/cloud/render.mdx
@@ -22,12 +22,6 @@ Prerequisites:
![integrations render authorization](../../images/integrations/render/integrations-render-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Render service and press create integration to start syncing secrets to Render.
diff --git a/docs/integrations/cloud/supabase.mdx b/docs/integrations/cloud/supabase.mdx
index 3e94c0f51e..b5179c45fc 100644
--- a/docs/integrations/cloud/supabase.mdx
+++ b/docs/integrations/cloud/supabase.mdx
@@ -28,12 +28,6 @@ Prerequisites:
![integrations supabase authorization](../../images/integrations/supabase/integrations-supabase-authorization.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Supabase project. Lastly, press create integration to start syncing secrets to Supabase.
diff --git a/docs/integrations/cloud/teamcity.mdx b/docs/integrations/cloud/teamcity.mdx
index 20a9dfbea1..3e713cc6a7 100644
--- a/docs/integrations/cloud/teamcity.mdx
+++ b/docs/integrations/cloud/teamcity.mdx
@@ -28,12 +28,6 @@ Prerequisites:
![integrations teamcity authorization](../../images/integrations/teamcity/integrations-teamcity-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which TeamCity project (and optionally build configuration) and press create integration to start syncing secrets to TeamCity.
diff --git a/docs/integrations/cloud/windmill.mdx b/docs/integrations/cloud/windmill.mdx
index 0fc6fddeb7..d0b2b9643a 100644
--- a/docs/integrations/cloud/windmill.mdx
+++ b/docs/integrations/cloud/windmill.mdx
@@ -22,12 +22,6 @@ Prerequisites:
![integrations windmill authorization](../../images/integrations/windmill/integrations-windmill-auth.png)
- <Info>
- If this is your project's first cloud integration, then you'll have to grant
- Infisical access to your project's environment variables. Although this step
- breaks E2EE, it's necessary for Infisical to sync the environment variables to
- the cloud platform.
- </Info>
</Step>
<Step title="Start integration">
Select which Infisical environment secrets you want to sync to which Windmill workspace and press create integration to start syncing secrets to Windmill.
diff --git a/frontend/public/data/frequentConstants.ts b/frontend/public/data/frequentConstants.ts
index 1fd7e7789d..80cb510284 100644
--- a/frontend/public/data/frequentConstants.ts
+++ b/frontend/public/data/frequentConstants.ts
@@ -16,6 +16,7 @@ const integrationSlugNameMapping: Mapping = {
railway: "Railway",
flyio: "Fly.io",
circleci: "CircleCI",
+ databricks: "Databricks",
travisci: "TravisCI",
supabase: "Supabase",
checkly: "Checkly",
diff --git a/frontend/public/images/integrations/Databricks.png b/frontend/public/images/integrations/Databricks.png
new file mode 100644
index 0000000000..ec0ddbc026
Binary files /dev/null and b/frontend/public/images/integrations/Databricks.png differ
diff --git a/frontend/src/pages/integrations/databricks/authorize.tsx b/frontend/src/pages/integrations/databricks/authorize.tsx
new file mode 100644
index 0000000000..1c0e1c7f58
--- /dev/null
+++ b/frontend/src/pages/integrations/databricks/authorize.tsx
@@ -0,0 +1,102 @@
+import { useState } from "react";
+import Head from "next/head";
+import Image from "next/image";
+import Link from "next/link";
+import { useRouter } from "next/router";
+import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+import { useSaveIntegrationAccessToken } from "@app/hooks/api";
+
+import { Button, Card, CardTitle, FormControl, Input } from "../../../components/v2";
+
+export default function DatabricksCreateIntegrationPage() {
+ const router = useRouter();
+ 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: localStorage.getItem("projectData.id"),
+ integration: "databricks",
+ accessToken: apiKey
+ });
+
+ setIsLoading(false);
+
+ router.push(`/integrations/databricks/create?integrationAuthId=${integrationAuth.id}`);
+ } catch (err) {
+ console.error(err);
+ }
+ };
+
+ return (
+ <div className="flex h-full w-full items-center justify-center">
+ <Head>
+ <title>Authorize Databricks Integration</title>
+ <link rel="icon" href="/infisical.ico" />
+ </Head>
+ <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">
+ <Image
+ src="/images/integrations/Databricks.png"
+ height={30}
+ width={30}
+ alt="Databricks logo"
+ />
+ </div>
+ <span className="ml-1.5">Databricks Integration </span>
+ <Link href="https://infisical.com/docs/integrations/cloud/databricks" passHref>
+ <a target="_blank" rel="noopener noreferrer">
+ <div className="ml-2 mb-1 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="ml-1.5 mb-[0.07rem] text-xxs"
+ />
+ </div>
+ </a>
+ </Link>
+ </div>
+ </CardTitle>
+ <FormControl
+ label="Databricks Access Token"
+ errorText={apiKeyErrorText}
+ isError={apiKeyErrorText !== "" ?? false}
+ 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 mt-2 ml-auto mr-6 w-min"
+ isLoading={isLoading}
+ >
+ Connect to Databricks
+ </Button>
+ </Card>
+ </div>
+ );
+}
+
+DatabricksCreateIntegrationPage.requireAuth = true;
diff --git a/frontend/src/pages/integrations/databricks/create.tsx b/frontend/src/pages/integrations/databricks/create.tsx
new file mode 100644
index 0000000000..a4764e6844
--- /dev/null
+++ b/frontend/src/pages/integrations/databricks/create.tsx
@@ -0,0 +1,251 @@
+import { useEffect, useState } from "react";
+import Head from "next/head";
+import Image from "next/image";
+import Link from "next/link";
+import { useRouter } from "next/router";
+import {
+ faArrowUpRightFromSquare,
+ faBookOpen,
+ faBugs,
+ faCircleInfo
+} from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import queryString from "query-string";
+
+import { createNotification } from "@app/components/notifications";
+import { useCreateIntegration } from "@app/hooks/api";
+
+import {
+ Button,
+ Card,
+ CardTitle,
+ FormControl,
+ Input,
+ Select,
+ SelectItem
+} from "../../../components/v2";
+import {
+ useGetIntegrationAuthApps,
+ useGetIntegrationAuthById
+} from "../../../hooks/api/integrationAuth";
+import { useGetWorkspaceById } from "../../../hooks/api/workspace";
+
+export default function DatabricksCreateIntegrationPage() {
+ const router = useRouter();
+ const { mutateAsync } = useCreateIntegration();
+
+ const { integrationAuthId } = queryString.parse(router.asPath.split("?")[1]);
+
+ console.log("integrationAuthId", integrationAuthId)
+
+ const { data: workspace } = useGetWorkspaceById(localStorage.getItem("projectData.id") ?? "");
+ const { data: integrationAuth, isLoading: isintegrationAuthLoading } = useGetIntegrationAuthById(
+ (integrationAuthId as string) ?? ""
+ );
+
+ console.log("integrationAuth", integrationAuth)
+ const { data: integrationAuthScopes, isLoading: isIntegrationAuthScopesLoading } =
+ useGetIntegrationAuthApps({
+ integrationAuthId: (integrationAuthId as string) ?? ""
+ });
+
+ console.log("integrationAuthScopes", integrationAuthScopes)
+ const [selectedSourceEnvironment, setSelectedSourceEnvironment] = useState("");
+ const [targetScope, setTargetScope] = useState("");
+ const [secretPath, setSecretPath] = useState("/");
+
+ const [isLoading, setIsLoading] = useState(false);
+
+ useEffect(() => {
+ if (workspace) {
+ setSelectedSourceEnvironment(workspace.environments[0].slug);
+ }
+ }, [workspace]);
+
+ const handleButtonClick = async () => {
+ try {
+ if (!integrationAuth?.id) return;
+
+ if (!targetScope) {
+ createNotification({
+ type: "error",
+ text: "Please select a scope"
+ });
+ setIsLoading(false);
+ return;
+ }
+
+ setIsLoading(true);
+
+ const selectedScope = integrationAuthScopes?.find(
+ (integrationAuthScope) => integrationAuthScope.name === targetScope
+ );
+
+ if (!selectedScope) {
+ createNotification({
+ type: "error",
+ text: "Invalid scope selected"
+ });
+ setIsLoading(false);
+ return;
+ }
+
+ await mutateAsync({
+ integrationAuthId: integrationAuth?.id,
+ isActive: true,
+ app: selectedScope.name, // scope name
+ sourceEnvironment: selectedSourceEnvironment,
+ secretPath
+ });
+
+ setIsLoading(false);
+
+ router.push(`/integrations/${localStorage.getItem("projectData.id")}`);
+ } catch (err) {
+ console.error(err);
+ }
+ };
+
+ return integrationAuth && workspace && selectedSourceEnvironment && integrationAuthScopes ? (
+ <div className="flex h-full w-full flex-col items-center justify-center">
+ <Head>
+ <title>Set Up Databricks Integration</title>
+ <link rel="icon" href="/infisical.ico" />
+ </Head>
+ <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">
+ <Image
+ src="/images/integrations/Databricks.png"
+ height={30}
+ width={30}
+ alt="Databricks logo"
+ />
+ </div>
+ <span className="ml-1.5">Databricks Integration </span>
+ <Link href="https://infisical.com/docs/integrations/cloud/databricks" passHref>
+ <a target="_blank" rel="noopener noreferrer">
+ <div className="ml-2 mb-1 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="ml-1.5 mb-[0.07rem] text-xxs"
+ />
+ </div>
+ </a>
+ </Link>
+ </div>
+ </CardTitle>
+
+ <FormControl label="Project Environment" className="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="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="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 mt-2 ml-auto mr-6 w-min"
+ isLoading={isLoading}
+ isDisabled={integrationAuthScopes.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 Databricks with secrets from Infisical.
+ </span>
+ </div>
+ </div>
+ ) : (
+ <div className="flex h-full w-full items-center justify-center">
+ <Head>
+ <title>Set Up Databricks Integration</title>
+ <link rel="icon" href="/infisical.ico" />
+ </Head>
+ {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>
+ );
+}
+
+DatabricksCreateIntegrationPage.requireAuth = true;
diff --git a/frontend/src/views/IntegrationsPage/IntegrationPage.utils.tsx b/frontend/src/views/IntegrationsPage/IntegrationPage.utils.tsx
index 69d603f203..18b9022ca8 100644
--- a/frontend/src/views/IntegrationsPage/IntegrationPage.utils.tsx
+++ b/frontend/src/views/IntegrationsPage/IntegrationPage.utils.tsx
@@ -74,6 +74,9 @@ export const redirectForProviderAuth = (integrationOption: TCloudIntegration) =>
case "circleci":
link = `${window.location.origin}/integrations/circleci/authorize`;
break;
+ case "databricks":
+ link = `${window.location.origin}/integrations/databricks/authorize`;
+ break;
case "laravel-forge":
link = `${window.location.origin}/integrations/laravel-forge/authorize`;
break;