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.terraformandopentofuare two types: a provisioner binds the one itstoolnames (see workspace.md)spec.capabilities— what this integration provides:variables,secrets,features,infrastructure,container,sources, or anx--prefixed extension strata doesn’t dispatch on.sourcesis what a remote instrata.yamlor an asset’sspec.locationneeds from itsintegration: 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) andimage_findings(a platform’s open issues for a container image) back the workspace’srelease_gate_policyandimage_gate_policy(see how-to/security-gates.md);type: aikidoprovides both, one document per credential.review(a model’s advisory review of command output) is provided bytype: claude(the Claude API, or Claude on Microsoft Foundry; needspip install 'xyz-strata[ai]') andtype: copilot(GitHub Copilot’s models, through GitHub Models). Both needconfiguration.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’sreview.explain_integration.claudetakesplatform(apiorfoundry),resource(Foundry),base_url,effort,http_timeoutandmax_retries, and authenticates withapi_key, or on Foundry with Entra ID (managed_identity,cli); without anauthenticationblock the SDK reads its own environment variables.copilottakesplatform(models, the default, for GitHub Models;clifor the GitHub Copilot CLI) andhttp_timeout. Onmodelsit also takesorganization(to bill an organization) andmax_retries, and authenticates withtoken, elseGITHUB_TOKENorGH_TOKEN. Oncliit takeshost(see below) and authenticates withtoken, elseCOPILOT_GITHUB_TOKEN, else the CLI’s owncopilot login.strata integration checkproves the credentials and the model without writing anything, and names the URL it reached (oncliit uses one premium request, see below). A workspace’sreview.integrationnames one to add an AI section todeploy plan --summary(see workspace.md)scanneris declared bytype: trivy,type: grype(thecve_policyscanner) andtype: checkov(thecheckov_policyscanner). 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 PATHspec.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 (defaultfalse).strata build run, everystrata deploycommand andstrata integration listcheck 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 validatewarns when a disabled integration is alsorequired: true, sincerequiredthen has no effectspec.enabled— whether it’s active (defaulttrue). A provisioner that an execution step runs must not name a disabled integration:strata validatereports it (provisioner_integration_disabled)spec.authentication— same shape as provider.md’sspec.transport— how it’s reached (cli,http,sdk, …) — checked against the resolved class’s own supported transports at runtime, not schema timespec.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 everystrata deploycommand 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 ahelmintegration it also chooses the flags: a constraint that allows no Helm 4 ("<4") keeps Helm 3’s flags, which are deprecated; anything else, or nohelmdocument, gets Helm 4’s (helm-chart-deployment.md)spec.command— override the class’s default executablespec.endpoints— address, for a networked transportspec.lifecycle— hook scripts (.pyonly)
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’sintegrationfield 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 everystrata deploycommand runs before any step: enabled, tool on PATH, installed version againstspec.version, plus the type’s own version rules (helmreads 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 (aikidotoday) it then verifies credentials and reachability; with--deployment, theauthenticationkey references resolve through that deployment. NAME is a document name or an integration type (strata integration check terraformchecks what atool: terraformprovisioner would bind). Exit 0 ready, 1 unreachable, 2 unknown name / ambiguous type /--deploymentneeded, 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). Atype: gitdocument is checked as thegitCLI that source sync, remotes, assets and audit pushes run (PATH,spec.version). Anothersources-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--deploymentit 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--deploymentit also exits 3 when arequired: trueintegration is not ready.Where a
reviewintegration’s calls go.type: claudewithplatform: apicalls the Claude API (https://api.anthropic.com); withplatform: foundry, your resource’s endpoint,https://<resource>.services.ai.azure.com/anthropic/.configuration.base_urlsends the calls elsewhere on either platform: an API gateway in front of Foundry, a private endpoint, a regional proxy. It must be anhttps://URL without user information, a query or a fragment, since the key or Entra token goes to it; on Foundry it replacesresource(setting both is an error). Left out, the SDK’s own environment variables apply:ANTHROPIC_BASE_URLfor the API,ANTHROPIC_FOUNDRY_RESOURCEorANTHROPIC_FOUNDRY_BASE_URLfor Foundry. The document wins over them, and an environment the SDK refuses (both Foundry variables set, neither, or a malformed URL) is anot_configuredreview, not a crash.type: copilotwithplatform: modelscalls GitHub Models (https://models.github.ai/inference/chat/completions, or/orgs/<organization>/...). Both honourHTTPS_PROXYandNO_PROXYfor a corporate proxy, with no setting.strata integration checkand every AI log event name the URL used (endpoint), without user information, a query or a fragment.type: copilotwithplatform: cliasks 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 byconfiguration.platform, never by whethercopilotis on PATH, and aspec.transportthat contradicts it is an error.configuration.hostis a host name only (no scheme, port or path),github.comwhen left out; theendpointnamed ishttps://<host>. The model is still required, and oncliis a Copilot model id (letters, digits,.,_,:,-). Which models a tenant offers is set by its Copilot model policy: ask the tenant owner.strata integration checkproves the one configured, and a model the tenant does not offer makes a reviewnot_configured.max_retriesis 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 classicghp_token is refused before the CLI runs.GITHUB_TOKENandGH_TOKENare never passed to the CLI: in GitHub Actions they hold the job’s token, which has no Copilot entitlement. Install the CLI withnpm install -g @github/copilot(strata runs the native binary the npm package ships, never its.cmdor.ps1launcher) or name the binary inspec.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); nothingCOPILOT_*,GH_*,GITHUB_*orOTEL_*is passed on. A run that called a tool is discarded. strata runs CLI 1.0.77 or newer; an older one is acopilot_cli_too_oldreadiness problem and anot_installedreview, andspec.versionpins a version as for any tool. The log event of each review addsusage(premium_requests, andai_unitsas the CLI counts them) andprovider_version, the CLI’s version; the token counts stay 0, since the CLI does not report them.strata integration checknames 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