Security model

What Wardn can reach, what it trusts, how secrets and commands are handled, and how every action is recorded.

A delivery tool can change everything that runs in production, so its own reach has to be small and visible. This page states Wardn's trust boundaries, what each part may do, and what it records. Read How it works first for the parts and what crosses the network.

Trust boundaries

  people, API tokens ──▶  Control plane  ◀── git host, registries
                          (decides, signs, records)
                               ▲
                               │ the operator dials out; the cluster accepts no inbound connection
                               │ commands down are signed; reports up carry no secret values
                          Operator in each cluster
                          (applies only signed commands, only as the deployment's service account)
BoundaryWhat protects it
Your cluster ↔ the control planeThe operator opens the connection, with mutual TLS. Nothing outside the cluster connects in, and the control plane holds no kubeconfig.
The control plane → the operatorEvery command is signed and expires. The operator verifies each one and acts on nothing else.
The operator → your workloadsThe operator writes only as the deployment's own service account, in the deployment's namespace. Your RBAC on that account is the limit.
Your repository → the control planeManifests and charts are rendered in a sandbox with no network access.
One person → another's workLeast-privilege visibility: people see and act only where their teams, grants and ownership reach.
Any change → the recordEvery deliberate action is written to an append-only, hash-chained Activity log in the same transaction as the change.

Clusters need no inbound access

A cluster joins with a join token made by wardn cluster connect or the web app. The token is shown once, is valid for an hour and works once. The operator trades it for a client certificate: it makes its own key, sends only a certificate request, and keeps the private key in a Secret in its namespace. The token also carries a pin of Wardn's certificate authority, which is how the operator trusts a gateway certificate that Wardn issued.

From then on the operator reconnects by itself. wardn cluster disconnect revokes the cluster's credentials, and a connected operator is cut off within seconds. Reconnecting needs a new join token. See Connect a cluster.

Signed commands

The control plane signs every command it sends with an Ed25519 key, and every command carries an expiry. The operator learns the public key when it joins and refuses a command whose signature does not verify or whose expiry has passed. Pod logs, terminal sessions and pod restarts open only from such a command.

What the operator may do in your cluster

The operator itself can read and impersonate. Every write goes through a service account you control.

The operator's own accessWhy
Cluster-wide get, list and watch on nodes, namespaces, pods, services, persistent volume claims, events, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs and IngressesInventory, health and timelines.
impersonate on service accounts named wardn-deployer, and no otherTo apply as each deployment's wardn-deployer account rather than as itself. The rule names that account, so the operator cannot impersonate any other service account in your cluster.
In wardn-system only: its identity Secret and the ConfigMaps where it remembers what it appliedSurvive restarts without pruning or false drift.
Create and delete namespaces, create service accounts and role bindings, and bind the one ClusterRole wardn-preview-deployerOnly for pull request previews. It deletes a namespace only if it carries Wardn's labels for that preview.

What follows from that:

  • A deployment can change only what its namespace's wardn-deployer account may change. A namespace without that account cannot be deployed to.
  • The operator refuses a snapshot with any object outside the deployment's namespace or any cluster-scoped object.
  • It prunes only objects that carry its own deployment's annotation.
  • It never manages kube-system or its own namespace.
  • It runs as one replica, as a non-root user, with a read-only root filesystem and no added capabilities. It installs no CRDs.

Rendering is sandboxed

A Helm chart or a Kustomize overlay is code that whoever controls the repository wrote. Wardn renders it in a separate process started for one render, with no network access, no way to write files, and limits on memory, processor time and output size. Kustomize remote bases and plugins are refused. Pull requests from forks get a preview only when a maintainer adds the label the deployment's preview settings name, because their manifests would run in your cluster.

Secrets

Wardn is built so it never needs your secret values.

  • Secret references. A deployment declares which Kubernetes Secrets or External Secrets Operator objects it needs, by name. The operator reads them as the deployment's own service account and reports only whether each exists and a fingerprint: a keyed hash (HMAC-SHA256, salted per deployment and reference) computed in the cluster. A change shows as a new fingerprint; the value is never sent, stored or shown. See Secret references.
  • Diffs and drift compare Secrets by checksum and show no values. A drifted Secret cannot be adopted, because its values are masked.
  • Source credentials for private repositories are held through the GitHub App or the server's secret store, never in a source's URL.

If you commit a Secret object to your repository, it is rendered into the snapshot like any other object. Wardn masks its values in every diff and drift view, but the best place for a secret value is not git. Keep it in the cluster, or in a store that External Secrets Operator reads, and declare a reference.

Who can do what

Access follows the access model:

  • Least-privilege visibility. People see their teams' things, what they were granted and what they own. Something out of reach answers 404, as if it did not exist, and lists and counts leave it out.
  • Managing is not doing. Owning a cluster or an environment lets you manage it. Duties such as releasing a held snapshot or bypassing a guardrail are given to people by name.
  • Grants only add. Nothing denies, so two grants can never conflict.
  • You can only give away what you hold.
  • API tokens act for the person who made them and never reach further. Each has a ceiling of permissions and places, an expiry, an optional rate limit, and a record of its calls. See API tokens.

Terminal sessions

A shell in a pod is the most powerful thing Wardn lets a person do, so every session is deliberate, narrow and recorded:

  • A terminal follows deploy access: whoever can manage a deployment may open one in its pods, and an environment can be set to named people only. Agents, service accounts and API tokens never get one from deploying. The shell reaches only the pods Wardn applied for that deployment, in its namespace, as its service account. Inside the pod it has whatever the app has (environment, mounted secrets, network), which network policies and least-privilege app credentials limit.
  • Each cluster has an exec switch, off by default, and the operator refuses a session unless its own settings allow it.
  • On a production cluster, every session needs a reason.
  • Sessions end after 15 minutes idle and after one hour at most, by default. The operator enforces the maximum itself.
  • Output is recorded and kept for 90 days by default. Typed input is relayed and not stored. Reading a recording needs audit:read.
  • Agents and service accounts can never open a session, whatever they are granted.

See Terminal.

Every action is recorded

Deliberate actions, by people and by Wardn, go to Activity: sign-ins, role and grant changes, deploys, held and released snapshots, drift actions, restores, guardrail blocks and bypasses, terminal sessions. Each entry is written in the same transaction as the change it records, so there is no change without an entry.

Entries are append-only and hash-chained per organization, so an export can be checked for missing or edited entries. See Activity and export.

Your data

  • Each organization's data is kept apart by the database itself, so a request made for one organization cannot read another's.
  • Telemetry is off unless you turn it on. When on, it sends one count-only report a day, with no names, manifests, secrets or free text. See Telemetry.
  • Images, charts and CLI archives are signed with cosign, and each image has a signed SBOM and provenance attestation.

What this model does not defend against

  • A person who holds a power and misuses it. They are recorded and attributable; review of grants is the control.
  • A compromised control plane. It holds the signing key. The operator's own checks still bound what it can make the operator do: only in a deployment's namespace, only as that deployment's service account, only with the cluster's switches on.
  • A compromised image or chart. Wardn applies what your repository describes. Rules on where snapshots may come from, such as the protected-branch guardrail, reduce the risk; they do not inspect your code.

Next

On this page