API / deployment

Redaction on Kubernetes with a namespace that holds

A practical guide to redaction kubernetes: the boundary, the controls and the failure modes that matter before the first document.

Redaction Kubernetes: Deployment and Limits

Redaction on Kubernetes with a namespace that holds. Kubernetes gives you scheduling and isolation primitives, not a security model. The namespace, the network policy, the service account and the volume decide what the pod can reach. A default namespace with a broad role is not a boundary.

What changes in this environment

A Job or CronJob in a dedicated namespace, a service account with no API permissions, a read-only PVC for input and a separate PVC for output. A NetworkPolicy denies egress except to the required endpoints; secrets come from a Secret or an external store. Resource limits protect the node.

Where the data hides

The visible page is only one layer. In this environment, check:

The redaction flow

  1. Place the file on the input PVC.
  2. Submit a Job with the policy and the service account.
  3. Read the report from the output PVC.
  4. Review uncertain spans outside the cluster.
  5. Delete the Job, the pods and the temporary volumes.

Controls to verify

  • A dedicated namespace and a restricted service account.
  • A default-deny NetworkPolicy with an explicit allow list.
  • Read-only input and a separate output volume.
  • Secrets from an external store, not a manifest.
  • Audit logging and a log retention rule.

Retention and evidence

PVCs, snapshots and node-local storage can outlive the pod. A deletion policy must cover them, and the backup schedule must be in scope. The report should land in an evidence store outside the cluster.

Limits

Cluster administrators can often read every namespace. Multi-tenant clusters weaken the boundary. GPU scheduling, large files and OCR are node-dependent. A pod is not a trust boundary by itself.

The namespace boundary

In Kubernetes the namespace is the unit of tenancy, and it earns that role only with the controls around it: network policies that default-deny and allow only the application pods to reach the redaction service, resource quotas so a noisy neighbor cannot starve the queue, and RBAC that keeps the namespace's secrets readable only by its own service accounts. A redaction namespace with an ingress controller is a redaction service on the public internet with extra YAML; check the ingress list the way you would check a firewall.

The Kubernetes-specific controls

Secrets through an external secrets operator or the platform's secret store integration, so nothing sensitive sits in etcd plaintext-adjacent. Pod security standards enforcing non-root and read-only filesystems, the same discipline as the container page, applied by admission rather than by hope. Audit logging on the API server, because kubectl cp is an egress path. And an upgrade cadence: Kubernetes versions age out of support on a known clock, and an unpatched cluster processing sensitive documents is a finding that announces itself.

The egress question

A redaction namespace usually needs almost no outbound internet: model updates arrive through your pipeline, and results go to your storage. So the egress policy can be near-total: default-deny, with the few required destinations named. A namespace that cannot reach the internet cannot phone home, cannot be pulled by a typo-squatted package, and cannot exfiltrate in the breach. The exceptions you must grant — a license check, an update mirror — are few enough to name and log. Grant them deliberately and review the list quarterly.

How Veilbrook fits

Veilbrook can run as a Kubernetes Job with a policy and a report. The namespace, the policy and the storage class are the controls you verify.

Before you release

Open the output in the same tool the recipient will use. Select each masked area and paste it into a text editor. Search for every value you removed, including the header, the attachment, the comment and the OCR layer. Compare the report with the file and keep both. If a value survives, the job is not done.

Common mistakes

What to ask before you build

Questions

Is a namespace enough isolation?

No. Pair it with RBAC, NetworkPolicy, a dedicated node pool and restricted storage.

Can it run as a CronJob?

Yes, for scheduled batches, with a manifest and a reconciliation step.

Where do reports go?

To an evidence store outside the cluster, with its own access control and retention.