Skip to content

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

2.9 KB
Raw Blame
---
title: "Spacelift connection"
sidebarTitle: "Spacelift"
description: "Learn how to configure a Spacelift Connection for Infisical."
---

Infisical supports connecting to Spacelift using an API key ID and API key secret for secure access to your Spacelift account.

## Create an API key in Spacelift

<Steps>
  <Step title="Navigate to Organization Settings">
    Select your profile name and select **Organization Settings** at the bottom left side of the Spacelift dashboard.

    ![Navigate to Organization Settings](/images/app-connections/spacelift/spacelift-navigate-to-org-settings.png)
  </Step>
  <Step title="Open API Keys">
    Select **API Keys** under the identity management section.

    ![Open API Keys](/images/app-connections/spacelift/spacelift-open-api-keys.png)
  </Step>
  <Step title="Create API Key">
    Select **Create API Key**.

    ![Create API Key](/images/app-connections/spacelift/spacelift-create-api-key.png)
  </Step>
  <Step title="Set a Name">
    Set a name for the API key, choose the type **Secret** and select **Continue**.

    ![Set API Key Name](/images/app-connections/spacelift/spacelift-set-api-key-name.png)
  </Step>
  <Step title="Configure Roles, Space, and Create">
    Select the **Space admin** role (or a custom role with at least **Space reader**, **Space writer**, and **Context update** permissions), choose the Space that will be managed by this credential, then select **Add** and **Create API Key**. A file will be downloaded containing your credentials.

    ![Select Roles](/images/app-connections/spacelift/spacelift-select-roles.png)
  </Step>
  <Step title="Extract Credentials">
    Open the downloaded file and extract the `api_key_id` and `api_key_secret` values.
  </Step>
</Steps>

## Setup Spacelift connection in Infisical

<Steps>
  <Step title="Navigate to App Connections">
    Navigate to the **Integrations** tab in the desired project, then select **App Connections**.
    ![App Connections Tab](/images/app-connections/general/revamped-app-connection-tab.png)
  </Step>
  <Step title="Add Connection">
    Select the **Spacelift Connection** option from the connection options modal.
    ![Select Spacelift Connection](/images/app-connections/spacelift/spacelift-app-connection-select.png)
  </Step>
  <Step title="Input Credentials">
    Enter your Spacelift API URL, API Key ID, and API Key Secret in the provided fields and
    select **Connect to Spacelift** to establish the connection.

    <Note>
      The API URL is the base URL of your Spacelift account (e.g., `https://myorgname.app.us.spacelift.io/`).
    </Note>

    ![Connect to Spacelift](/images/app-connections/spacelift/spacelift-app-connection-form.png)
  </Step>
  <Step title="Connection Created">
    Your **Spacelift Connection** is now available for use in your Infisical projects.
    ![Spacelift Connection Created](/images/app-connections/spacelift/spacelift-app-connection-created.png)
  </Step>
</Steps>