Add Humanitec secret sync integration docs
@@ -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}`,
|
`${IntegrationUrls.HUMANITEC_API_URL}/orgs/${destinationConfig.org}/apps/${destinationConfig.app}/envs/${destinationConfig.env}/values/${key}`,
|
||||||
{
|
{
|
||||||
value: secretMap[key].value,
|
value: secretMap[key].value,
|
||||||
description: secretMap[key].comment
|
description: secretMap[key].comment || ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
|
After Width: | Height: | Size: 340 KiB |
|
After Width: | Height: | Size: 232 KiB |
|
After Width: | Height: | Size: 229 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 258 KiB |
@@ -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>
|
||||||
@@ -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>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Infisical",
|
"name": "Infisical",
|
||||||
"openapi": "https://app.infisical.com/api/docs/json",
|
"openapi": "https://3a13-190-31-36-142.ngrok-free.app/api/docs/json",
|
||||||
"logo": {
|
"logo": {
|
||||||
"dark": "/logo/dark.svg",
|
"dark": "/logo/dark.svg",
|
||||||
"light": "/logo/light.svg",
|
"light": "/logo/light.svg",
|
||||||
@@ -406,7 +406,8 @@
|
|||||||
"integrations/app-connections/azure-key-vault",
|
"integrations/app-connections/azure-key-vault",
|
||||||
"integrations/app-connections/databricks",
|
"integrations/app-connections/databricks",
|
||||||
"integrations/app-connections/gcp",
|
"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/azure-key-vault",
|
||||||
"integrations/secret-syncs/databricks",
|
"integrations/secret-syncs/databricks",
|
||||||
"integrations/secret-syncs/gcp-secret-manager",
|
"integrations/secret-syncs/gcp-secret-manager",
|
||||||
"integrations/secret-syncs/github"
|
"integrations/secret-syncs/github",
|
||||||
|
"integrations/secret-syncs/humanitec"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||