InfraDots logo
Documentation

Integrations

Integrations allow you to connect InfraDots Platform with external services and tools to enhance your infrastructure workflow.

What are Integrations?

Integrations in InfraDots Platform enable you to:

  • Trigger notifications after infrastructure operations
  • Connect with external APIs and services
  • Automate workflows between InfraDots and other tools
  • Extend the platform's capabilities with custom integrations

Types of Integrations

InfraDots Platform supports the following integration types:

  • Slack: Send notifications to Slack channels after infrastructure operations
  • Microsoft Teams: Send Adaptive Card notifications to Teams channels via incoming webhooks
  • Webhook: Send HTTP requests to external endpoints after specific job stages
  • Custom: Create specialized integrations for your unique workflow needs

Slack Integration

Connect InfraDots to Slack to receive notifications about your infrastructure runs directly in your Slack channels.

Setting Up Slack

  1. Navigate to your organization's settings
  2. Select the "Integrations" tab
  3. Click "Add Integration"
  4. Enter a Name for the integration
  5. Select Slack as the type
  6. Add the default channels that should receive notifications (comma-separated, e.g. infrastructure, devops)
  7. Optionally add environment channels for per-environment routing (e.g. production:#prod-alerts, staging:#staging)
  8. Click "Add" — then click Add to Slack on the integration card to authorize the connection
  9. Complete the Slack OAuth flow to link your workspace

Once authorized, InfraDots will post run notifications to the configured channels when attached to workspaces.

Slack Notification Content

Each Slack notification includes:

  • Workspace and organization name
  • Run status (completed, failed, waiting for approval, cancelled, rejected)
  • Job ID and commit reference with a link
  • Direct link to approve runs that are waiting for review

Approving a Run from Slack

A run that is waiting for review arrives with Approve and Discard buttons, so a plan can be answered without leaving the channel.

  • The approval is recorded against you, not the bot. InfraDots matches your Slack profile email to your InfraDots account and checks your permissions in that organization before anything happens. If your Slack email doesn't match an InfraDots account, the button tells you so and nothing is approved.
  • The notification stays where it is. The outcome is posted as a reply in the thread — who approved, which workspace, and what happens next — so the record of the run, its link and its commit stay readable in the channel afterwards.
  • Approving supersedes competing plans. Other runs waiting for approval on the same workspace and branch are cancelled, because they were planned against a state the apply is about to change. Runs on other workspaces, and on other branches of the same workspace (a pull request, for example), are untouched.
  • Several organizations in one Slack workspace is supported: each notification acts on the organization it belongs to, which is named on the card.

If a run has already been answered — approved, discarded, or cancelled by a newer run — the button says so rather than failing silently.

Microsoft Teams Integration

Connect InfraDots to Microsoft Teams to receive Adaptive Card notifications in your Teams channels.

Teams uses incoming webhooks — no OAuth is required. You configure a webhook URL directly in Teams and paste it into InfraDots.

Getting a Teams Webhook URL

  1. In Microsoft Teams, open the channel you want to receive notifications
  2. Click ··· (More options) → Connectors
  3. Find Incoming Webhook and click Configure
  4. Give it a name (e.g. "InfraDots") and click Create
  5. Copy the webhook URL

Setting Up a Teams Integration

  1. Navigate to your organization's settings
  2. Select the "Integrations" tab
  3. Click "Add Integration"
  4. Enter a Name for the integration
  5. Select Microsoft Teams as the type
  6. Paste one or more webhook URLs (comma-separated)
  7. Optionally add environment webhook URLs for per-environment routing (e.g. production:https://prod.webhook.office.com/...)
  8. Click "Add"

Once created, click Test on the integration card to verify the connection.

Teams Notification Content

Notifications are sent as Adaptive Cards and include:

  • Workspace and organization name
  • Run status with color coding (green for success, red for failure)
  • Job ID and commit reference
  • Action button to approve runs that are waiting for review (waiting for approval status)

Setting Up Webhook / Custom Integrations

Creating a Webhook or Custom Integration

  1. Navigate to your organization's settings
  2. Select the "Integrations" tab
  3. Click "Add Integration"
  4. Fill in the integration details:
    • Name: A descriptive name for the integration
    • Type: Select Webhook or Custom
    • API URL: The endpoint URL that will receive the integration data
    • API Key: Authentication key for the external service (stored encrypted)
    • Description: Optional details about the integration's purpose
  5. Click "Add" to create the integration

Managing Integrations

Editing an Integration

  1. Navigate to your organization's integrations settings
  2. Find the integration you want to edit
  3. Click the Edit button
  4. Update the integration details
  5. Click Update to save changes

Testing an Integration

Slack and Teams integrations have a Test button that sends a test notification to verify the connection is working. The button appears once a Slack workspace is connected (OAuth complete) or Teams webhook URLs are configured.

Deleting an Integration

  1. Navigate to your organization's integrations settings
  2. Find the integration you want to delete
  3. Click the Delete button
  4. Confirm the deletion

Attaching Integrations to Workspaces

Once you've created integrations at the organization level, attach them to specific workspaces to trigger notifications after job stages.

Attaching an Integration to a Workspace

  1. Navigate to your workspace
  2. Click Integrations in the workspace menu
  3. Click Attach Integration
  4. Select an integration from the dropdown
  5. Choose when to trigger the integration:
    • After Plan: Trigger after the planning stage completes
    • After Apply: Trigger after the apply stage completes
    • After all stages: Trigger after both plan and apply stages
  6. Optionally configure workspace-level overrides:
    • For Slack: specify workspace-specific channels (comma-separated) and/or environment channels — these override the org defaults for this workspace only
    • For Teams: specify workspace-specific webhook URLs (comma-separated) and/or environment webhook URLs — these override the org defaults for this workspace only
    • Leave blank to fall back to the org-level defaults
  7. Click Attach

Channel and Webhook Override Resolution

When a notification fires, InfraDots resolves the target channels/webhooks in this order (first match wins):

  1. Workspace-level environment override (e.g. channels for production)
  2. Org-level environment override
  3. Workspace-level default channels/webhooks
  4. Org-level default channels/webhooks

This lets you route production alerts to a dedicated channel while using shared defaults for other environments.

Managing Workspace Integrations

Viewing Attached Integrations

Navigate to your workspace → Integrations to see:

  • Integration name and type
  • Run after stage setting
  • Workspace-level channel or webhook overrides (if configured)
  • Attachment date and who attached it

Detaching an Integration

  1. Navigate to your workspace integrations
  2. Find the integration you want to detach
  3. Click the Detach button and confirm

How Integrations Work

When an integration is attached to a workspace, it fires automatically after the specified job stage completes.

Execution Flow

VCS Push ──▶ Run Triggered ──▶ Plan Stage ──▶ Apply Stage
                                    │               │
                                    ▼               ▼
                              After Plan       After Apply
                              Triggers         Triggers
                                    │               │
                                    ▼               ▼
                           Slack / Teams /   Slack / Teams /
                           Webhook / Custom  Webhook / Custom
  1. A job runs in the workspace
  2. When the specified stage completes, all attached integrations for that stage are triggered
  3. For Webhook/Custom: a JSON payload is sent to the configured API URL
  4. For Slack: a Block Kit message is posted to the resolved channels
  5. For Teams: an Adaptive Card is posted to the resolved webhook URLs
  6. Each execution is recorded (status code and response stored)

Webhook Payload

For Webhook and Custom integrations, InfraDots sends a JSON payload to your endpoint:

{
  "workspace_id": "...",
  "workspace_name": "production-infra",
  "organization_id": "...",
  "organization_name": "acme",
  "status": "COMPLETED",
  "job": "job-id",
  "job_started_date": "2025-01-15T10:30:00Z",
  "job_completion_date": "2025-01-15T10:35:00Z",
  "commit": "abc1234",
  "commit_url": "https://github.com/org/repo/commit/abc1234",
  "comment": "",
  "integration": {
    "id": "...",
    "name": "My Webhook",
    "type": "WEBHOOK"
  }
}

Repository Analysis Events

A repository analysis belongs to the organization rather than to one workspace, so its events skip workspace attachments. They go to the integration's own default channels (Slack), webhook URLs (Teams) or API URL (Webhook), and only to integrations whose default events include them. Neither event is in the defaults, so attaching or creating an integration never starts them; tick them under Notify on → Repository analysis events in the integration's settings.

EventSent when
analysis.proposedAn analysis finishes and its proposal is waiting for you to confirm
analysis.failedAn analysis could not produce a proposal

Agent Change Events

What happens after an agent's pull request merges (After the merge) is sent as four workspace events. Like the other agent events they are not in the defaults; tick them under Notify on → Agent events where the integration is attached to the workspace. A failed apply is the run.failed you already receive.

EventSent when
agent.apply_verifiedThe merged change applied, or its plan found nothing to apply
agent.apply_missingNo run applying the merged change started within 60 minutes of the merge
agent.remediation_completedA remediation run diagnosed a failed apply; the payload's agent.diagnosis has the cause and steps
agent.remediation_failedA remediation run could not diagnose a failed apply

The message names the organization, the repositories, the environment, how many targets the proposal has (and how many are selected), the workspaces they go to, and links to the analysis in the web app, where you review and confirm. Slack and Teams also show the proposal's summary. The webhook payload carries the same under an analysis object (id, url, status, environment, repositories, summary, target_count, selected_count, workspaces). Your notes and the agent's reasoning are never sent, and analysis.failed carries no reason; the link shows it to people who can open the analysis.

Security Considerations

  • API keys and Slack bot tokens are encrypted at rest in the database
  • Teams webhooks are plain HTTPS URLs — treat them as secrets and rotate if exposed
  • Use HTTPS endpoints for all webhook integrations
  • Webhook, Custom and Teams URLs must resolve to public IP addresses. InfraDots refuses a URL whose host resolves to a private, loopback or link-local address (such as 10.0.0.0/8, 127.0.0.1 or 169.254.169.254) when you save it, and checks again before every delivery
  • Workspace-level channel/webhook overrides are stored per workspace attachment and do not affect other workspaces sharing the same integration