# Secure your organization

Mask personal data on cards, limit access by IP, seal sensitive fields with your own key, and turn on single sign-on.

Records and security. About 10 minutes. HTML: https://promptcompute.ai/docs/org-security

## Before you start

- An owner role
- Sealed context needs the Enterprise plan; SSO and SCIM need Business or Enterprise

## Steps

1. **Mask personal data** Under Org security, turn masking on. Cards hide card numbers, SSNs, phone numbers and emails; approvers see full values in the inbox after a passkey check.

2. **Limit access by IP** Add your ranges in CIDR form. The dashboard, API and MCP server refuse other addresses. You cannot save a list that locks you out.

3. **Seal sensitive fields** Agents encrypt fields with your key. promptcompute stores only ciphertext; approvers' browsers open it through your codec endpoint.

```ts
import { seal } from "@promptcompute/sdk";

args: { amount: 120, customer: { ssn: await seal("123-45-6789", process.env.SEAL_KEY!, "k1") } }
```

4. **Run a codec server** Run a codec server inside your network and paste its URL. The token secret is shown once. Run the reference server, @promptcompute/codec from npm, or your own: it answers POST /decode, checks the token's HS256 signature and opens each AES-256-GCM envelope, as the codec endpoint docs describe.

5. **Turn on SSO and SCIM** Set up single sign-on and SCIM once in PromptReports ID; it covers promptcompute and the other products. People removed in your directory lose access.

## Use cases

### Customer data on cards

- Situation: Refund cards in Slack show customer emails.
- What to do: Turn masking on.
- Result: Slack shows d***@example.com; the full value stays in the inbox behind a passkey.

### Regulated fields

- Situation: Requests carry account numbers your security team will not send to a vendor.
- What to do: Seal those fields and run the codec server in your network.
- Result: promptcompute never sees the values; approvers still read them in the inbox.

## What you will see

Every setting change is in the signed ledger, and cards show only what your settings allow.

- Cards show masked values
- Requests from outside the allowlist get 403
- Sealed values show sealed, open in inbox on cards and open in the inbox

A masked card:

```text
Refund $120 for d***@example.com
Card: **** **** **** 4242
Some values are sealed with your key; open Details to see them
```

## If something goes wrong

- **Your address is not in the list.** Add your current address first; the page shows it. Saving refuses a list that would lock you out.
- **Sealed values do not open.** The codec server must allow CORS from the app's origin and hold the key id the agent used.
- **SSO setup is missing.** SSO lives in PromptReports ID. If it is not turned on for your deployment, ask the operator.

## Related

- [Export and verify the signed ledger](https://promptcompute.ai/docs/signed-ledger.md)
- [Decide requests](https://promptcompute.ai/docs/decide-requests.md)
- [Decide in Slack, Teams or email](https://promptcompute.ai/docs/slack-and-teams.md)
