---
name: tawa-wisp
description: "Written Information Security Program: controls mapped to what exists, gaps, vendors. Use for security program, vendor or compliance questions."
---

# Written Information Security Program (WISP): engineering controls

**Status: DRAFT for Derek and counsel review (2026-10-22).** Issue: tawa-docs#160. Voyager launch
row 19. This page describes what the platform does today and marks every claim that is not yet
true as a **GAP**, with an owner. It is not the signed program. The signed WISP is a portal page
in the `voyager` project, which summarises this page for counsel.

> **Public wording.** Marketing and product copy may say "HIPAA-grade privacy and security". It
> must never say "HIPAA compliant", "SOC 2 compliant", "bank-grade" or "military-grade" until a
> written source confirms the claim. Row 120 of the launch tracker holds the AES-256 line until
> that confirmation exists.

Siblings: [Incident response](incident-response.md) · [Data classification](data-classification.md) ·
[Retention schedule](retention-schedule.md) · [Regulatory posture](regulatory-posture.md) ·
[Database backups](database-backups.md).

## 1. Why this exists and what it covers

From 1 Nov 2026 the platform holds non-public personal information (NPI) for about 132k insureds,
FEINs, payment data and premium-finance agreements. NAIC Model Law #668 (as adopted by each
state), the GLBA Safeguards expectations and carrier due-diligence questionnaires all ask for a
written program: a risk assessment, a designated owner, controls, vendor oversight, training,
incident response and an annual review. The 3 Oct independent review (finding 3) found none.

**Open legal question (Q1, counsel).** #668 binds a *licensee*. Whether InsurEco is a licensee in
each pilot state, or reaches the same duties only through contracts with agencies and carriers,
changes who notifies whom. This page is written to the stricter reading.

## 2. Scope and ownership

| Item | Today | Gap |
|---|---|---|
| Program owner (the "qualified individual") | Derek is the proposed owner. | **GAP:** Derek to confirm in writing. Owner: Derek. |
| Reporting | None scheduled. | **GAP:** an annual written report to the owner, and a quarterly one while Voyager is new. Owner: Derek + agent. |
| Systems in scope | Every service that deploys through iec-builder, plus Forgejo, the Locker, Cloudflare, the tawa and tawa-runner droplets, and the jefferson host. | **GAP:** one inventory. The Koko registry lists services; non-Tawa hosts are not in it. Owner: agent. |
| Risk assessment | The 3 Oct review and the tracker rows 2–8 stand in for one. | **GAP:** a dated risk assessment and the threat-model / tenant-isolation matrix (tracker row 8, "to write"). Owner: agent. |

## 3. Controls mapped to what exists

Each row says what the platform does, then what is missing.

### 3.1 Access control

| Control | What exists | Gap |
|---|---|---|
| Identity | Bio-ID issues RS256 tokens. Services verify through JWKS and hold no shared secret ([auth](auth.md)). | None. |
| Authorization (new surfaces) | iec-bio-api asks SpiceDB (`bio-authz`) before every read. Schema v1: `read_public`, `read_profile`, `read_standard`, `read_sensitive`. It fails closed: a SpiceDB timeout (200 ms), error or open circuit is `503 ACCESS_UNAVAILABLE` with no data. | SpiceDB covers the Bio API surfaces only. Legacy callers keep their own rules. **GAP:** cut-over of legacy reads (tracker row 26, iec-bio-api#5). Owner: agent. |
| Cross-tenant defaults | Roles live on orgs, never on individual users. Personas can never be written into `platform`. | **GAP:** default-admin fallbacks confirmed in ballantyne, byte-mga, bd-cliselect and bd-servemga. Tracker rows 2–5 (rows 2 and 3 done, 4 in progress, 5 open); the shared `@insureco/authz` helper and CI grep gate (row 6) are not started. Owner: agent. |
| Gateway authorization | Janus evaluates each route's `auth`. | **GAP:** Janus runs in `shadow` mode by default: it records what it would refuse and forwards anyway, except for services listed in `authz.enforceServices`. `/i/` calls are not scope-checked per request. Each service must keep its own auth. Owner: agent (iec-janus). |
| Privileged access | Platform admin means `super_admin` in the JWT `roles` claim. jci `admin` is capped to the owner or a platform admin on every auth path. | None. |
| Test identities | Personas are password-less, 3-hour tokens, no refresh, org-scoped, roles at most what the creator holds. | A minted token cannot be revoked before it expires. Accepted exposure: three hours. |
| Joiners and leavers | Changing a Bio-ID `userType` or org membership takes effect at next token mint (up to one hour for access tokens). | **GAP:** a written joiner/mover/leaver checklist covering Forgejo, Locker, Cloudflare, DigitalOcean, the Anthropic console and the daryx vault. Owner: Derek. |
| Authentication strength | Bio-ID login. | **GAP:** confirm MFA is enforced for every human account on Bio-ID, Forgejo, Cloudflare, DigitalOcean, FWD and FinancePro consoles. Owner: Derek. |

### 3.2 Secrets and encryption

| Control | What exists | Gap |
|---|---|---|
| Secret store | The Locker (`iec-locker`) holds org credentials. Items are handed to services by handle (`tawa config set --secret KEY --from-locker lk://…`); the plaintext goes Locker to builder and never through a terminal. Every resolve is audited as a `UseEvent` and a Septor event, never with the value ([locker](locker.md)). | The daryx vault is deprecated for service secrets (iec-builder#258). **GAP:** finish the migration. Owner: agent. |
| Config at rest | Managed secrets are AES-256-GCM under `CONFIG_ENCRYPTION_KEY` in the builder database ([config](config.md)). | **GAP:** document where `CONFIG_ENCRYPTION_KEY` itself is held and who can read it. Owner: Derek. |
| Database credentials | MongoDB and MinIO credentials are Vault dynamic credentials (1 h lease, 24 h max). Postgres credentials are static (phase 1). | **GAP:** Postgres, Redis and Neo4j are static. Owner: agent. |
| Rotation | Vault credentials rotate by lease. | **GAP:** tracker row 49 (SendGrid key in raterspot-api and others found in old code) is open. Owner: Derek. There is no scheduled rotation for static secrets. |
| Encryption in transit | Public traffic ends at Cloudflare or the ingress with TLS. | Connections to MongoDB, Redis and Postgres inside the VPC are plaintext ([databases](databases.md)). **GAP:** record this as an accepted risk or enable TLS. Owner: Derek. |
| Encryption at rest | Application-level encryption for managed secrets only. | **GAP (blocks public copy):** written confirmation of disk and volume encryption on the DigitalOcean droplets, the attached volume (`volume-sfo3-01`), MinIO and the off-site backup droplet. Until then no "encrypted at rest" claim is made for customer data. Owner: Derek. |
| Logs | pino redacts `Authorization`, cookies, `password`, `secret`, `token` and named secrets at write time and again at read time. Command strings are redacted in build logs ([builder-logs](builder-logs.md)). | None known. |

### 3.3 Audit and monitoring

| Control | What exists | Gap |
|---|---|---|
| Audit trail | Septor writes a hash-chained, immutable event stream. A nightly Merkle root over the previous UTC day is anchored on both PolicyBlockchain chains (Settlement 1117710, InsureBio 1140615) ([septor](septor.md)). Anchors are live (tracker rows 25, 29, 53). | Emits are fire-and-forget. A failed emit is logged and lost, and a missing `SEPTOR_URL` silently drops events in split-pay. **GAP:** split-pay moves critical events to its outbox (#624, in progress); other services have no such guarantee. Owner: agent. |
| Data access log | bio-vault writes allowed and denied reads on entity routes to `accesslogs`. | **GAP:** denied attempts at Janus, masked 404s and unknown hashes are not recorded. The access ledger is iec-bio-api#24 (due 23 Oct). Owner: agent. |
| Uptime monitoring | iec-pulse probes every service's health endpoint (30 s prod). | None. |
| Money monitoring | split-pay `/api/health/rails` feeds iec-pulse; `rails-alerts` sends one batched email every 15 minutes. | **GAP:** the daily three-way reconciliation (FWD, split rows, ledger) is in progress (iec-split-pay#769). Owner: agent. |
| Chain monitoring | None yet. | **GAP:** validator monitoring with a 2-minute alert and a publisher key that is not a validator key (policyblockchain-node#9, #10, tracker row 24). Owner: agent. |
| Gas monitoring | Janus runs a daily check after 01:00 UTC and alerts when priced traffic stops being charged. | None. |
| Alert routing | Emails to named addresses. | **GAP:** one monitored destination that reaches a person's phone. See the on-call gap in [incident response](incident-response.md). Owner: Derek. |

### 3.4 Perimeter and network

| Control | What exists | Gap |
|---|---|---|
| Ingress | Cloudflare in front of the cluster ingress. Pods accept traffic only from the Janus and ingress-nginx namespaces by default (NetworkPolicy). | None. |
| Internal-only services | `insureco.io/internal: "true"` removes the Ingress and DNS record. | None. |
| Egress | `spec.egress.denyPrivate` adds a kernel-enforced egress policy. It is opt-in. | **GAP:** decide which money and PII services must set it. Owner: agent. |
| Databases | Private VPC addresses, firewalled to `10.0.0.0/8`. Postgres and Neo4j listen on localhost and the VPC only. | **GAP:** MongoDB is a single node. A replica-set decision is open (tracker row 9, bio-vault#215). Owner: Derek. |
| Pod availability | One replica unless `insureco.io/replicas` is set. | **GAP:** money services run one pod. Owner: agent. |

### 3.5 Change management

| Control | What exists | Gap |
|---|---|---|
| Source control | Forgejo, PR-only `main`, branch protection with `required_approvals=0`, so agents self-merge after rebase and green checks ([agile-workflow](agile-workflow.md)). | **GAP:** no second human reviews code before it ships. The compensating controls are required CI (bio-vault has it; **GAP:** not verified for other money repos), the Definition-of-Done merge gate (applies to iec-ledger, iec-ledger-ui and icap-portal only), and the deploy-approval gate. Derek decides whether money repos need a second approver. Owner: Derek. |
| Deploy | Builder pipeline with a wallet gate, owner-tamper guard, convention check and deploy-gated tests ([build-pipeline](build-pipeline.md)). An ungated service deploys to prod on merge. A gated service waits for `tawa approve` on the exact commit ([auto-deploy](auto-deploy.md)). | **GAP:** which money services are gated. Today the list lives in the console, not in a document. Owner: Derek. |
| Non-prod | UAT and sandbox are not in use. The prod-only rule stands until the Phase 0 exit test passes (iec-builder#243). | **GAP:** UAT for split-pay, bio-vault and iec-bio-api (tracker rows 56, 59). Owner: agent. |
| Rollback | `tawa rollback`; promotion reuses the image. | **GAP:** rollback drill. Owner: agent. |
| Secrets in code | Old code held live credentials (tracker row 49). | **GAP:** a secret scan on every repo in CI. Owner: agent. |

### 3.6 Backup and recovery

See [database-backups](database-backups.md). What is true today:

- MongoDB and PostgreSQL are dumped nightly (02:00 UTC) to MinIO `tawa-db-backups` and mirrored at 03:30 UTC to an off-site MinIO droplet in sfo2.
- Retention is 7 daily, 4 weekly and 3 monthly. That is about three months. **It is not a records archive.** See the [retention schedule](retention-schedule.md).
- Restore is admin-only and destructive, and needs `--confirm`.
- Nothing proves a restore works. **GAP:** a restore drill for bio-vault, split-pay, ledger, SpiceDB Postgres and the chain keys (tracker row 43, tawa-docs#166, not started). Owner: agent + Derek.
- **GAP:** backups of Redis, Neo4j and Mongo-less stores are not covered by this mechanism. Owner: agent to confirm which stores hold records.
- **GAP:** chain signing keys and the Locker's own recovery path need written recovery steps. Owner: Derek.

## 4. Vendor oversight

NAIC #668 requires due diligence on third parties that touch NPI, and contract terms that protect it.
The platform does not hold a DPA, SOC report or security questionnaire for any vendor below in any
place a reviewer can find. Every row's contract and review status is therefore a **GAP, owner Derek**.

| Vendor | What it touches | Notes |
|---|---|---|
| FWD | Card capture, payment intents, payouts to agencies | Money rail. Webhooks are signed; split-pay stores them raw before it acknowledges. |
| FinancePro | Premium-finance quotes, loan accounts, installment posting | The PF partner. See [regulatory posture](regulatory-posture.md) for who is the lender of record. |
| tawa-ppay-ach | ACH debits | Platform service; scope per the PolicyPay agreements. |
| PolicySign | E-signature | Signed webhooks. |
| Anthropic | Model inference (Claude) through workload identity federation, `workspace:inference` only ([claude-access](claude-access.md)) | NPI reaches a model provider through iec-extract and iec-loss-run. **GAP:** confirm the zero-retention and no-training terms in writing, and that raw carrier PDFs are covered. |
| DigitalOcean | Hosting, Kubernetes, volumes, container registry, Spaces | All data at rest sits here. |
| Cloudflare | DNS, TLS edge, Cloudflare for SaaS | Sees traffic in clear at the edge. |
| Lob | Physical mail with names and addresses | [lob-send](lob-send.md). Currently on a Lob test key unless configured otherwise. |
| SendGrid via relay | Transactional email | Recipients and message bodies. |
| Matomo (`engage.insureco.io`) | Page analytics on frontends | Self-hosted. |
| Forgejo, the Locker, iec-pulse | Self-hosted | In scope for the WISP as our own systems. |
| Partner validators on InsureBio | Chain nodes | Written approval from each partner before naming them. The chain holds hashes only, never NPI. |

Rules to keep:

- A vendor that receives NPI needs a signed agreement before go-live. Owner: Derek.
- Review each vendor yearly. Owner: Derek.
- Send a model provider only the classes the [data classification](data-classification.md) allows.

## 5. Training and awareness

None is documented. **GAP:** an annual security briefing for everyone with production access, including
a page on phishing, the Locker rules and the agent rules in this repo. Record attendance. Owner: Derek.

Agents follow the rules in `~/.claude/rules`, which `tawa skills sync` distributes. That is a technical
control. It is not training.

## 6. Annual review

The WISP, the risk assessment, the vendor list and the incident plan are reviewed once a year and after
any incident that reaches severity 1 or 2. **GAP:** first review date. Proposed: 1 Nov 2027. Owner: Derek.

## 7. Cross-links

- Incident response, with the 72-hour clock: [incident-response](incident-response.md).
- What each class of data may do: [data-classification](data-classification.md).
- How long records are kept: [retention-schedule](retention-schedule.md).
- Premium trust, E-SIGN, notices: [regulatory-posture](regulatory-posture.md).
- Backup and DR runbook: tawa-docs#166 (not started).
- AI governance note: tawa-docs#164 (in progress).

## 8. What NOT to do

- Do not publish "HIPAA compliant", "SOC 2", "bank-grade" or "military-grade". "HIPAA-grade privacy and security" is the approved phrase.
- Do not treat a green gate as proof that a control exists. Check the row above and its gap.
- Do not paste a secret into a ticket, a prompt or a terminal. Use a Locker handle.
