Skip to main content

Run the Utila signing agent from the Helm chart

Deploy the customer-run Utila signing agent beside DALP: chart values, image, state, keys, and the network path that keeps the decision route internal.

Utila signs a DALP transaction only after a co-signer you operate approves it. The dalp Helm chart can deploy that co-signer (called the signing agent here) beside DALP. In its default webhook-decision mode, the agent asks DALP before signing, and DALP approves only when the held request matches what DALP filed.

The agent adds no policy judgement of its own: it catches tampered requests, not requests DALP should not have filed, so human approval rules still live in your Utila policy. The workload ships off by default and requires a Utila provider configuration, a registered device ID, a container image you built and a state store.

Use this page for architecture, chart values and network configuration. For device enrolment, key rotation and incident triage, see the Utila signing agent runbook.

The agent reaches DALP from inside the cluster, and the public edge never routes the decision route.Inside one cluster, the signing agent pod has an accent arrow to the DALP API Service. The arrow is labelled decision request. The agent also has a dashed arrow leaving the cluster to the Utila API, which holds the transactions it polls. Outside the cluster, a public edge box shows the paths it publishes, the API path and the DALP path, with an arrow to the DALP API Service. A crossed note says the internal path is not published, so a request from outside the cluster for the decision route is never routed.The agent reaches DALP from inside the cluster, and the public edge never routes the decision route.The same network path drawn portrait. Inside the cluster, the signing agent pod asks the DALP API Service for a decision with an accent arrow. The agent also reaches the Utila API outside the cluster with a dashed arrow. The public edge publishes only the API paths and does not route the decision route.

The agent calls DALP over the cluster network, and the public edge never routes the decision route, so outside requests cannot reach it.

What the chart renders

The utilaSigningAgent block in values.yaml is off by default. When you enable it, the chart renders these objects in the release namespace:

Object
What it does
Deployment
One replica with the Recreate strategy. Two agents on one key share are unsafe, so the old pod stops before the new one starts.
ServiceAccount
No API token is mounted into the pod.
PodDisruptionBudget
maxUnavailable from utilaSigningAgent.podDisruptionBudget.maxUnavailable. The default is 0.
NetworkPolicy
No ingress. Egress to DNS, the DALP API pods and the rules you add.
PersistentVolumeClaim
The agent state, when state.location and state.persistence.existingClaim are both empty. Kept on upgrade and uninstall.
Secret
Only when signingAgentSecret.create is true. Use it outside production only.

The chart renders no Service for the agent, and no Ingress, HTTPRoute or Route. The agent polls Utila and calls DALP, and nothing calls the agent.

Build the image

The chart never builds or pulls a public image. Build the image yourself from Utila's distroless Dockerfile with the Utila CLI binary from the Utila Resource Centre, then push it to a registry your cluster trusts and record the digest.

Utila's Dockerfile copies the CLI binary into a distroless non-root image and sets it as the entrypoint. The chart passes cosigner run as arguments to that entrypoint. The Utila co-signer guide asks for CLI version 1.5.0 or later.

Set both image.repository and image.digest. The chart refuses to render without them. An upgrade changes the digest. The new pod starts against the existing state and does not enrol again.

Set the values

These values are required when utilaSigningAgent.enabled is true:

Value
Meaning
image.repository, image.digest
The image you built.
organizationId
The DALP organisation id of the Utila provider configuration.
providerConfigurationId
The id of that provider configuration.
vaultId, deviceId
The Utila vault and the device id printed at registration.
account
The Utila service account email, passed as UTILA_ACCOUNT.
serviceAccountKey
kmsKeyUrl, or privateKeySecret.name.
signingAgentSecret.existingSecret
The Secret that holds the agent secret. Required in webhook-decision mode, unless signingAgentSecret.create is true.
state.encryptionProvider
How Utila encrypts the state.
networkPolicy.egress
Egress rules for the Utila API and your KMS or object store. Required while networkPolicy.enabled is true.

dapiInternalUrl defaults to http://dalp-api:3001, the Service of the API pods for a release named dalp. Change it when your release has another name or your API Service sits on another port. It must not be empty in webhook-decision mode.

Default invocation

The default arguments run the co-signer in webhook-decision mode. The chart adds the vault id, the device id and the decision address to the arguments cosigner run, so the pod runs the equivalent of:

utila cosigner run --vault-id <vault-id> --device-id <device-id> \
  --webhook-url <dapiInternalUrl>/internal/custody/utila/signing-decision/<organization-id>/<provider-configuration-id>/$(SIGNING_AGENT_SECRET)

The agent secret forms the final path segment. Kubernetes expands $(SIGNING_AGENT_SECRET) from a Secret reference so the value never sits in values or a ConfigMap.

Because anyone who can inspect pod arguments can read the expanded secret, restrict pods/exec and pod read access in the namespace and never log the decision URL. The Platform API records no trace span for any request on the decision path, regardless of case, doubled slashes or percent-encoding, keeping the secret out of trace storage.

The command and flags follow the Utila co-signer setup guide (utila cosigner run --vault-id <vault-id> --device-id <device-id> --webhook-url <url>). Utila's Dockerfile names its binary utilacli in the build context. Verify flags against your built CLI version and adjust them with command, args and extraArgs.

Sign-all mode

mode: sign-all passes --sign-all-txs, signing every transaction designated to the service account without calling DALP. That makes the agent a signing oracle for the service account, so use it only for initial connectivity tests in an empty vault and switch back to webhook-decision immediately. The chart adds a pod annotation and a Helm notes warning while sign-all is set.

State and keys

The agent stores its device key and key shares encrypted with state.encryptionProvider (awskms://..., gcpkms://... or passphrase, where a passphrase comes from state.passphraseSecret).

Choice
Value
Notes
Chart volume
state.location empty
A PVC mounted at /state. Back it up.
Object storage
s3://bucket or gs://bucket
No PVC is rendered. Required on OpenShift (see OpenShift).

If you lose the state store, the agent cannot sign until you enrol a new device and have vault admins approve it in the Utila mobile app. Back up the state store on a schedule matching your recovery objective. For enrolment and recovery procedures, see the Utila signing agent runbook.

Prefer serviceAccountKey.kmsKeyUrl (UTILA_SA_KMS_KEY_URL) over privateKeySecret (UTILA_SA_PRIVATE_KEY), which places the key in the pod environment. Annotate the ServiceAccount via serviceAccount.annotations for IRSA (eks.amazonaws.com/role-arn) or GKE Workload Identity (iam.gke.io/gcp-service-account). Set UTILA_HOST in extraEnv only when targeting an environment other than api.utila.io. These UTILA_* variables belong to the Utila CLI and are separate from the provider credentials stored in the Console.

Availability

The agent runs one replica. While it is stopped, DALP transactions routed through Utila wait in AWAITING_SIGNATURE.

podDisruptionBudget.maxUnavailable defaults to 0, blocking voluntary node drains until you intervene. Set it to 1 to allow automatic drains while accepting temporary signing pauses. Because the Utila CLI exposes no liveness endpoint, the chart sets no probe: alert on transactions staying in AWAITING_SIGNATURE past your threshold, and follow the Utila signing agent runbook when it fires.

Network policy

The chart renders a NetworkPolicy for the agent pod, on by default. It allows no ingress. Egress goes to:

  • DNS.
  • The DALP API pods on the port set in dapi.service.httpPort.
  • Any rule you add in networkPolicy.egress.

Add egress rules for the Utila API and for your KMS or object store. Without them the agent cannot poll Utila or open its state. The agent's pod carries the label app.kubernetes.io/component: utila-signing-agent. The DALP API NetworkPolicy admits pods of the same release with that label. The entry matches nothing unless the chart renders the agent pod.

The decision route lives under /internal, not under /api. No Ingress, HTTPRoute or OpenShift Route published by the chart carries an /internal path, and the Console does not proxy it. With the default /api and /dalp edge paths, a request from outside the cluster cannot reach the route. Do not publish / or an unset path at the edge, because either covers /internal too.

OpenShift

values-openshift.yaml pins the agent resources and leaves the user and group ids unset, so the restricted security context constraint assigns them. The pod takes its security context from the same shared settings as the other chart workloads and runs with a read-only root filesystem. The overlay clears fsGroup, so a PVC root can be unwritable under the assigned user id. On OpenShift, point state.location at object storage.

Verify the render

  1. Run helm template with the agent enabled and the values above. Confirm a Deployment, a PodDisruptionBudget and a NetworkPolicy, and no Service, Ingress, HTTPRoute or Route that names the agent.
  2. Confirm the decision address in the rendered arguments ends in $(SIGNING_AGENT_SECRET) and the secret value appears in no rendered object except a chart-created Secret.
  3. Render once without image.repository. The render must fail with the message that names it.

Was this page helpful?