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
Add Humanitec secret sync integration docs
carlosmonastyrski568aadef75c4
diff --git a/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.ts b/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.tsindex 61655ceea4..d0377d4b8f 100644--- a/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.ts+++ b/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.ts@@ -109,7 +109,7 @@ const updateSecret = async (secretSync: THumanitecSyncWithCredentials, secretMap`${IntegrationUrls.HUMANITEC_API_URL}/orgs/${destinationConfig.org}/apps/${destinationConfig.app}/envs/${destinationConfig.env}/values/${key}`,{value: secretMap[key].value,- description: secretMap[key].comment+ description: secretMap[key].comment || ""},{headers: {diff --git a/docs/images/app-connections/humanitec/humanitec-connection.png b/docs/images/app-connections/humanitec/humanitec-connection.pngnew file mode 100644index 0000000000..b18ac8aac2Binary files /dev/null and b/docs/images/app-connections/humanitec/humanitec-connection.png differdiff --git a/docs/images/app-connections/humanitec/select-humanitec-connection.png b/docs/images/app-connections/humanitec/select-humanitec-connection.pngnew file mode 100644index 0000000000..70d430cfcfBinary files /dev/null and b/docs/images/app-connections/humanitec/select-humanitec-connection.png differdiff --git a/docs/images/integrations/humanitec/add-humanitec-connection.png b/docs/images/integrations/humanitec/add-humanitec-connection.pngnew file mode 100644index 0000000000..9ae9a7bf1bBinary files /dev/null and b/docs/images/integrations/humanitec/add-humanitec-connection.png differdiff --git a/docs/images/integrations/humanitec/add-service-user-to-application.png b/docs/images/integrations/humanitec/add-service-user-to-application.pngnew file mode 100644index 0000000000..0d132199f9Binary files /dev/null and b/docs/images/integrations/humanitec/add-service-user-to-application.png differdiff --git a/docs/images/integrations/humanitec/create-service-user.png b/docs/images/integrations/humanitec/create-service-user.pngnew file mode 100644index 0000000000..212447d5efBinary files /dev/null and b/docs/images/integrations/humanitec/create-service-user.png differdiff --git a/docs/images/secret-syncs/humanitec/humanitec-created.png b/docs/images/secret-syncs/humanitec/humanitec-created.pngnew file mode 100644index 0000000000..15c8f945b0Binary files /dev/null and b/docs/images/secret-syncs/humanitec/humanitec-created.png differdiff --git a/docs/images/secret-syncs/humanitec/humanitec-destination.png b/docs/images/secret-syncs/humanitec/humanitec-destination.pngnew file mode 100644index 0000000000..7c65b95fd3Binary files /dev/null and b/docs/images/secret-syncs/humanitec/humanitec-destination.png differdiff --git a/docs/images/secret-syncs/humanitec/humanitec-details.png b/docs/images/secret-syncs/humanitec/humanitec-details.pngnew file mode 100644index 0000000000..a48cd8c622Binary files /dev/null and b/docs/images/secret-syncs/humanitec/humanitec-details.png differdiff --git a/docs/images/secret-syncs/humanitec/humanitec-options.png b/docs/images/secret-syncs/humanitec/humanitec-options.pngnew file mode 100644index 0000000000..071c1b8f00Binary files /dev/null and b/docs/images/secret-syncs/humanitec/humanitec-options.png differdiff --git a/docs/images/secret-syncs/humanitec/humanitec-review.png b/docs/images/secret-syncs/humanitec/humanitec-review.pngnew file mode 100644index 0000000000..adda5535f2Binary files /dev/null and b/docs/images/secret-syncs/humanitec/humanitec-review.png differdiff --git a/docs/images/secret-syncs/humanitec/humanitec-source.png b/docs/images/secret-syncs/humanitec/humanitec-source.pngnew file mode 100644index 0000000000..24ad776a07Binary files /dev/null and b/docs/images/secret-syncs/humanitec/humanitec-source.png differdiff --git a/docs/images/secret-syncs/humanitec/select-humanitec-option.png b/docs/images/secret-syncs/humanitec/select-humanitec-option.pngnew file mode 100644index 0000000000..bb0cb9aed5Binary files /dev/null and b/docs/images/secret-syncs/humanitec/select-humanitec-option.png differdiff --git a/docs/integrations/app-connections/humanitec.mdx b/docs/integrations/app-connections/humanitec.mdxnew file mode 100644index 0000000000..8d54bd7830--- /dev/null+++ b/docs/integrations/app-connections/humanitec.mdx@@ -0,0 +1,42 @@+---+title: "Humanitec Connection"+description: "Learn how to configure a Humanitec Connection for Infisical."+---++Infisical supports connecting to Humanitec using a service user.++## Setup Humanitec Connection in Infisical++<Steps>+ <Step title="Create a Service User on Humanitec">+ Navigate to the Humanitec Service Users tab and create a new service user.+ This user will be used to connect to Humanitec from Infisical.+ + </Step>+ <Step title="Add Service User to Application">+ Add the Service User to the Application you want to sync with Infisical.+ Assign at least the **Developer** role to the Service User.+ + </Step>+ <Step title="Generate API token for Service User">+ Generate an API token for the Service User on the Service Users tab.+ This token will be used to connect to Humanitec from Infisical.+ </Step>+ <Step title="Navigate to App Connections">+ Navigate to the **App Connections** tab on the **Organization Settings** page.+ + </Step>+ <Step title="Add Connection">+ Select the **Humanitec Connection** option from the connection options modal.+ + </Step>+ <Step title="Add API token to Infisical">+ Add the API token to Infisical as a secret key.+ This will allow Infisical to connect to Humanitec using the service user.+ + </Step>+ <Step title="Connection Created">+ Your **Humanitec Connection** is now available for use.+ + </Step>+</Steps>diff --git a/docs/integrations/secret-syncs/humanitec.mdx b/docs/integrations/secret-syncs/humanitec.mdxnew file mode 100644index 0000000000..464d825b5e--- /dev/null+++ b/docs/integrations/secret-syncs/humanitec.mdx@@ -0,0 +1,64 @@+---+title: "Humanitec Sync"+description: "Learn how to configure a Humanitec Sync for Infisical."+---++**Prerequisites:**++ - Set up and add secrets to [Infisical Cloud](https://app.infisical.com)+ - Create a [Humanitec Connection](/integrations/app-connections/humanitec) using the API token++<Tabs>+ <Tab title="Infisical UI">+ 1. Navigate to **Project** > **Integrations** and select the **Secret Syncs** tab. Click on the **Add Sync** button.+ ++ 2. Select the **Humanitec** option.+ ++ 3. Configure the **Source** from where secrets should be retrieved, then click **Next**.+ ++ - **Environment**: The project environment to retrieve secrets from.+ - **Secret Path**: The folder path to retrieve secrets from.++ <Tip>+ If you need to sync secrets from multiple folder locations, check out [secret imports](/documentation/platform/secret-reference#secret-imports).+ </Tip>++ 4. Configure the **Destination** to where secrets should be deployed, then click **Next**.+ ++ - **Humanitec Connection**: The Humanitec Connection to authenticate with.+ - **Organization**: The Humanitec organization to sync secrets to.+ - **App**: The Humanitec app from the selected organization to sync secrets to.+ - **Environment**: The Humanitec environment from the selected app to sync secrets to.+ <p class="height:1px" />++ 5. Configure the **Sync Options** to specify how secrets should be synced, then click **Next**.+ ++ - **Initial Sync Behavior**: Determines how Infisical should resolve the initial sync.+ - **Overwrite Destination Secrets**: Removes any secrets at the destination endpoint not present in Infisical.+ <Note>+ Humanitec does not support importing secrets.+ </Note>+ - **Auto-Sync Enabled**: If enabled, secrets will automatically be synced from the source location when changes occur. Disable to enforce manual syncing only.++ 6. Configure the **Details** of your Humanitec Sync, then click **Next**.+ ++ - **Name**: The name of your sync. Must be slug-friendly.+ - **Description**: An optional description for your sync.++ 7. Review your Humanitec Sync configuration, then click **Create Sync**.+ ++ 8. If enabled, your Humanitec Sync will begin syncing your secrets to the destination endpoint.+ ++ </Tab>+ <Tab title="API">+ To create an **Humanitec Sync**, make an API request to the [Create Humanitec Sync](/api-reference/endpoints/secret-syncs/humanitec/create) API endpoint.+ </Tab>+</Tabs>diff --git a/docs/mint.json b/docs/mint.jsonindex f604ff3107..d54c27ffae 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -1,6 +1,6 @@{"name": "Infisical",- "openapi": "https://app.infisical.com/api/docs/json",+ "openapi": "https://3a13-190-31-36-142.ngrok-free.app/api/docs/json","logo": {"dark": "/logo/dark.svg","light": "/logo/light.svg",@@ -406,7 +406,8 @@"integrations/app-connections/azure-key-vault","integrations/app-connections/databricks","integrations/app-connections/gcp",- "integrations/app-connections/github"+ "integrations/app-connections/github",+ "integrations/app-connections/humanitec"]}]@@ -424,7 +425,8 @@"integrations/secret-syncs/azure-key-vault","integrations/secret-syncs/databricks","integrations/secret-syncs/gcp-secret-manager",- "integrations/secret-syncs/github"+ "integrations/secret-syncs/github",+ "integrations/secret-syncs/humanitec"]}]