Skip to content

Air-gapped deployment

This is the disconnected path, where your nodes have no route to the public internet. It is the same four phases as Self-hosted deployment, with three differences that run through all of them: everything you need must already be inside the network, every provider endpoint must be routed privately, and dependency resolution happens at build time rather than at run time.

Air-gapped implies self-hosted. A hosted control plane is reachable over the public internet, which is the one thing your nodes do not have, so the control plane runs inside your network and you operate it.

flowchart TB
  M["PHASE 0<br/>Mirrors<br/><br/>Images into your registry<br/>Packages into your index<br/>An internal identity provider"]
  A["PHASE 1<br/>Control plane<br/><br/>Install the CLI from your index<br/>Deploy from mirrored images<br/>Reach it internally"]
  B["PHASE 2<br/>Identity and tenancy<br/><br/>Exchange against your own issuer<br/>Create organisation and workspace"]
  C["PHASE 3<br/>Enrollment authority<br/><br/>Reconcile bootstrap authority<br/>Create a data plane pool"]
  D["PHASE 4<br/>Nodes<br/><br/>Prepare, edit endpoints, apply<br/>Verify enrollment"]

  M --> A --> B --> C --> D

Phase 0: what must already be inside the network

Four things have to exist before any command in this path succeeds. Each replaces something the connected paths reach over the internet.

What Replaces Used by
A container registry holding the mirrored platform images Pulling from the published registry The control-plane deployment and every node
A Python index serving the CLI and SDK Installing from the public index Your workstation and automation
An identity provider with an internal issuer A public cloud identity provider xratu auth exchange
Object storage reachable from your nodes A cloud bucket over public endpoints Artifact bytes and telemetry payload bodies

Mirror the three platform images. Pull them where you have egress, then push them into the registry your cluster can reach.

export XRATU_IMAGE_REGISTRY=<xratu-published-registry>
export XRATU_VERSION=<release-tag>
export INTERNAL_REGISTRY=<your-internal-registry>

for image in xratu-control-plane xratu-data-plane xratu/kernels/execd; do
  docker pull  "${XRATU_IMAGE_REGISTRY}/${image}:${XRATU_VERSION}"
  docker tag   "${XRATU_IMAGE_REGISTRY}/${image}:${XRATU_VERSION}" \
               "${INTERNAL_REGISTRY}/${image}:${XRATU_VERSION}"
  docker push  "${INTERNAL_REGISTRY}/${image}:${XRATU_VERSION}"
done

Exit gate. All three images resolve from inside the network.

for image in xratu-control-plane xratu-data-plane xratu/kernels/execd; do
  docker manifest inspect "${INTERNAL_REGISTRY}/${image}:${XRATU_VERSION}" >/dev/null \
    && echo "mirrored: ${image}"
done

Before you start

export CP_NS=xratu-cp
export CP_SERVICE=xratu-control-plane
export CP_PORT=8080

export ORG=org-a
export WS=ws-a
export POOL=pool-default
export DP_INSTALL=xratu-dataplane

Phase 1: control plane

Install the CLI from your internal index.

export XRATU_INDEX_URL=<your-internal-package-index>
pip install --index-url "${XRATU_INDEX_URL}" xratu
xratu --help

Deploy the control plane from the mirrored image.

kubectl create namespace ${CP_NS} --dry-run=client -o yaml | kubectl apply -f -

sed \
  -e "s|namespace: xratu-cp|namespace: ${CP_NS}|g" \
  -e "s|REPLACE_CONTROL_PLANE_IMAGE|${INTERNAL_REGISTRY}/xratu-control-plane:${XRATU_VERSION}|g" \
  control_plane/templates/deployment/k8s-control-plane.yaml | kubectl apply -f -

kubectl -n ${CP_NS} rollout status deployment/xratu-control-plane --timeout=600s

kubectl -n ${CP_NS} port-forward svc/${CP_SERVICE} 18080:${CP_PORT} &
export CP_CLI_ENDPOINT="http://127.0.0.1:18080"
xratu config profile set default --endpoint "${CP_CLI_ENDPOINT}" --use

Expected state. The rollout completes and the pod runs api, controller and scheduler. The storage backend, profile and control-plane identity are latched on this first start.

Exit gate. The three health endpoints answer.

curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/startup"   >/dev/null && echo "startup ok"
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/readiness" >/dev/null && echo "readiness ok"
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/liveness"  >/dev/null && echo "liveness ok"

Phase 2: identity and tenancy

The cloud provider token paths used by the connected topologies reach a public provider endpoint, so a disconnected deployment authenticates against an issuer inside the network. That is the generic enterprise OIDC path, and it needs its issuer and audience configured on the control plane rather than working out of the box.

xratu config profile set default --token "" --use

TOKEN="<token-from-your-internal-oidc-issuer>"
xratu auth exchange --provider oidc --external-token "${TOKEN}" --set-token --set-actor

xratu auth whoami
xratu create organization ${ORG} --set-active
xratu create workspace ${WS} --organization ${ORG} --set-active

Exit gate. The resolved actor is real.

xratu auth whoami | jq -e '.actor_id != "system"' >/dev/null && echo "actor resolved"

If the exchange returns 403 unable to resolve actor from external token, the control plane's issuer and audience allowlists do not yet match your issuer. See Custom enterprise OIDC.

Phase 3: enrollment authority

Unchanged from the connected paths. Both commands are control-plane-only.

xratu bootstrap reconcile ${ORG}
xratu dataplane pool create ${ORG} ${POOL}
xratu dataplane pool list ${ORG}

Phase 4: nodes

The install command is the same one every topology uses, and it authors the bundle for you: the normalised spec, the Terraform, and the Kubernetes manifests. What the disconnected path adds is the provider endpoint fields, which are carried by the install spec rather than by flags, because the generated defaults are the provider's public endpoints and your network needs private ones.

So this path runs through the spec: prepare once to author it, set the endpoints in it, then prepare and apply from the spec. Those fields are part of the input surface, so once they are in the file, re-preparing keeps them. See The install contract.

Prepare. Drive it with flags exactly as you would on a connected network, pointing the registry and bucket at your internal ones. The provider fields are the same ones the connected paths use, and each cloud's page carries them in full: GCP, AWS, Azure.

xratu dataplane install prepare ${ORG} ${POOL} ${DP_INSTALL} \
  --provider gcp \
  --dp-count 2 \
  --artifact-registry registry.internal.example/xratu \
  --artifact-bucket gcs://internal-artifacts/xratu \
  --project-id <gcp-project-id> \
  --region <region>
xratu dataplane install prepare ${ORG} ${POOL} ${DP_INSTALL} \
  --provider aws \
  --dp-count 2 \
  --artifact-registry registry.internal.example/xratu \
  --artifact-bucket s3://internal-artifacts/xratu \
  --account-id <aws-account-id> \
  --region <region> \
  --cluster-oidc-issuer https://oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id> \
  --cluster-oidc-provider-arn arn:aws:iam::<aws-account-id>:oidc-provider/oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id>
xratu dataplane install prepare ${ORG} ${POOL} ${DP_INSTALL} \
  --provider azure \
  --dp-count 2 \
  --artifact-registry registry.internal.example/xratu \
  --artifact-bucket azblob://internal-artifacts/xratu \
  --subscription-id <subscription-id> \
  --tenant-id <tenant-id> \
  --location <location> \
  --resource-group <resource-group> \
  --aks-oidc-issuer https://<location>.oic.prod-aks.azure.com/<aks-oidc-path>/ \
  --artifact-registry-scope /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ContainerRegistry/registries/<acr-name>

This writes the install bundle under install/${DP_INSTALL}/, including install.input.yaml as the normalised spec, install.spec.json as the bundle document that apply consumes, and the rendered artifacts.

ls install/${DP_INSTALL}/

Edit the generated spec. Open install/${DP_INSTALL}/install.input.yaml and change the provider endpoints to your private routing. This is the one operator override point the generated spec exists to give you, and these fields are required rather than optional: preparation refuses a spec that leaves them empty. Which fields they are depends on your cloud.

One field to route.

provider_config:
  project_id: <gcp-project-id>
  region: <region>
  gcp_iamcredentials_endpoint: https://iamcredentials.private.internal.example

Two fields, because the node reaches STS and the ECR API separately. Both are normally VPC endpoints.

provider_config:
  account_id: '<aws-account-id>'
  region: <region>
  aws_sts_endpoint: https://vpce-0abc-sts.<region>.vpce.amazonaws.com
  aws_ecr_api_endpoint: https://vpce-0abc-ecr.<region>.vpce.amazonaws.com

Quote account_id so a numeric account is carried as a string.

One field, which is also where a sovereign cloud is selected.

provider_config:
  subscription_id: <subscription-id>
  tenant_id: <tenant-id>
  location: <location>
  resource_group: <resource-group>
  azure_authority_host: https://login.private.internal.example/

You can pin the node image here too, if your mirrored registry differs from the artifact registry:

runtime:
  service_account: xratud
  image: registry.internal.example/xratu-data-plane:<release-tag>
  cloud_identity_name: xratu-dataplane-runtime

Prepare again from the edited spec. Editing the spec alone is not enough, because apply consumes the bundle document and the rendered manifests rather than the spec. Re-running preparation against the edited file regenerates them with your endpoints in place.

xratu dataplane install prepare --install-spec install/${DP_INSTALL}/install.input.yaml

Because the endpoints now live in the spec rather than in a rendered file, the single-call form works from here on:

xratu dataplane install up --install-spec install/${DP_INSTALL}/install.input.yaml

Apply.

xratu dataplane install apply --install-spec install/${DP_INSTALL}/install.input.yaml

Expected state. Apply materialises the StatefulSet and its retained volume baseline, project runtime authority, workload identity registration, the managed private fabric and the enrollment token set, then scales to dp_count. Each node performs its bootstrap join against the internal control-plane URL.

Exit gate. Every node is registered.

xratu get dataplanes
xratu get dataplanes | jq -e 'length >= 2' >/dev/null && echo "nodes registered"

After day 0: builds without egress

Day 0 ends at a verified enrollment, but a disconnected deployment has one more standing requirement, and it applies to everything you build afterwards.

Dependency resolution runs in one of two modes. Selecting airgapped locks the profile, forces resolution to build time and restricts runtime behaviour to pre-resolved inputs only, so a runtime that would have to fetch something is refused rather than reaching out:

{
  "contract_version": "resolver_profile.v1",
  "resolver_mode": "airgapped",
  "locked_mode": true,
  "resolution_stage": "build_time",
  "runtime_behavior": "pre_resolved_only"
}

What the resolver may draw on is a control-plane-produced document naming source endpoints, not packages. Its source_kind values are a closed set of python_index, bundle_registry and container_registry, and it carries no credentials. It deliberately refuses per-package allowlist fields such as allowed_packages or package_allowlist, because approving sources keeps a new dependency from becoming a ticket:

{
  "contract_version": "xck.approved_dependency_sources.v1",
  "produced_by": "control_plane",
  "approved_sources_id": "internal-mirrors",
  "approved_sources_revision": "1",
  "sources": [
    {
      "source_id": "internal-python",
      "source_kind": "python_index",
      "source_locator": "https://pypi.internal.example/simple",
      "access_profile_id": "dp-internal-python",
      "access_mode": "dataplane_build_identity",
      "preference_rank": 0,
      "approval_digest": "sha256:..."
    },
    {
      "source_id": "internal-oci",
      "source_kind": "container_registry",
      "source_locator": "oci://registry.internal.example/dependencies",
      "access_profile_id": "dp-internal-oci",
      "access_mode": "dataplane_build_identity",
      "preference_rank": 1,
      "approval_digest": "sha256:..."
    }
  ],
  "approved_sources_digest": "sha256:..."
}

Lower preference_rank values are preferred. See Closure dependency resolution and Foundation resolution and admission.

Phase gates at a glance

Phase Exit gate If it fails
0 All three images resolve from the internal registry Registry and bucket schemes
1 All three health endpoints answer Finalization invariants
2 actor_id is not system Custom enterprise OIDC
3 The pool is listed for the organisation Bootstrap reconcile
4 Every node is registered Diagnosing a node that will not enroll

Where other paths take over

Private connectivity. If your nodes reach provider APIs and your registry over private endpoints but still have a route out, you are not disconnected and this path is more than you need: keep resolution in standard mode and follow Self-hosted deployment, taking only the provider endpoint overrides from phase 4 above.

Installing outside a cloud. The install contract's provider is a closed set of gcp, aws and azure, so a disconnected deployment selects one of them and routes its endpoints internally. On-premises mutual TLS is available as a workload identity mode, chosen separately from the install provider.

IAM inside a restricted network changes per cloud, and each cloud's page carries its own roles, annotations and endpoint fields: GCP, AWS and Azure.

Publishing artifacts into a disconnected environment is not the ordinary publish path: the bytes are mirrored into your internal registry and bucket the same way the platform images are in phase 0, and where they are allowed to live is covered by Storage boundaries.

Where day 0 ends

Your nodes can now build and deploy projects from internal sources only, and a deployed project runtime's kernel executes that project's agents and workflows itself. Day-2 operations are in Operate.