> ## 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.

# Break-glass access

> The MFA-gated break-glass role for emergency re-identification: who can assume it, what it may call (POST /reidentify without the approval tag), the runbook, and how its use shows up in CloudTrail and the audit trail.

**Break-glass** is an emergency path to rehydration for incident responders: one IAM role, assumable only by `BreakGlassTrustedPrincipalArn` with MFA, for at most an hour, allowed to do exactly one thing — call `POST /reidentify` on the rehydrate service **without** the approval tag. Every assumption is in CloudTrail, and every call it makes is audited under its own ARN like any other.

## When to use it

An incident needs original values and the normal invoker path is unavailable — the approval workflow is down, or the invoker roles themselves are part of the incident. Not for routine access: add routine callers to `RehydrateInvokerRoleArns` instead.

## What the templates create

With `BreakGlassTrustedPrincipalArn` (CloudFormation) or `break_glass_trusted_principal_arn` (Terraform) set, and rehydration on:

| | |
| - | - |
| Role | `<NamePrefix>-rehydrate-breakglass` (output `BreakGlassRoleArn` / `break_glass_role_arn`) |
| Trust | Only `BreakGlassTrustedPrincipalArn`, for `sts:AssumeRole` and `sts:TagSession`, with `aws:MultiFactorAuthPresent = true` and `aws:MultiFactorAuthAge < 3600` |
| Session | 1 hour maximum |
| Its own policy | `vpc-lattice-svcs:Invoke` on the rehydrate service. Nothing else — no KMS, no vault, no audit bucket. |
| Rehydrate auth policy | Allows it `POST /reidentify` from `AllowedSourceVpcIds`, with no approval-tag condition |
| Service allow-list | Added to `TENET_LATTICE_REIDENTIFY_PRINCIPALS`, so the service's own re-check admits it |

What still applies: the call must come from a VPC associated with the service network and listed in `AllowedSourceVpcIds`, over a network path to VPC Lattice (`LatticeClientSecurityGroupId`, or egress tcp/443 to the Lattice prefix list). The audit record is written before any plaintext is returned, as for every caller.

**EKS:** the Helm chart creates no IAM roles. Create the break-glass role yourself with the same trust and identity policy, and set `lattice.breakGlassRoleArn`: the chart adds it to the rehydrate IAMAuthPolicy without the approval-tag condition and to the service's allow-list.

## Runbook

1. **Assume the role with MFA**, with the incident ticket as the session name. CloudTrail records `AssumeRole`, and the session name becomes part of the `caller` ARN in every audit record.

   ```bash theme={null}
   CREDS=$(aws sts assume-role --role-arn "$BREAKGLASS_ROLE_ARN" --role-session-name "INC-<ticket>" \
     --serial-number "$MFA_DEVICE_ARN" --token-code <6-digit code> --duration-seconds 3600)
   export AWS_ACCESS_KEY_ID=$(echo "$CREDS" | jq -r .Credentials.AccessKeyId)
   export AWS_SECRET_ACCESS_KEY=$(echo "$CREDS" | jq -r .Credentials.SecretAccessKey)
   export AWS_SESSION_TOKEN=$(echo "$CREDS" | jq -r .Credentials.SessionToken)
   ```

2. **Call rehydrate** from a host inside an allowed VPC, with the signed client. Each call is audited as `arn:aws:sts::<account-id>:assumed-role/<NamePrefix>-rehydrate-breakglass/INC-<ticket>`.

   ```bash theme={null}
   echo "<text with placeholders>" | python -m tenet_pii_lattice "$REHYDRATE_ENDPOINT" reidentify "<session_id>"
   ```

3. **Drop the credentials** when the work is done: `unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN`. They expire within the hour anyway. There's no shared secret to rotate afterwards.

4. **Record it.** Pull the audit records for the session name, and the CloudTrail `AssumeRole` event, and file both with the incident:

   ```bash theme={null}
   aws s3api list-objects-v2 --bucket "$AUDIT_BUCKET" --prefix "rehydrate/year=2026/month=11/day=06/" \
     --query 'Contents[].Key' --output text | tr '\t' '\n' \
     | while read -r k; do aws s3 cp "s3://$AUDIT_BUCKET/$k" -; done \
     | jq -c 'select(.caller | endswith("/INC-<ticket>"))'
   aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=AssumeRole \
     --start-time <incident start> --query 'Events[?contains(CloudTrailEvent, `rehydrate-breakglass`)].CloudTrailEvent' --output text
   ```

Walk an incident responder through break-glass re-identification and the record-keeping afterwards.

Guide me through Tenet PII Engine (Enterprise) break-glass re-identification, following [https://docs.tenetlabs.com/pii-engine/operate/break-glass](https://docs.tenetlabs.com/pii-engine/operate/break-glass.md). This is an incident procedure: confirm each step with me before running it.

Ask me for: the incident/ticket id; the break-glass role ARN (CloudFormation output BreakGlassRoleArn, Terraform break\_glass\_role\_arn, or the role I created for Helm's lattice.breakGlassRoleArn); my MFA device ARN; the rehydrate endpoint; the audit bucket and rehydrate prefix; and confirm I'm on a host inside an allowed VPC with a network path to VPC Lattice and the `tenet-pii-lattice` client installed.

1. Assume the role with `aws sts assume-role`, role session name `INC-<ticket>`, my MFA serial and a code I type; export the credentials into this shell only. Confirm with `aws sts get-caller-identity` that the ARN ends in `/INC-<ticket>`.
2. Run only the `python -m tenet_pii_lattice <rehydrate endpoint> reidentify <session_id>` calls I ask for, with text I provide. Never print restored text into this transcript unless I ask; write it to a file I name.
3. If a call returns 403, stop and check: the role ARN is the one the stack created, the host's VPC is in AllowedSourceVpcIds, and the host has a path to the VPC Lattice prefix list. Don't try other roles.
4. When I say the incident work is done, unset AWS\_ACCESS\_KEY\_ID, AWS\_SECRET\_ACCESS\_KEY and AWS\_SESSION\_TOKEN.
5. As my normal role, collect the audit records whose `caller` ends in `/INC-<ticket>` and the CloudTrail AssumeRole event for the break-glass role, and produce an incident note: session name, times, number of calls, each record's request\_id, outcome and restored count.

## Gotchas

* **Alarm on every assumption.** An EventBridge rule on CloudTrail `eventName = AssumeRole` with `requestParameters.roleArn` = the break-glass ARN. [Monitoring](https://docs.tenetlabs.com/pii-engine/operate/monitoring.md).
* **Break-glass skips only the approval tag.** Source VPC, network path, route isolation and audit-before-plaintext all still apply. An unwritable audit record still means `503` and nothing restored.
* **Name the session after the ticket.** The session name is the only link between a break-glass call and its incident in the audit trail: Lattice access logs record principal tags only on denied requests.
* **No break-glass without rehydration.** With rehydration off, the templates create no break-glass role.

## Links

* [Rehydration and audit](https://docs.tenetlabs.com/pii-engine/concepts/rehydration-and-audit.md)
* [Architecture — IAM roles](https://docs.tenetlabs.com/pii-engine/concepts/architecture.md#iam-roles)


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