Hanzo
PlatformHanzo KMSIntegrationsApp Connections

Octopus Deploy Connection

Learn how to configure an Octopus Deploy Connection for Hanzo KMS.

Hanzo KMS supports the use of API Keys to connect with Octopus Deploy.

Create Octopus Deploy API Key

Octopus Deploy supports two methods for creating API keys: via a user profile or via a service account.

From your Octopus Deploy dashboard, go to Configuration > Users and click on the Create Service Accounts button. Service Accounts

Provide:

  • Username: A name for the service account
  • Display Name: A display name for the service account

Then click Save. Create Service Account

Navigate to Configuration > Teams and click Add Team.

Add Team

Provide:

  • New Team Name: A name for the team
  • Team Description(optional): A description for the team
  • Select the team access type:
    • Accessible in the current space only
    • Accessible in all spaces(system team)

Create Team Then click Save.

After creating the team, you will be redirected to the team details page. Click on the Add Members button.

Add Service Account to Team

Select the service account you created in the previous step and click Add. Add Service Account to Team

After adding the service account to the team, Click on the User Roles tab and click Include User Role button.

Add User Role to Team

Search for the Project Contributor role and click on the Apply button. Apply User Role to Team

Click on the Save button. Save User Role to Team

After saving the team settings, we have to create an API key for the service account. Go back to Configuration > Users and find your service account. Click on the service account to view its details.

Click on the API Keys section and click New API Key. Create Service Account API Key

Provide a purpose for the key and set an expiry date, then click Generate New. Generate API Key

Make sure to copy the API key now, you won't be able to access it again. Service Account API Key Generated

Hanzo KMS recommends using a service account for production integrations as they provide better security and are not tied to individual user accounts.

From your Octopus Deploy dashboard, click on your profile in the bottom left corner and select My profile. Octopus Deploy User Profile

In your profile settings, go to the My API Keys tab and click New API Key. API Keys Tab

Provide a purpose for the key. Set an expiry date, then click Generate New. Create API Key

Make sure to copy the API key now, you won't be able to access it again. API Key Generated

Create an Octopus Deploy Connection in Hanzo KMS

In your Hanzo KMS dashboard, navigate to the Integrations tab in the desired project, then select App Connections. App Connections Tab

Click + Add Connection and choose Octopus Deploy Connection from the list of integrations. Select Octopus Deploy Connection

Complete the form by providing:

After submitting the form, your Octopus Deploy Connection will be successfully created and ready to use with your Hanzo KMS project. Octopus Deploy Connection Created

To create an Octopus Deploy Connection via API, send a request to the Create Octopus Deploy Connection endpoint.

Sample request

curl    --request POST \
        --url https://app.kms.hanzo.ai/api/v1/app-connections/octopus-deploy \
        --header 'Content-Type: application/json' \
        --data '{
            "name": "my-octopus-deploy-connection",
            "method": "api-key",
            "projectId": "abcdef12-3456-7890-abcd-ef1234567890",
            "credentials": {
                "instanceUrl": "https://your-instance.octopus.app",
                "apiKey": "[API KEY]"
            }
        }'

Sample response

{
  "appConnection": {
      "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
      "name": "my-octopus-deploy-connection",
      "description": null,
      "projectId": "abcdef12-3456-7890-abcd-ef1234567890",
      "version": 1,
      "orgId": "abcdef12-3456-7890-abcd-ef1234567890",
      "createdAt": "2025-10-13T10:15:00.000Z",
      "updatedAt": "2025-10-13T10:15:00.000Z",
      "isPlatformManagedCredentials": false,
      "credentialsHash": "d41d8cd98f00b204e9800998ecf8427e",
      "app": "octopus-deploy",
      "method": "api-key",
      "credentials": {
        "instanceUrl": "https://your-instance.octopus.app",
      }
  }
}

How is this guide?

Last updated on

On this page