Integration (kind: integration)

A connection to an external tool or service — Terraform, Helm, Compose today; Vault, Azure Key Vault, git, or a custom plugin as capability-backed stores grow. A standalone kind (unlike v1, which embedded it as a bare list on Configuration) so each integration is independently authorable and reusable — referenced by name from a provisioner (its optional integration: field), or found automatically by type for a variable/secret/feature store’s store: field, which has no field to name one by at all. See docs/integrations/ for a configuration guide per real integration (Infisical, Azure Key Vault, Azure App Configuration).

Schema

  • spec.type — the specific tool/service (terraform, opentofu, vault, azure-keyvault, bitwarden, git, or a custom plugin name) — an open string, not a closed enum. terraform and opentofu are two types: a provisioner binds the one its tool names (see workspace.md)

  • spec.capabilities — what this integration provides: variables, secrets, features, infrastructure, container, sources, or an x--prefixed extension strata doesn’t dispatch on. sources is what a remote in strata.yaml or an asset’s spec.location needs from its integration: credentials for cloning a private git repository (see integrations/git.md) or pulling a chart from a private chart registry (see integrations/chart-registries.md). release_gate (a platform’s pass/fail verdict on a repository at a commit) and image_findings (a platform’s open issues for a container image) back the workspace’s release_gate_policy and image_gate_policy (see how-to/security-gates.md); type: aikido provides both, one document per credential. review (a model’s advisory review of command output) is provided by type: claude (the Claude API, or Claude on Microsoft Foundry; needs pip install 'xyz-strata[ai]') and type: copilot (GitHub Copilot’s models, through GitHub Models). Both need configuration.model, with no default: on Foundry it is the name of your own deployment. For summaries (the plan review, the README paragraph) start with a small, fast model (Haiku class): the inputs are short and the answers a few sentences. Explaining a failed deploy means reading a tool’s error output and reasoning about the cause; give it a reasoning model (Opus class, effort: high) in a second document, named by the workspace’s review.explain_integration. claude takes platform (api or foundry), resource (Foundry), base_url, effort, http_timeout and max_retries, and authenticates with api_key, or on Foundry with Entra ID (managed_identity, cli); without an authentication block the SDK reads its own environment variables. copilot takes platform (models, the default, for GitHub Models; cli for the GitHub Copilot CLI) and http_timeout. On models it also takes organization (to bill an organization) and max_retries, and authenticates with token, else GITHUB_TOKEN or GH_TOKEN. On cli it takes host (see below) and authenticates with token, else COPILOT_GITHUB_TOKEN, else the CLI’s own copilot login. strata integration check proves the credentials and the model without writing anything, and names the URL it reached (on cli it uses one premium request, see below). A workspace’s review.integration names one to add an AI section to deploy plan --summary (see workspace.md) scanner is declared by type: trivy, type: grype (the cve_policy scanner) and type: checkov (the checkov_policy scanner). Declaring one fixes which tool the policy uses (Trivy before Grype when both are declared) and lets you require it and pin its version; without a document, the policies use whichever tool is on PATH

  • spec.configuration — integration-specific settings, validated by the integration itself (an unknown key is an error, not silently ignored)

  • spec.required — whether this integration must be ready on the machine running strata (default false). strata build run, every strata deploy command and strata integration list check every enabled integration first: a required one that is not ready (tool not on PATH, wrong version, misconfigured) is an error and stops the run; any other is a warning. strata validate warns when a disabled integration is also required: true, since required then has no effect

  • spec.enabled — whether it’s active (default true). A provisioner that an execution step runs must not name a disabled integration: strata validate reports it (provisioner_integration_disabled)

  • spec.authentication — same shape as provider.md’s

  • spec.transport — how it’s reached (cli, http, sdk, …) — checked against the resolved class’s own supported transports at runtime, not schema time

  • spec.version — the version the local tool must satisfy: a PEP 440 constraint (>= 1.7, ~= 1.9, >= 1.7, < 2.0) or Terraform’s ~> 1.9 (read as ~= 1.9). Checked by every strata deploy command before any step runs (not under --smoke-test, which never runs a tool). Only for CLI tools: on a networked integration (e.g. azure-keyvault, aikido) it is a validation error, since strata cannot read a remote service’s version. On a helm integration it also chooses the flags: a constraint that allows no Helm 4 ("<4") keeps Helm 3’s flags, which are deprecated; anything else, or no helm document, gets Helm 4’s (helm-chart-deployment.md)

  • spec.command — override the class’s default executable

  • spec.endpoints — address, for a networked transport

  • spec.lifecycle — hook scripts (.py only)

Example

apiVersion: strata.huybrechts.xyz/v2
kind: integration
meta:
  name: terraform
spec:
  type: terraform
  capabilities: [infrastructure]
  description: "Terraform CLI — provisions the terraform-tool workspaces in this solution"
  required: true
  enabled: true
  version: ">= 1.7"

An integration that authenticates cloning private git repositories (authentication names keys of secrets, never values):

apiVersion: strata.huybrechts.xyz/v2
kind: integration
meta:
  name: git-customers
spec:
  type: git
  capabilities: [sources]
  authentication:
    method: token
    token:
      token: CUSTOMER_GIT_TOKEN
      username: build-bot

Notes

  • A provisioner’s integration field is optional — if unset, resolution auto-binds to the sole compatible registered integration and errors (rather than guessing) if more than one candidate exists.

  • Version/transport/authentication are owned here, once — v1 modelled the same fact in three places (IntegrationModel.validation, WorkspaceIacModel.version, the tool binding itself) with nothing arbitrating between them.

  • strata integration check NAME [--deployment D] changes nothing. It first checks local readiness, the same check every strata deploy command runs before any step: enabled, tool on PATH, installed version against spec.version, plus the type’s own version rules (helm reads its version every time: undeclared Helm 3 is an error, declared Helm 3 a warning). The description names where the tool resolved on PATH. For a type with a connection check (aikido today) it then verifies credentials and reachability; with --deployment, the authentication key references resolve through that deployment. NAME is a document name or an integration type (strata integration check terraform checks what a tool: terraform provisioner would bind). Exit 0 ready, 1 unreachable, 2 unknown name / ambiguous type / --deployment needed, 3 not ready locally or credentials missing or rejected.

  • strata integration list [--deployment D] lists every Integration document with the same local readiness (reads each local tool’s version; never contacts a remote service). A type: git document is checked as the git CLI that source sync, remotes, assets and audit pushes run (PATH, spec.version). Another sources-only document whose type has no integration class is shown as a credential holder, not as a problem. A disabled document nothing uses is listed, never warned about. With --deployment it adds what that deployment binds at deploy time - step provisioners, value stores, the output store, gate policies (including types bound without a document) - and exits 3 when one of those is not ready: an offline CI preflight. With or without --deployment it also exits 3 when a required: true integration is not ready.

  • Where a review integration’s calls go. type: claude with platform: api calls the Claude API (https://api.anthropic.com); with platform: foundry, your resource’s endpoint, https://<resource>.services.ai.azure.com/anthropic/. configuration.base_url sends the calls elsewhere on either platform: an API gateway in front of Foundry, a private endpoint, a regional proxy. It must be an https:// URL without user information, a query or a fragment, since the key or Entra token goes to it; on Foundry it replaces resource (setting both is an error). Left out, the SDK’s own environment variables apply: ANTHROPIC_BASE_URL for the API, ANTHROPIC_FOUNDRY_RESOURCE or ANTHROPIC_FOUNDRY_BASE_URL for Foundry. The document wins over them, and an environment the SDK refuses (both Foundry variables set, neither, or a malformed URL) is a not_configured review, not a crash. type: copilot with platform: models calls GitHub Models (https://models.github.ai/inference/chat/completions, or /orgs/<organization>/...). Both honour HTTPS_PROXY and NO_PROXY for a corporate proxy, with no setting. strata integration check and every AI log event name the URL used (endpoint), without user information, a query or a fragment.

    type: copilot with platform: cli asks the GitHub Copilot CLI instead, for a GitHub Enterprise Cloud tenant with data residency (<name>.ghe.com), where GitHub Models is not offered: the review is billed to the Copilot licence and stays in the tenant’s region. The platform is always chosen by configuration.platform, never by whether copilot is on PATH, and a spec.transport that contradicts it is an error. configuration.host is a host name only (no scheme, port or path), github.com when left out; the endpoint named is https://<host>. The model is still required, and on cli is a Copilot model id (letters, digits, ., _, :, -). Which models a tenant offers is set by its Copilot model policy: ask the tenant owner. strata integration check proves the one configured, and a model the tenant does not offer makes a review not_configured. max_retries is not used: the CLI retries its own requests. The token must be a fine-grained personal access token with the Copilot Requests permission or an OAuth token; a classic ghp_ token is refused before the CLI runs. GITHUB_TOKEN and GH_TOKEN are never passed to the CLI: in GitHub Actions they hold the job’s token, which has no Copilot entitlement. Install the CLI with npm install -g @github/copilot (strata runs the native binary the npm package ships, never its .cmd or .ps1 launcher) or name the binary in spec.command. Each review is one run of the CLI in a new temporary directory, removed afterwards, with the request on stdin, no tool available, and only an allow-list of the environment (PATH, the home and temporary directories, the proxy and CA variables, and the system variables Windows needs); nothing COPILOT_*, GH_*, GITHUB_* or OTEL_* is passed on. A run that called a tool is discarded. strata runs CLI 1.0.77 or newer; an older one is a copilot_cli_too_old readiness problem and a not_installed review, and spec.version pins a version as for any tool. The log event of each review adds usage (premium_requests, and ai_units as the CLI counts them) and provider_version, the CLI’s version; the token counts stay 0, since the CLI does not report them. strata integration check names the binary and its version, then sends one constant request to prove the sign-in, the Copilot entitlement and the model: the CLI has no check that costs nothing, so the check uses one premium request and says so.

    kind: integration
    meta: { name: copilot-ghe }
    spec:
      type: copilot
      capabilities: [review]
      authentication: { method: token, token: { token: COPILOT_TOKEN } }
      configuration:
        platform: cli
        host: contoso.ghe.com
        model: claude-sonnet-5
    
    kind: integration
    meta: { name: claude }
    spec:
      type: claude
      capabilities: [review]
      authentication: { method: managed_identity, managed_identity: {} }
      configuration:
        platform: foundry
        base_url: https://ai-gateway.contoso.com/claude/   # instead of resource
        model: claude-haiku-5-5