Skip to main content
The Helm chart: two Deployments from one image — detect (≥ 2 replicas) and, optionally, rehydrate (2 replicas) — each with its own ServiceAccount, IRSA role, PodDisruptionBudget, NetworkPolicy and VPC Lattice service. Callers sign every request with their own IAM role; Lattice checks a per-route IAM auth policy before anything reaches a pod.

When to use it

You run Amazon EKS with EC2 managed node groups. This is the primary deployment path. The chart creates Kubernetes objects only (the AWS Gateway API Controller turns its routes into VPC Lattice services); the KMS key, Aurora cluster, audit bucket, IAM roles and VPC endpoints are yours to provide — this page shows each, and Prerequisites has the full list. Don’t reuse the audit bucket or key from a CloudFormation or Terraform install: their policies admit only the ECS roles, so every rehydrate and erase call would return 503.

Install the chart on an EKS cluster — collects your values, renders, and stops before installing into production.

Open in Cursor

What it creates

With rehydration.enabled=false the chart renders nothing for rehydrate. Detection, de-identification and erasure still work fully.

Before you install

  1. Subscribe and verify the release. Subscribe and get the image. Detect refuses to start in an account that isn’t subscribed.
  2. Node group: EC2 managed nodes on arm64, c8g.xlarge, Kubernetes ≥ 1.29, not Fargate. Use c8g.xlarge, not c9g.xlarge: on Graviton5 the VPC CNI network policy agent can fail a map write with ENOMEM and never retry, leaving a rehydrate caller blocked until the next policy change (aws-network-policy-agent issue). It fails closed, but callers time out; ECS isn’t affected. With rehydration on, run four nodes, two in each of two AZs — each detect pod fills a node, and rehydrate’s zone spread needs a free node in each AZ. That’s 16 vCPUs: check your On-Demand Standard vCPU quota, and leave headroom if node group updates add a surge node. Pick AZs VPC Lattice supports (not use1-az3 in us-east-1).
  3. A NetworkPolicy enforcer. enableNetworkPolicy=true on the Amazon VPC CNI add-on, or Calico. Without one, the policies render but nothing enforces them.
  4. An IAM OIDC provider for the cluster. AWS Marketplace metering accepts IRSA only — not EKS Pod Identity, not the node role. Only detect meters.
  5. VPC endpoints with private DNS: interface kms, sts, metering-marketplace, ecr.api, ecr.dkr, logs, vpc-lattice and tagging, plus an S3 gateway endpoint. The image and chart come from AWS Marketplace in us-east-1 in every Region: outside us-east-1, make ecr.api and ecr.dkr cross-Region interface endpoints whose service Region is us-east-1 (com.amazonaws.us-east-1.ecr.api, com.amazonaws.us-east-1.ecr.dkr) and add a com.amazonaws.us-east-1.s3 interface endpoint for the image layers, with an endpoint policy allowing s3:GetObject on prod-us-east-1-starport-layer-bucket/*. Creating them needs vpce:AllowMultiRegion (Administrator and PowerUser roles have it). With no internet route the nodes also need ec2 and eks, plus eks-auth if you use EKS Pod Identity add-ons. Give the interface endpoints a security group that admits 443 from the VPC. Detect doesn’t start without metering-marketplace. Prerequisites.
  6. A customer-managed KMS key.
  7. The vault: Aurora PostgreSQL (the templates use Serverless v2, 16.15), encrypted with the KMS key, with a database named tenet — the URL below names it. Allow the cluster security group on 5432. The engine needs a database user that can create tables in tenet. An RDS-managed master password rotates every 7 days and leaves the Kubernetes Secret stale: sync it (for example with External Secrets Operator) or use a user whose password you manage.
  8. The audit bucket: S3 with Object Lock and default encryption with the same KMS key. COMPLIANCE mode in production; GOVERNANCE lets you delete a trial afterwards.

Set up VPC Lattice

Once per cluster:
  1. Install the Gateway API CRDs (v1.5.0 or later, standard channel) and the AWS Gateway API Controller v2.1.4, with its own IRSA role and the VPC Lattice permissions its documentation lists. In a cluster with no internet route, copy its image into your own ECR first. The controller needs the vpc-lattice and tagging endpoints: without tagging no Lattice service appears and the pods restart while they wait for it.
  2. Create the GatewayClass and Gateway. The Gateway becomes a VPC Lattice service network, and the controller associates the cluster’s VPC with it. A VPC can join only one service network — if yours already has one, name the Gateway after it. The routes live in the release namespace, so the listener must allow routes from other namespaces. Lattice serves the listener with an AWS-managed certificate; the chart attaches its routes only to lattice.gateway.sectionName (default https), never to an HTTP listener. Wait for the Gateway to show Programmed.
    gateway.yaml
  3. Let VPC Lattice reach the pods on 19991, in the security group the pods use — the node security group, or the pod security group with security groups for pods. The chart’s NetworkPolicies then admit only lattice.peerCidrs (default 169.254.171.0/24, 129.224.0.0/17). If the last command prints other ranges, set lattice.peerCidrs to them.

Create the IAM roles

Two roles, each trusting your cluster’s OIDC provider for one service account: system:serviceaccount:tenet-pii:tenet-pii-enterprise-detect and system:serviceaccount:tenet-pii:tenet-pii-enterprise-rehydrate (namespace tenet-pii). The chart uses these names whatever the release is called; set detect.serviceAccount.name / rehydration.serviceAccount.name only to run two releases in one namespace. The rehydrate trust policy is the same with the rehydrate service account.
Detect role trust policy
Detect creates the vault’s keys but can never decrypt a stored value: only rehydrate unwraps the private key. Keep detect’s two Deny statements, and put them in the key policy as well, so no permission granted to the role later can undo them. If your key policy doesn’t delegate to IAM, add the same KMS permissions there. Both roles look up their own VPC Lattice service at startup (vpc-lattice:ListServices).
Detect role policy
Rehydrate role policy
Rehydrate has no aws-marketplace:MeterUsage: only detect checks the subscription and meters.

Install

Pull the chart with the account that subscribed (verify the release first; $REC is the downloaded record):
Create the vault credentials from files, so the password never appears in a process list or your shell history:
The chart pulls straight from the Marketplace registry in us-east-1, in every Region — outside us-east-1 through the cross-Region endpoints above. Set image.digest so it pulls by digest, and leave image.repository alone; don’t copy the image (The image in every Region).
values.yaml
The last command prints each service’s domain name, such as tenet-tenet-pii-enterprise-detect-0abc123.7d67968.vpc-lattice-svcs.us-east-1.on.aws; it can take a minute to appear. On a first install, rehydrate pods wait up to two minutes for detect to create the first key (vault keyring is empty; waiting …s for the detect role), every pod may log vault not ready yet while Aurora comes up, and pods wait for the controller to create their Lattice service. That’s expected. Detection only: add --set rehydration.enabled=false and drop the rehydrate role, auditS3Uri and rehydrateInvokerRoleArns. Erasures are still audited, so keep the audit bucket, lattice.erasureAuditS3Uri and networkPolicy.s3PrefixListCidrs. values.schema.json rejects an install missing a required input — region, CMK ARN, vault URL, the Gateway, the detect invoker roles, the source VPCs, the erasure audit URI, the rehydrate invoker roles and auditS3Uri when rehydration is on, or fewer than 2 detect replicas. Template guards reject the same IAM role for both services, a missing networkPolicy.s3PrefixListCidrs, and a Lattice service name over 40 characters (shorten it with fullnameOverride).
With lattice.accessLogDestinationArn, check the access log policies after the first install: kubectl -n "$NS" get accesslogpolicy. The controller can reconcile them before it has created the Lattice services, leave them at TargetNotFound, and not retry. Run the same helm upgrade once more after the HTTPRoutes carry a domain name; they then show Accepted.

Verify

The health probes aren’t routed through VPC Lattice, so check readiness inside the pods. Exit 0 means the model is loaded and the vault answers. Then check every pod runs the digest the release record names:

Set up a caller

Each workload that calls the services — for example a pod with its own IRSA role — needs four things: The identity policy names the service ARN. The rehydrate one is the same with tenet-tenet-pii-enterprise-rehydrate:
Detect caller identity policy
Install the tenet-pii-lattice client (Python 3.11+, boto3) — with no internet route, build it into your application’s image:
Then run the round trip as caller roles, from a pod in the cluster:
Exact placeholders depend on what the model detects. Any SigV4 signer works in other languages. A refusal is a fixed 403; a path outside the routes is a 404 from Lattice; calls to the Kubernetes Services directly are dropped by the NetworkPolicies.

Values you’ll actually change

Gotchas

  • A caller needs two grants. Its role in the chart’s invoker list (the IAMAuthPolicy) and vpc-lattice-svcs:Invoke on the service in its own IAM policy. One without the other is a 403.
  • Pods that never become ready: check the HTTPRoutes have a domain name. If not, the controller’s logs usually name a missing endpoint (tagging, vpc-lattice) or permission. Troubleshooting.
  • Don’t request a full cpu: 4. The chart requests 3500m with a 4 limit: a 4-CPU request can’t schedule on a 4-vCPU node once the kubelet reserve and DaemonSets are counted, and pods sit Pending. The engine still sizes its thread pool to 4 from the limit.
  • Rollouts replace pods in place. A detect pod fills its node, so a surge pod would sit Pending on every deploy. With maxSurge: 0, one replica is down while each pod restarts — deploy off-peak or scale up first. With Karpenter, Cluster Autoscaler or spare nodes, set maxSurge: 1, maxUnavailable: 0.
  • Kubelet probes vs. NetworkPolicy. The policies admit only lattice.peerCidrs. Confirm your enforcer still admits kubelet → pod probe traffic; Calico does by default, test the VPC CNI policy agent on your cluster version.
  • IRSA with automountServiceAccountToken: false. The pods never call the Kubernetes API, so the chart turns automount off. Confirm the pod identity webhook still injects its token: kubectl -n "$NS" get pod -l app.kubernetes.io/component=detect -o yaml | grep aws-iam-token.
  • sslmode=require encrypts but doesn’t verify the server certificate.
  • Version numbers. /healthz and audit records report the detection engine’s own version, not the product release’s (the record’s .version).
  • Clusters outside AWS aren’t supported. There’s no Marketplace metering or IRSA path for them.

Remove the release

helm uninstall tenet -n tenet-pii keeps your KMS key, vault and audit bucket. In COMPLIANCE mode nobody can delete audit objects until their retention ends; in GOVERNANCE mode an administrator can, with --bypass-governance-retention. To remove everything after a trial, delete in this order: the Helm release and namespace, the Gateway, the controller, the node group and cluster, the Aurora database, the audit bucket, the VPC endpoints and the VPC, then the IAM roles. Schedule the KMS key for deletion last.

Security posture of the pods

Non-root UID/GID 10001, RuntimeDefault seccomp, no privilege escalation, read-only root filesystem, all capabilities dropped. /tmp is a 512Mi emptyDir. Pods serve HTTPS with a certificate generated at startup; Lattice terminates the caller’s TLS on 443. NetworkPolicy admits ingress only from VPC Lattice and blocks egress to IMDS, the internet and other pods. AWS_STS_REGIONAL_ENDPOINTS=regional keeps IRSA on the in-VPC STS endpoint. The chart never renders a credential.