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

# Security Model

Operations is a remote-execution surface running inside your customer's
own cloud account. This page documents the cryptography that makes
it auditable: which keys exist, where they live, which transitions
get signed, where signed evidence is preserved, and how anyone (you,
your customer, an auditor) can verify the chain after the fact.

![Customer keys sign command approval and output release; the controller key signs output integrity before encryption on the normal result path. The controller checks customer signatures against the pinned key. Not every lifecycle transition is signed.](https://mintcdn.com/tensor9/sk0doCXOSySfPRDi/images/diagrams/operations-security-signatures-wide-dark.svg?fit=max\&auto=format\&n=sk0doCXOSySfPRDi\&q=85\&s=a995caaa481778955c38249e3bbfa47f)

![Customer keys sign command approval and output release; the controller key signs output integrity before encryption on the normal result path. The controller checks customer signatures against the pinned key. Not every lifecycle transition is signed.](https://mintcdn.com/tensor9/sk0doCXOSySfPRDi/images/diagrams/operations-security-signatures-wide-light.svg?fit=max\&auto=format\&n=sk0doCXOSySfPRDi\&q=85\&s=843baa9534ff1e8c7496107623b21514)

![Customer keys sign command approval and output release; the controller key signs output integrity before encryption on the normal result path. The controller checks customer signatures against the pinned key. Not every lifecycle transition is signed.](https://mintcdn.com/tensor9/sk0doCXOSySfPRDi/images/diagrams/operations-security-signatures-stacked-dark.svg?fit=max\&auto=format\&n=sk0doCXOSySfPRDi\&q=85\&s=f203c60fa06b0e2a23c42e91ad8f5a1e)

![Customer keys sign command approval and output release; the controller key signs output integrity before encryption on the normal result path. The controller checks customer signatures against the pinned key. Not every lifecycle transition is signed.](https://mintcdn.com/tensor9/sk0doCXOSySfPRDi/images/diagrams/operations-security-signatures-stacked-light.svg?fit=max\&auto=format\&n=sk0doCXOSySfPRDi\&q=85\&s=462b4667bff095b955ed3fd15f61c96c)

The per-command signed flow uses two keys: your customer signs approval and output release; the appliance controller signs output integrity before encryption. The controller verifies customer decisions against the pinned customer key. A valid pre-approval can cover the relevant customer decision. Available evidence is preserved on the command record; some records lack signatures. Arrows show logical order, not every lifecycle transition.

## The trust chain at a glance

Two Ed25519 keypairs have different roles:

* **Your customer's signing key** signs command-approval and
  output-release manifests, or a standing pre-approval grant. Your
  customer generates it on their workstation and stores it in their own
  secret store. The matching public key is pinned where the appliance
  controller reads it before accepting those decisions.
* **The appliance controller's signing key** signs output integrity on
  the normal process-result path, before encryption. Its private key is
  read from the appliance controller's secret store under your customer's
  AWS IAM, Google Cloud IAM or Kubernetes RBAC, as appropriate. The
  matching public key is on the install record in your control plane.

These signatures cover specific records, not every lifecycle transition.
Customer-signed decisions authorize work or release; controller-signed
output integrity binds the result to the controller's signing key. The
command record preserves available signatures and manifests for later
verification.

## What the three signatures prove

The per-command signed flow has three distinct signature checks. The
customer signs approval and release; the controller signs output
integrity. A verified standing pre-approval can cover the corresponding
customer decision without a separate per-command manifest.

| Signature | Signer and timing | What is covered | What verification establishes |
| - | - | - | - |
| `commandApproval` | Your customer signs approval or rejection before execution | Command ID, decision, timestamp, signer label, reason and digest of the raw command | The customer signing key authorized that decision over those command bytes |
| `outputIntegrity` | The appliance controller signs the normal process result before encryption | Command ID, completion timestamp, exit code and a digest of the typed stdout/stderr result | The controller signing key signed that result; this does not prove the command's behavior was correct |
| `outputApproval` | Your customer signs output release or rejection | Command ID, decision, timestamp, signer label, reason and digest of the plaintext result | The customer signing key authorized that release decision over that result |

The output digest includes the result type and its metadata. For inline
output, it binds the content; for a blob, it binds the size, checksum and
URL. After mirroring, verification uses the original blob metadata to
preserve signature continuity. Fetching a blob and checking its checksum
is a separate step from verifying the signature over its metadata.

The normal process-result path signs before encrypting the result and
preserves the signature through encryption and release. Some legacy or
failure records have no output-integrity signature; a missing signing
key or signing error can also leave it absent. Inspect each audit check
rather than assuming every command has all three signatures.

Runtime verification and later audit verification use different sources
of trust. The appliance controller checks customer signatures against
the public key pinned in the customer's secret store. The audit CLI
checks a customer manifest against its embedded public key and reports
its fingerprint for comparison with the customer-pinned key. A valid
signature identifies the signing key; the fingerprint comparison ties
that key back to the customer's configured authorization.

## Where keys live

### Your customer's signing key

Your customer owns and stores their own private signing key. The
support-portal approval UI handles the setup on first approval (the
**Set up your signing keypair** step) and renders the bash snippets
your customer pastes into their own terminal.

The approval UI supports three storage backends, matched to the
appliance environment:

* **AWS appliances**: private key in your customer's AWS SSM
  Parameter Store as a SecureString (KMS-encrypted at rest).
* **GCP appliances**: private key in Google Cloud Secret Manager in
  the appliance's Google Cloud project.
* **Kubernetes appliances**: private key as a Kubernetes Secret in
  the cluster namespace.

The UI supplies the matching setup and signing snippets. GCP setup
needs the appliance's project to be reported to the UI. Reads and writes
use your customer's AWS IAM, Google Cloud IAM or Kubernetes RBAC
permissions for the selected backend.

| Property | Value |
| - | - |
| Algorithm | Ed25519 |
| Private key | Lives in your customer's own secret store: AWS SSM Parameter Store SecureString on AWS appliances, Google Cloud Secret Manager in the appliance's project on GCP, or a Kubernetes Secret in the appliance namespace. The browser never touches the private key. |
| Public key | Pinned where the appliance controller's verifier reads it. The UI supplies the matching write to AWS SSM Parameter Store, Google Cloud Secret Manager in the appliance's project, or a Kubernetes Secret in the appliance namespace. The controller needs read access under the corresponding AWS IAM, Google Cloud IAM or Kubernetes RBAC permissions. Use the paths and secret names rendered by the setup UI. |
| How it gets there | Your customer opens a support link. If no key is pinned, the UI supplies three terminal snippets: generate the keypair locally with `openssl genpkey -algorithm Ed25519`, store the private key, then pin the public key. The AWS snippets use `aws ssm put-parameter`; Kubernetes uses `kubectl create secret`; GCP uses the corresponding Google Cloud Secret Manager writes in the appliance's project. The UI polls until the controller reports the public key is visible. |
| Used to sign | Pre-approval grants and per-command approval / release manifests. The UI's terminal snippets fetch the private key from your customer's storage, sign canonical bytes locally with `openssl pkeyutl`, and submit the signed manifest. The private key is not sent to the control plane. |
| Recovery | Workstation loss does not remove a private key stored in AWS SSM Parameter Store, Google Cloud Secret Manager or a Kubernetes Secret. A workstation with the corresponding AWS IAM, Google Cloud IAM or Kubernetes RBAC read permission can fetch it and resume local signing. If the secret itself is lost, see "Lost-key recovery" in [Standing pre-approvals](https://docs.tensor9.com/byoc/fundamentals/operations/preapproval.md). |

### The appliance controller's signing key

| Property | Value |
| - | - |
| Algorithm | Ed25519 |
| Private key | Lives in the appliance controller's secret store. Reads are controlled by your customer's AWS IAM, Google Cloud IAM or Kubernetes RBAC, as appropriate. The operations signature flow gives the control plane the public verification key, not the private signing key. |
| Public key | Registered on the install record in your control plane so both you and your customer can fetch it to verify signatures. |
| How it is used | Output signing reads the private key from the install's signing-key path. If the key is unavailable, the result can have no output-integrity signature. |
| Used to sign | `outputIntegrity` on the normal process-result path. Legacy approval records can also carry controller signatures; current customer approval and release manifests use the customer's key. |
| Historical verification | The audit CLI fetches the current install's `opsCmdPubKey`, not a historical key stored with each result. If that key changes, the CLI can no longer verify an older controller signature against the old key automatically. Preserve the public key alongside archived evidence when you need verification across key changes. |

The customer signature records a decision under the customer's signing
key. The controller signature binds result bytes and execution metadata
to its signing key. They answer different questions: authorization and
result integrity. Neither signature replaces the other, and neither
turns every lifecycle event into a signed record.

## How non-repudiation survives revocation

Pre-approval involves two distinct artifacts stored in two distinct
places. They serve different purposes and have different deletion
properties.

| Artifact | Stored in | Purpose | Can your customer delete it? |
| - | - | - | - |
| Signed pre-approval manifest | Your control plane (on the template lineage record) | The non-repudiation evidence: the Ed25519-signed bytes plus the signer's embedded pubkey + fingerprint. The appliance controller fetches it from your control plane at decide time to verify against the controller-pinned customer-signing pubkey. | **No**, your customer has no access to vendor infrastructure. |
| Revocation record | Appliance controller vault (your customer's own cloud account) | A valid, readable record marks a pre-approval as revoked when the controller observes it. The record is unsigned. | **Yes**, your customer writes it to revoke the grant. A missing, unreadable, blank or malformed record is treated as not revoked. |

**An observed, valid revocation record stops use of that grant without
erasing its historical signature.** Verify that the controller recognizes
the record. Its reader treats a missing, unreadable, blank or malformed
record as not revoked; malformed records produce a warning. Removing or
invalidating the record can make a still-valid grant eligible again,
but it must still pass the current pinned-key and other grant checks.

The preserved manifest can still be checked against its embedded signer
public key. Compare its recorded fingerprint with the customer-authorized
signing key when establishing which key signed the grant.

The non-repudiation property holds because the manifest lives where
the customer can't unilaterally erase it: vendor-side
infrastructure. If the manifest lived on the appliance controller vault
instead, customer-side deletion would be both revocation AND
history-rewrite, and a customer could plausibly claim they never
signed anything that the appliance controller briefly acted on.

## Key rotation

Customers rotate their signing key for a few reasons: retiring a
workstation, suspected compromise of the laptop holding the key, an
employee with access leaving, or routine rotation per their own
security policy.

The mechanics:

1. **Generate a fresh keypair** and store its private key using your
   customer's existing signing-key setup flow.
2. **Replace the pinned public key** in the appliance controller's secret
   store with the new key. The current verifier reads one pinned customer
   key; it does not accept several keys pinned alongside one another.
3. **Review existing grants.** A pre-approval signed by a different key
   from the one currently pinned stops qualifying for automatic approval.
   New approval and release decisions must match the current pinned key.

Customer manifests preserve their embedded public key and fingerprint,
so the signature can still be checked after rotation. The audit CLI
reports that fingerprint; it does not fetch a historical customer pin.
Controller output-integrity signatures use the current install public
key fetched by the CLI, so changing that key affects automatic
verification of older controller signatures.

## What revocation does and doesn't do

Three distinct operations get called "revocation" loosely. They have
different effects.

| Operation | What it does | What it does NOT do |
| - | - | - |
| Write a revocation record for one pre-approval in the appliance controller vault | Stops automatic approval through that grant once the controller observes a valid, readable record. Verify that it recognizes the revocation. | Does not erase the signed manifest or revoke other grants. An unreadable or invalid record is treated as not revoked. |
| Delete or replace the pinned customer pubkey | Pre-approvals that no longer match the current pinned key stop qualifying for automatic approval. Per-command approval and release also need a valid current pin. | Does not erase history or undo commands that already executed. |
| Reject a per-command approval (in the approval UI) | Sets the command's lifecycle to `CmdRejected`. The command never executes. | Does not erase the (rejected) approval record from your control plane. A future audit can show the customer was offered the command and declined. |

Recognized revocation changes which authorization can be used going
forward. It does not erase recorded signatures or roll back a command's
effects. Deleting or invalidating the record does not revoke a grant;
a grant can qualify again only if its signature, current pinned key and
other grant checks still pass.

## Independent verification

Both you and your customer can inspect the available audit checks for a
specific ops command:

```bash theme={null}
tensor9 ops command audit verify \
  --appName my-app \
  --commandName check-myapp-disk
```

The action:

1. Pulls the command record and the install's current controller public
   key from your control plane.
2. Checks customer approval and release manifests against their embedded
   public keys, including the recorded fingerprint. Compare those
   fingerprints with the customer's pinned key separately; the CLI does
   not read the customer's secret store.
3. Checks available controller output-integrity signatures, and legacy
   controller approval signatures, against the current install key.
   Output still encrypted cannot yet be checked from plaintext and is
   reported as skipped.
4. Reports each check's status and available signer evidence.

A zero exit code alone does not mean that all three checks ran and
passed. Missing stages, rejected decisions and encrypted output can be
reported without a failure. By default, only a failed signature check
causes a non-zero exit; `--strict` also fails unsigned legacy records.
It does not make skipped or absent stages into failures.

Healthy checks appear as `[OK]`; verification failures appear as
`[FAIL]` with a reason. Inspect every per-check status and its trust
anchor. For programmatic use, pass `--output json` to archive the
reported checks, fingerprints and available signature evidence alongside
the command and relevant public keys.

The CLI verifies recorded cryptographic evidence. It does not certify
that every lifecycle transition was signed or independently prove the
customer's historical key pin.

## Related

* [Running commands](https://docs.tensor9.com/byoc/fundamentals/operations/lifecycle.md): the lifecycle states each signature attaches to.
* [Standing pre-approvals](https://docs.tensor9.com/byoc/fundamentals/operations/preapproval.md): pre-approval grant + revocation mechanics in detail.
* [Authoring templates](https://docs.tensor9.com/byoc/fundamentals/operations/templates.md): how data-access and side-effect declarations bound what a customer is consenting to at approval time.


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