Skip to main content

Deploy the contracts from inside your own cluster

A Job you enable inside your cluster deploys the DALP contracts with a key you hold, pulls images from your mirror and resumes where it stopped.

An institution that runs DALP in a restricted or air-gapped cluster now deploys the DALP smart contracts from inside that cluster, with a key it holds. A security review of such a cluster questions any deploy step that needs outbound internet or a key someone else keeps. 3.1 runs the contract deployment inside the cluster you operate, from images in your own mirror.

A Job you switch on inside your own cluster deploys the contracts, signing with a key you hold

Before it sends a transaction, the Job checks that its key signs as the deployer address you recorded. It writes each completed step to a journal on a volume the upgrade keeps.

Default
Off until the operator enables it
Deployer key
Kubernetes Secret you create
Key check
Stops on the wrong address
Re-runs
Resume from the last step

Before and after

Before 3.1: DALP 3.0 shipped with no step in its deployment charts that deployed the DALP contracts from inside the cluster. A restricted cluster needed the contracts deployed from a machine with wider network access, and that exception was the part its security review questioned.

With 3.1: the operator turns the contract deployment Job on in the deployment's values. The Job runs inside the cluster from an image in the operator's own mirror, reads the deployer key at runtime, checks it, deploys the contracts through the network node the operator names and records every step in a journal. The platform's services trust object storage whose certificate comes from the operator's private certificate authority.

The contract deployer runs inside the operator's cluster.The contract deployer Job runs inside the operator's cluster. It pulls its image from the operator's image mirror and reads the deployer key from a Kubernetes Secret the operator creates. It is off until the operator enables it, checks the key against the expected deployer address, has no role bindings and resumes from its journal. It records each step in a deploy journal on a kept volume and deploys the contracts through the operator's network node endpoint. Separately, the Platform API and the workflow engine mount the operator's CA certificate and trust object storage behind that private certificate authority.The contract deployer runs inside the operator's cluster.The contract deployer Job runs inside the operator's cluster. It pulls its image from the operator's image mirror and reads the deployer key from a Kubernetes Secret the operator creates. It is off until the operator enables it, checks the key against the expected deployer address, has no role bindings and resumes from its journal. It records each step in a deploy journal on a kept volume and deploys the contracts through the operator's network node endpoint. Separately, the Platform API and the workflow engine mount the operator's CA certificate and trust object storage behind that private certificate authority.

A Job inside the operator's cluster deploys the contracts with the operator's key and resumes from its journal, while platform services trust the operator's CA.

Deploy the contracts with a key that stays with you

The Job reads the deployer key at runtime from a Kubernetes Secret the operator creates, or from the reference architecture's secrets manager where the operator wires it in. Without either, it fails closed and deploys nothing.

Your operator sees every token and add-on factory the deployed system offers.

An operator's key ceremony produces the deployer key and records its public address. The operator stores the key in a Kubernetes Secret, enters the address as the expected deployer in the values, names the network node endpoint and turns the Job on. At the next upgrade the Job starts, reads the key and checks the address it signs as against the expected one.

A mismatch stops the run before any transaction leaves the cluster, so a key that does not match the recorded address cannot deploy. The deployer key stays under your institution's own key ceremony and secret store, and the vendor does not need it to deploy. Because the Job checks the key against the address in the values, that address must come from the key ceremony's own record.

Show a security reviewer a short, fixed list of what the Job can reach

The Job's service account has no Kubernetes role bindings, and its account token is mounted only when an external secrets manager has to authenticate the pod. An optional egress policy limits the Job's network access to DNS and the endpoints the operator lists.

A platform security reviewer reading the rendered chart sees an account that grants nothing, a journal volume and, with the egress policy on, a pod that reaches only the network node and the secrets manager. With the egress policy on and no endpoints listed, the Job reaches only DNS and cannot deploy, so the operator lists both endpoints.

Resume an interrupted deployment without a second contract set

The Job writes each completed step to a deployment journal on a volume that upgrades and uninstalls leave in place. If a deployment stops halfway because the network node endpoint went down, the operator restores the endpoint and runs the upgrade again.

The new Job reads the journal, skips the steps that already finished and continues from the last completed one. A Job that finds a finished deployment in its journal changes nothing, so the institution ends with one contract set at one set of addresses. Run one upgrade at a time while a deployment is in flight, and back up the journal volume, because a re-run without it deploys a new contract set at new addresses.

Keep images and storage on your own network

One global registry setting points the images the charts reference, including the contract deployer, at the operator's own mirror. For object storage signed by a private certificate authority, the chart stores the operator's CA certificate as a Secret or reuses one the operator already manages. The OpenShift values show how the Platform API and the workflow engine mount it.

A bank whose S3-compatible store inside its data centre uses an internal CA certificate keeps uploads and exports on that store. When something needs diagnosis, an administrator exports a redacted debug bundle instead of granting shell access to the cluster. The CA trust stays off until the operator supplies a certificate, the mirror must hold every image the charts reference, and calls to an external custody or KYC provider still leave the network.

Upgrading

Nothing to do. The contract deployment Job and the private CA trust are off by default, and a deployment that enables neither runs as before. Both first shipped in the 3.0 patch releases, the CA trust in 3.0.6 and the Job in 3.0.9, and both are part of 3.1. Leave the Job off on a deployment whose contracts already exist: without a journal from an earlier run, the Job deploys a new contract set. Install on OpenShift shows the values for both.

Why it matters

  • Banks: the contracts deploy from inside a cluster with no outbound route, and the deployer key comes from your own key ceremony and secret store.
  • Exchanges, CSDs and market infrastructures: the contracts deploy from inside your network, and the journal shows every step that ran.
  • Regulators: the deployer key, the images and object storage stay on the network the institution runs, and the chart values show where each comes from.

Next steps

Was this page helpful?