Skip to content
IQ

Security

Last updated: October 24, 2026.

This page covers the per-org security controls surfaced in the Settings → Security pane, and it carries the authoritative statement of the Zero Data Retention boundary. Live in production today: the Zero Data Retention setting, the anomaly rate-limit that caps how loudly the detector can fire, and the access scoping that gates every admin surface. The per-org PII redactor, which strips sensitive content out of the prompt before it leaves the gateway, is in pilot, by request. One control is on the roadmap and documented here as designed, not yet live: the multi-region data-residency control that would pin the org's region to matching providers.

The audience is an org admin tuning security plus data-residency posture. Each section names the control the admin flips, the gateway behaviour the flip changes, and the roadmap work that will close the section out.

Zero data retention

Status: Live today. Per-org Zero Data Retention is in force in production and is self-serve on every plan, including Free.

A workspace owner, or an admin with permission to edit workspace settings, can turn on Zero Data Retention (ZDR) from Settings. IQ records when it was enabled.

The retention boundary

With ZDR on, payload logging and telemetry content retention are disabled and locked for your workspace. The lock is a real lock rather than a default, so an attempt to arm payload capture while ZDR is on is rejected outright with a 400 instead of being quietly honoured, and an already-open capture window is closed by the same flip rather than merely being blocked from renewing. IQ normally stops recording free-text routing reasoning on the next request. During a settings outage, the previous setting for routing reasoning can stay in effect for up to a minute.

With ZDR on, the Responses API does not store conversation content or accept previous_response_id continuations. Send the context needed for each request. Without ZDR, stored conversations expire after the configured idle period, 24 hours by default.

With ZDR on, IQ does not cache your workspace's requests or responses: the gateway neither reads from nor writes to its response caches for your organization, including the semantic-similarity layer and its numeric fingerprint (an embedding) of each prompt. Entries cached before you turned ZDR on are no longer served; they expire on their normal schedule, within seven days. A workspace owner, or an admin with permission to change routing policy, can use Clear my workspace's cache when Settings shows it. See /docs/caching for how the cache layers work.

ZDR still allows operational metadata, including timing, token counts, cost and model choice, for billing and the requests browser. When loop detection is enabled for your organization, we also keep secret-key fingerprints of message and tool activity, activity counts, loop flags and estimated wasted cost to detect agents stuck in repeated loops. This applies with ZDR on too. Loop detection does not store message text, tool names, tool arguments or tool results. Its temporary activity summary expires 30 minutes after its last update. Loop metadata attached to request records has no automatic expiry. Diagnostic logs also retain loop metadata and organization and request identifiers.

What flipping it back off does

Turning ZDR off removes the lock and lets payload capture be enabled again on request, the same as before. It does not restore, backfill, or reconstruct anything that was never written while the lock was on. In the same way, turning ZDR on is forward-only. It does not delete payloads captured before enablement. If you need those removed, use the erasure path rather than assuming the flip did it for you.

What retained payloads are used for

Payload logging exists to give your team a requests browser. IQ keeps an internal, manually-run export an engineer can invoke to build training data for the systems that select a model for each request, but only for an organization that has explicitly opted in to that use, or for a design partner. No other organization's retained payloads are used this way, and this use is never on by default. The export is not a scheduled job and nothing in the gateway calls it automatically; an engineer runs it by hand, against the opted-in or design-partner orgs only. Turning payload logging on is a separate setting from that opt-in. It has no dashboard switch today: a workspace owner or admin can turn it on for a limited time through the settings API, or you can contact us. For an org that has opted in, the export reads only rows that org already retained under payload logging. There is currently no per-request control that lets an opted-in org exclude a specific retained row from the export; not opting in is the org-level control.

PII redactor inline path

Status: Pilot. The gateway PII redactor runs at the request boundary in production today. It is off by default for every workspace and protects nothing until it is turned on. It has no dashboard switch today: a workspace owner or admin can turn it on through the settings API, or you can contact us to turn it on. Once enabled, the two settings below control how it behaves.

The PII redactor runs inline on the request path so an org with the inline flag enabled redacts the prompt before it leaves the gateway, then re-injects the original spans on the response stream so the model's reply still references the user's actual data.

The two flags

The redactor reads two per-org settings:

  • A redaction mode: one of off, redact_in_transit, or redact_and_log. off skips the redactor entirely.
  • An inline-enabled gate. The inline path described here runs when the mode is not off AND inline is enabled. With the mode set but inline still off, the older write-through path runs instead: it redacts with [REDACTED:TYPE] markers and does not re-inject.

The two-flag design lets an org stage the rollout: set the mode to redact_and_log first to confirm the redactor finds the right spans without changing the prompt that goes upstream, then enable inline once the audit trail looks correct.

The two modes

redact_in_transit rewrites the prompt to replace each PII span with a placeholder token (<PII:EMAIL_0>, <PII:PHONE_1>, <PII:SSN_2>), stashes the original spans server-side with a 60-second TTL, and re-injects the original spans into the streaming response so the user sees their actual data in the model's reply. The model never sees the PII; the user never sees the placeholders.

redact_and_log rewrites the prompt the same way but skips the re-injection. The user sees the placeholders in the response. This mode is for high-sensitivity workflows where the PII must not round-trip even into the response stream.

The 60-second TTL

The span map is kept for 60 seconds after redaction. A response that is still streaming after that returns the placeholder tokens instead of the original values. The 60s budget is generous for the typical model latency (single-digit seconds) but tight enough that a stalled response cannot leak spans into a future request's window.

The request id that keys the span map is server-generated and is never read from a client-controlled header, so an attacker cannot forge one to read another user's span map.

The detection pass

The redactor detects four types of identifiers in message text: email addresses, phone numbers, US Social Security numbers, and credit card numbers. See DPI status below for the deep inspection setting.

The latency-budget gate

A latency budget (default 800 ms) limits each detection pass. With inline redaction on and the fail-closed policy enabled, a detection timeout rejects the request (HTTP 422), and the gateway writes an audit row with the request ID, the time budget and the time it took, and no prompt content. IQ attempts to record the audit entry. When redaction is enabled and inline redaction is off (the default), a detection timeout replaces the affected text with [REDACTED:BUDGET_EXCEEDED] and the request can continue.

Fail-closed is the safer of the two failure modes for a feature whose job is keeping PII out of what leaves the gateway: it never lets unredacted content through, at the cost of an occasional rejected request under sustained latency pressure.

On the roadmap

  • A redaction mode override for each key group. A group can use stricter redaction than the org default independently of other groups.
  • A live latency p95 plus p99 readout on the dashboard tile so an admin can see how close detection times are to the budget.

Anomaly rate-limit

Status: Live today.

The anomaly detector emits one event for every detection. A misconfigured detector or a real spike can flood the store with thousands of events per minute, which both costs storage and drowns the alert-rule evaluator.

When the cap is hit, the detector still writes the event but flips a rate_limited flag to true so the dashboard can render a "Rate limited" badge on the row. The row write is the audit evidence that the detector fired; what the flag suppresses is the webhook notification, so the audit trail stays complete without fanning every downstream subscriber out on a runaway detector.

The alert-rule type

An anomaly_rate_threshold alert-rule fires when the count of anomaly events in a rolling window exceeds a configured threshold. The rule config carries two keys:

{
  "window_hours": 1,
  "threshold":   50
}

window_hours defaults to 1 and threshold defaults to 50. The dashboard form constrains the config shape to exactly those two keys; an attempt to inject any other key is rejected at the submit handler.

The cooldown

Every alert-rule carries a cooldown that prevents the same rule from firing twice in quick succession. The dashboard prefills a 15-minute cooldown for the anomaly_rate_threshold rule type; a create that omits the field entirely lands the 60-minute default the other rule types use. The floor is enforced server-side, so even if the form submits a zero cooldown the validator rejects it and a misconfigured rule cannot ladder.

On the roadmap

  • A per-rule plus per-recipient cooldown so the same rule can fire immediately to the on-call SIEM but every 60 minutes to the Slack channel.
  • An "anomaly digest" alert-rule type that batches the rate-limited rows into a single notification at the cooldown boundary so the alert recipient sees one rolled-up message instead of N rate-limited badges in the dashboard.

Access scoping

Status: Live today. Operator gating and an owner/admin role gate on sensitive admin actions are both in force in production.

Separately, an owner or admin role check backs sensitive actions across most of the admin surface, including revealing another person's key, billing and member management. Any member can reveal their own API key, and an owner can turn off key reveal for admins.

Operator gating

Fleet-wide views are for IQ operators only.

Role assignments

Every member carries an org-scoped role of owner, admin, or member, set on invite. Only workspace owners can change an active member's role. The last remaining owner cannot be demoted or removed. Every invite, role change, and removal writes an audit row. This role is a real enforcement input today: it gates revealing other people's keys, billing and member management, not a display-only label.

Multi-region scaffolding

Status: Roadmap. Choosing a data region is not available yet.

PII customer-scoped enablement

Status: Pilot, except DPI (see below). These controls are part of the gateway PII redactor, which runs at the request boundary today and is off by default. There is no dashboard switch. A workspace owner or admin can turn it on through the settings API, or you can contact us to turn it on.

The redactor's latency budget, the deep-PII inspection (DPI) toggle, and the re-injection policy are workspace settings. Changes normally take effect within a minute. During a settings outage, a previous setting can stay in effect for up to an hour. See DPI status below for the availability of that control.

The three controls

  • A per-org latency budget (default 800ms): the wall-clock bound the inline path hands the redactor.
  • A per-org DPI opt-in (default off): reserved for future use.
  • A per-org re-injection policy (default always): controls how the response wrapper re-injects the original spans.

The latency budget override

A lower budget gives detection less time before the timeout behavior above applies. Set the budget through the settings API, which accepts values from 50 ms to 5,000 ms.

DPI status

The DPI toggle exists in the workspace settings and in this API, but it cannot be turned on yet: the recognizer it needs has not shipped, so a request to turn it on is refused.

The re-injection policy

The re-injection policy takes one of three values: always, trusted_only, or never. Any other value is rejected so a misconfigured admin endpoint cannot land a rogue policy.

always is the default and matches the inline contract: the response wrapper re-injects every per-request PII span so the user sees their original data in the model's reply. trusted_only re-injects only when the response originated from a trusted endpoint; otherwise the placeholders stay in the response. never skips the re-injection entirely so the response stream carries the placeholders.

Set the re-injection policy through the settings API.

Anomaly detector extended heuristics

Status: Live today. The base heuristic, the five extended heuristics, and the per-type rate-limit windows are in force in production.

The anomaly detector fires one base heuristic (thinking_budget_excess) plus emits one event per detection. The detector is extended with five new heuristics covering request-rate spikes, cost-rate spikes, failed-auth bursts, key-vault-reveal bursts, plus webhook failure streaks. Each event carries a discrete anomaly type that appears in the dashboard.

The five new types

The five new heuristics each emit an event tagged with a discrete anomaly type, and that type is the label you see on the dashboard row and in the anomaly-event telemetry:

  • request_rate_spike: fires on a sudden jump in request volume against that team's own usual level over the last 7 days, so a new or low-traffic team does not false-flag on its first normal burst.
  • cost_rate_spike: fires on a sudden jump in spend rate against that team's own usual level over the last 7 days, the same shape as request_rate_spike but measured on cost instead of request count.
  • failed_auth_burst: fires when a single actor's failed-auth attempts spike in a short window, independent of your org's traffic baseline, since a burst of auth failures from one actor is anomalous regardless of how much traffic your org normally sees.
  • key_vault_reveal_burst: fires when a single actor's key-reveal actions spike in a short window. The bar for this type is tighter than failed_auth_burst, since legitimate key reveals are rare.
  • webhook_failure_streak: fires when a single webhook destination accumulates consecutive delivery failures with no successes in between. See webhook capacity planning for how to keep a receiver healthy enough to avoid tripping this.

The exact thresholds behind each heuristic are tuned internally and are not published, since they double as anti-abuse controls; treat the anomaly type as the stable, documented surface, not the number that triggers it.

Per-type rate-limit windows

The per-org rate-limit is scoped to the firing anomaly type rather than shared across every heuristic. The detector counts the events already written for that org, that key group, and that anomaly type inside the last rolling minute, and compares the count against the org's cap; a detection that would exhaust the type's own bucket flips the rate_limited flag on the emitted event but writes the event anyway, so the audit trail stays complete either way.

Per-type scoping keeps the budgets independent: each anomaly type gets the full per-minute cap to itself, so a noisy heuristic on one type cannot suppress visibility into another, and tuning the cap up for a high-traffic org does not trade one type's visibility against another's.

Alert-rule integration

The anomaly_rate_threshold alert-rule counts every anomaly event the org wrote inside the rolling window, without filtering by type, and fires when the count exceeds the configured threshold. Its config is a closed schema of exactly window_hours plus threshold; a third key, including an anomaly_type filter, is rejected at the gateway boundary rather than silently stored.

One heuristic does have its own rule type. auth_failure_burst_5m reads failed_auth_burst events over a fixed five-minute window, which is the shape a credential-stuffing spike actually has, so a login-loop or a stuffing run can page separately from the org-wide anomaly count.

The 15-minute cooldown prefill carries forward on the anomaly_rate_threshold rule type; auth_failure_burst_5m takes the 60-minute default unless the operator dials it down.

On the roadmap

  • A per-detector backoff so a heuristic that keeps firing and hitting its rate limit tightens its own budget for the next window, closing the gap a patient, low-and-slow actor could otherwise pace around.
  • A per-heuristic alert digest that batches the rate-limited events into a single notification at the cooldown boundary.
  • Full audit-chain coverage on the anomaly event records so the verifier no longer skips any rows.