> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenetlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscribe and get the image

> Subscribe through AWS Marketplace, download the release artifacts (template, Terraform module, client, signed release record), and verify the image against the record. Every Region pulls the image from the Marketplace registry — no copy.

**Getting the software**: a Marketplace subscription → the signed release record, verified with Tenet's public key → the image digest it names, pulled from the Marketplace registry in `us-east-1` from every Region → the CloudFormation template, Terraform module or Helm chart for the same version.

## When to use it

Once per account (subscription), and once per release (download and verify). Do this before any of the deploy pages.

Download and verify the release.

Prepare Tenet PII Engine (Enterprise) for deployment, following [https://docs.tenetlabs.com/pii-engine/get-started/marketplace](https://docs.tenetlabs.com/pii-engine/get-started/marketplace.md).

Ask me for: the deployment AWS Region; whether I deploy with Helm (EKS), CloudFormation or Terraform; confirmation that this account is subscribed in AWS Marketplace (listing: [https://aws.amazon.com/marketplace/pp/prodview-slrerbt3xmb3m](https://aws.amazon.com/marketplace/pp/prodview-slrerbt3xmb3m); subscribe from the deployment account, or accept Tenet's private offer there). Check `cosign version` reports v3.x and that `jq` and the AWS CLI v2 are installed.

1. Download cosign.pub, the release record and its bundle from [https://platform.tenetlabs.com/enterprise](https://platform.tenetlabs.com/enterprise) exactly as on the page, and run `cosign verify-blob --key cosign.pub --insecure-ignore-tlog --bundle tenet-pii-enterprise.release.sigstore.json tenet-pii-enterprise.release.json`. It must print `Verified OK`. If it doesn't, stop — do not pull or deploy anything.
2. Read the image repository and digest from the record (`jq -r .image.repository`, `jq -r .image.digest`) and compare the digest with what the Marketplace registry serves for the record's `.image.tag` (`aws ecr batch-get-image ... --query 'images[0].imageId.imageDigest'`, as on the page). Stop on any mismatch.
3. Download the deploy artifact for my path: the CloudFormation template, or the Terraform tarball (extract it), or `helm pull` the chart at the record's `.chart.version` and check the `Digest:` line equals the record's `.chart.digest`. Don't copy the image to another registry.
4. If my Region isn't us-east-1, tell me the image is pulled from us-east-1 through cross-Region VPC endpoints (the CloudFormation template and Terraform module create them; on EKS I create them), and that a deploy role scoped to specific actions needs `vpce:AllowMultiRegion`.
   Report the image URI with digest to deploy and the artifact files. Never print registry passwords.

## Subscribe

Subscribe from the account that will run the services — the entitlement check runs there, so a subscription in another account (a payer or tooling account) doesn't count.

1. Sign in to the AWS console as the deployment account and open the [Tenet PII Engine listing in AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-slrerbt3xmb3m). If Tenet sent you a private offer, open the offer link instead — it carries your negotiated terms.
2. Choose **View purchase options**, review the pricing and EULA, and subscribe. Pricing is usage-based, billed through your AWS bill, with no end date; cancel any time.
3. Skip the listing's launch and fulfillment steps. The listing offers **Container image for Amazon ECS (CloudFormation)** and **Helm chart for Amazon EKS**, but this page and the deploy pages are the whole install: you download the signed release from Tenet and pull the image by digest.

There's no license to install or SKU to configure. At startup the detect service checks the subscription with AWS Marketplace through the `metering-marketplace` VPC endpoint, and refuses to start if the account isn't subscribed. It then reports hourly usage to AWS; you pay through your AWS bill. The rehydrate service isn't billed and doesn't check. [Subscription and metering](https://docs.tenetlabs.com/pii-engine/concepts/billing.md).

## Download the release

The current release is always public at `https://platform.tenetlabs.com/enterprise/current/`. Keep the files you deploy with: the site serves only the current release.

| File | Path under `https://platform.tenetlabs.com/enterprise` | Used by |
| - | - | - |
| Signing key | `/cosign.pub` | Everyone |
| Release record and signature | `/current/tenet-pii-enterprise.release.json`, `/current/tenet-pii-enterprise.release.sigstore.json` | Everyone |
| CloudFormation template | `/current/tenet-pii-enterprise.yaml` | [ECS with CloudFormation](https://docs.tenetlabs.com/pii-engine/deploy/ecs-cloudformation.md) |
| Terraform module | `/current/tenet-pii-enterprise-terraform.tar.gz` | [ECS with Terraform](https://docs.tenetlabs.com/pii-engine/deploy/terraform.md) |
| Caller client `tenet-pii-lattice` | `/current/tenet_pii_lattice.tar.gz` | Your applications |

The Helm chart isn't here: it's in the AWS Marketplace registry next to the image ([below](#get-the-helm-chart-eks-only)).

```bash theme={null}
BASE=https://platform.tenetlabs.com/enterprise
REC=tenet-pii-enterprise.release
curl -sO "$BASE/cosign.pub"
curl -sO "$BASE/current/$REC.json"
curl -sO "$BASE/current/$REC.sigstore.json"

curl -sO "$BASE/current/tenet-pii-enterprise.yaml"               # ECS + CloudFormation
curl -sO "$BASE/current/tenet-pii-enterprise-terraform.tar.gz"   # ECS + Terraform
pip install "$BASE/current/tenet_pii_lattice.tar.gz"             # callers: Python 3.11+, boto3
```

The client has no other dependency than `boto3`. In a VPC with no internet path, build it into your application's image or install it from a wheel you copy in.

## Verify the release

The images in the Marketplace registry carry **no cosign signature or SBOM attestation**. What you verify is Tenet's **signed release record**, a small JSON file that binds the version to the image digest (plus each platform's) and the chart digest. For a release's SPDX SBOM, ask through the support channel in your offer.

The record's signature isn't recorded in a public transparency log, so verification uses the public key and `--insecure-ignore-tlog` — that flag is expected here. Use cosign v3. The key, for comparison with the file you downloaded:

```text cosign.pub theme={null}
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWSSMGq6ujVTDj8qGj4cTsF3XPXmW
HBg7VYIWpGqoRxdtL49c4noohTSTLXOn7WGMfTIoFMbaUGl8TLgSXIKtEQ==
-----END PUBLIC KEY-----
```

```bash theme={null}
cosign verify-blob --key cosign.pub --insecure-ignore-tlog --bundle "$REC.sigstore.json" "$REC.json"
# → Verified OK

# The record names the Marketplace image and chart repositories, and their digests.
IMAGE_REPO=$(jq -r .image.repository "$REC.json")
DIGEST=$(jq -r .image.digest "$REC.json")
REGISTRY=${IMAGE_REPO%%/*}
IMAGE_URI="$IMAGE_REPO@$DIGEST"   # ImageUri / image_uri, in every Region

# The digest Marketplace serves for the record's tag must equal the record's digest.
aws ecr batch-get-image --region us-east-1 --registry-id "${REGISTRY%%.*}" \
  --repository-name "${IMAGE_REPO#*/}" --image-ids imageTag="$(jq -r .image.tag "$REC.json")" \
  --query 'images[0].imageId.imageDigest' --output text
echo "$DIGEST"
```

A wrong key fails with an error instead of `Verified OK`. If the record doesn't verify, or Marketplace serves a different digest for that tag, don't deploy it — contact Tenet support with both digests.

The record also lists each platform's digest (`.image.platforms`). On EKS, after install, every pod's `imageID` must end in the record's `.image.digest`:

```bash theme={null}
kubectl -n tenet-pii get pods -o jsonpath='{range .items[*]}{.status.containerStatuses[0].imageID}{"\n"}{end}'
```

## The image in every Region

AWS Marketplace serves container images and Helm charts only from `us-east-1`; a subscribed account gets "not entitled" from the registry in any other Region. So every deployment pulls the image from the `us-east-1` Marketplace registry, by digest — **don't copy it into your own ECR**.

* **In `us-east-1`** the regular `ecr.api`, `ecr.dkr` and S3 gateway endpoints reach it.
* **In any other Region** the image comes across Regions over PrivateLink, with no NAT: interface endpoints with private DNS whose service Region is `us-east-1` for `com.amazonaws.us-east-1.ecr.api` and `com.amazonaws.us-east-1.ecr.dkr`, plus a `com.amazonaws.us-east-1.s3` interface endpoint for the image layers (an endpoint policy allowing `s3:GetObject` on `prod-us-east-1-starport-layer-bucket/*` is enough). The CloudFormation template and the Terraform module create all three outside `us-east-1`; on EKS you create them ([Prerequisites](https://docs.tenetlabs.com/pii-engine/deploy/prerequisites.md#vpc-endpoints)).
* **Creating cross-Region endpoints** needs `vpce:AllowMultiRegion`. Administrator and PowerUser roles already have it; a deploy role scoped to specific actions needs it added.

## Get the Helm chart (EKS only)

The chart is in the Marketplace registry next to the image. Pull it with the account that subscribed:

```bash theme={null}
aws ecr get-login-password --region us-east-1 | helm registry login "$REGISTRY" --username AWS --password-stdin
helm pull "oci://$(jq -r .chart.repository "$REC.json")" --version "$(jq -r .chart.version "$REC.json")"
jq -r .chart.digest "$REC.json"   # must equal the Digest: line helm pull prints
```

The chart and image in one release record belong together. The Marketplace chart presets `image.repository` (the Marketplace registry) and `image.tag` (the record's `.image.tag`); set `image.digest` to the record's `.image.digest` so the pods pull by digest. Leave `image.repository` as it is, in every Region. AWS Marketplace no longer offers Quick Launch for Helm charts on EKS; the [Helm page](https://docs.tenetlabs.com/pii-engine/deploy/eks-helm.md) is the whole install.

## What's in the image

| | |
| - | - |
| Platforms | `linux/arm64`, `linux/amd64` (deploy on arm64 Graviton) |
| Base | `python:3.12-slim`, pinned by digest |
| Model | Detection model, baked in and sha256-verified at build and at every startup. Confidence threshold fixed at `0.55`. |
| Baked env | `TENET_PII_MODEL_DIR=/opt/tenet-pii/model`, `TENET_PII_REQUIRE_LOCAL_MODEL=1` — a missing model fails startup, it never downloads |
| User | UID/GID `10001`, no login shell; the model and venv are read-only to it |
| Port | `19991`, HTTPS with a certificate generated at startup. Docker `HEALTHCHECK` runs `tenet-pii-enterprise healthcheck` against `/healthz` |
| Version numbers | `/healthz` and audit records report the detection engine's own version, not the product release's (the record's `.version`) |
| Not in it | pip, git, compilers, any credential. `TENET_ROLE` is not baked in — you choose the role at runtime |

## Gotchas

* **Never deploy by tag.** Tags are a convenience for humans; every deploy path takes the digest.
* **Don't copy the image.** The templates point their ECR endpoints at `us-east-1`, so a copy in your own Region isn't reachable from the stack.
* **No subscription, no detect.** The detect service doesn't start until the Marketplace entitlement check passes, so subscribe before the first deploy and keep the `metering-marketplace` endpoint reachable.
* **Don't look for a signature on the Marketplace copy.** `cosign verify` against the Marketplace registry finds none, by design. Verify the release record and compare digests.
* **Use the downloaded module.** Point `source` at the extracted folder ([Terraform](https://docs.tenetlabs.com/pii-engine/deploy/terraform.md)).

## Links

* [Tenet PII Engine in AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-slrerbt3xmb3m)
* [Subscription and metering — the entitlement check and usage reporting](https://docs.tenetlabs.com/pii-engine/concepts/billing.md)
* [Prerequisites](https://docs.tenetlabs.com/pii-engine/deploy/prerequisites.md)
* [Upgrades — pulling a new version](https://docs.tenetlabs.com/pii-engine/operate/upgrades.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.