One endpoint,
every model.
Tare is an OpenAI-compatible gateway in front of every model you use — ours and the ones you bring yourself. One base URL, one key, and every token accounted for.
Data protection (DLP)
What this solves: Scan sensitive content before a request leaves Tare, and decide per type what to ignore, redact, block, or only alert on.
Data protection (DLP) manages a set of rules. Every call to chat completions, embeddings, image generation, and video generation is scanned for sensitive content before it leaves Tare: keys that could impersonate you, and personal information that shouldn't reach the model unnecessarily. What happens after a hit is entirely up to you.
Calls that go directly to a Local Node are scanned on the node, with the same set of rules; what the node needs for this is covered on that page.
Account-level settings and per-key settings
Look at these two layers separately:
- Account-level: the account switch in the console under Security (on / off / follow platform default), plus your per-type handling choices in
What counts as sensitive. This layer covers the whole account. - Per-key: settings attached to a single key that override the account level. Only calls that reach Tare with that key use them.
When several settings could match, the priority is: built-in default ← platform default ← a recommended rule's own pin ← your account choice ← per-key settings, with later ones winning.
Calls that go directly to a Local Node have no key, so per-key settings don't come into play — the chain stops at your account choice.
Suggested setup order
- Open Security.
- Confirm the account-level switch first: off, on, or follow platform default.
- In What counts as sensitive, confirm the handling for each type.
- For recommended rules, start with "just tell me" and watch the hit volume over 7/30 days.
- Once you've confirmed the impact, change the necessary rules to redact or block.
- If you want to let certain test samples skip the check, configure DLP skip for the specified key.
The four actions
Which action a hit takes is decided by your settings, not hard-coded to the type.
| Action | Result | Good for |
|---|---|---|
| Ignore | No action | Clearly not sensitive, or too many false positives |
| Redact | Replace with a placeholder and continue the request | Personal information like emails and phone numbers |
| Block | The request fails and is not sent upstream | High-risk content like keys, private keys, and seed phrases |
| Alert | Forward the request unchanged, log the event, and notify | You want to observe the impact first without changing traffic |
Default advice: observe first, then tighten. Switching a large number of rules to block right away can disrupt normal business.
What gets checked
The whole request body is scanned, not just a few fixed fields: apart from structural fields (like model, role, type, and id) and binary content (base64 image/audio/video data), every string value is a candidate.
Secret-like values (cloud credentials, private keys, platform tokens such as ghp_…/sk_live_…/xox…, database connection strings, crypto wallet private keys and recovery phrases, auth tokens, and values that are obviously secrets from the variable name alone) are checked by default on any key with protection turned on.
Personal information (emails, phone numbers, ID card numbers, bank card numbers, passport numbers, and several other types with a fixed format) is redacted by default, not blocked: the call is still allowed and the value is replaced.
IP addresses and MAC addresses are off by default: logs, tickets, and support conversations are full of both, and redacting them by default would break a large amount of normal traffic for little real gain.
Name/location/organization recognition is also off by default, for a different reason: it costs real CPU time on every call. Turn it on if your traffic needs it.
The defaults in the diagram below assume DLP is on; you can change the handling per content type.
Legacy ID card numbers, bare passport numbers, bare 9-digit numbers, and other personal information are redacted by default. The truly hard step here is "can it be recognized", not "should it be detected". A bare 9-digit number, or a 15-digit old ID card number without a check digit, looks no different from an ordinary number on its own, so recognition only triggers when a contextual word like "ID card", "SSN", or "passport" actually appears nearby.
Taiwan and Philippine identifiers
| Type | Format | Needs a context word |
|---|---|---|
TW_NATIONAL_ID | Letter + 1/2 + 8 digits, official check digit | No |
TW_RESIDENT_CERT | New: letter + 8/9 + 8 digits, same check digit as the national ID. Old: two letters (second A–D) + 8 digits | New: no. Old: yes |
TW_UBN | 8 digits, weights 1,2,1,2,1,2,4,1, sum divisible by 5 (a 7th digit of 7 is checked both ways) | Yes, e.g. 統一編號, 統編, UBN |
PH_PHILSYS | PSN 12 digits (4-4-4) or PCN 16 digits (4-4-4-4) | Yes, e.g. PhilSys, PSN, PCN, National ID |
PH_TIN | 9 digits plus an optional 3–5 digit branch code | Yes, e.g. TIN |
PH_SSS | 10 digits (2-7-1) | Yes, e.g. SSS |
PH_UMID | CRN, 12 digits (4-7-1) | Yes, e.g. UMID, CRN |
PH_PHILHEALTH | 12 digits (2-9-1 or 4-4-4) | Yes, e.g. PhilHealth, PIN |
PH_PASSPORT | Letter + 7 digits + letter, or older letter(s) + 6–7 digits | Yes, e.g. passport, pasaporte |
PH_DRIVERS_LICENSE | Letter + 2 + 2 + 6 digits (N01-23-456789) | Yes, e.g. driver's license, LTO |
All of them are redacted by default. The context word has to appear shortly before the number. The Taiwan ID and the new resident certificate carry a check digit, so they are recognized on their own; a number in front of an invoice or order label is still left alone.
What happens after a hit
- Block: the call is rejected, returns
400, is not billed, and nothing is sent out. The error message says what was found and roughly where (field, line number, a short prefix), plus about 25 characters of context before and after the hit. The matched content itself, and any other sensitive information that happens to appear in that range, is replaced with[TYPE_REDACTED]. For seed phrases, private keys, and context-dependent secrets, even that context is withheld — the error message only states the type. The same evidence is also carried into the Call Traces failure record and the audit event. - Redact: the matched text is replaced with a placeholder, such as
[EMAIL_REDACTED], before the request continues. The call is billed normally, with no error and no special response header, and the model receives the redacted version. - Alert: the request is forwarded unchanged, the call is recorded as "detected" in Recent events, and a notification is sent to your alert channel; the same type of content is only sent once within the silence window (10 minutes by default).
In the console under Security → What counts as sensitive, every built-in type lists what the platform recommends and what you chose (ignore / replace with placeholder / fail the request / alert). The same block also has the account-wide switch (on, off, follow platform default). Person, place, and organization names are not checked by default and must be turned on there.
Recommended rules
Besides the built-in ones, new detection rules are occasionally published — for example, a rule for a newly discovered secret format — to a continuously maintained shared list. Whether these rules actually affect your traffic is entirely up to you, with four options:
| Option | Effect |
|---|---|
| Not enabled | These rules never affect your traffic |
| Just tell me (default) | Runs and counts hits as usual, but never changes or rejects a request; the Security page shows "what would happen if it were on" |
| Auto-hide | Hits are redacted, the same as built-in personal information types |
| Block directly | Raises the ceiling to BLOCK, but only applies to rules that are themselves published as blocks. A rule published as redact still only redacts |
New tenants default to Just tell me: until you choose otherwise, your traffic doesn't change at all.
Any single rule can be given its own option, independent of the account-wide setting. The Security page shows, for each rule, "how many times it hit your traffic in the past 7/30 days", so you can see the impact before you actually turn on enforcement.
Each rule row also takes feedback when a rule catches harmless text. Describe what was caught; never paste the sensitive text itself.
Skipping a check on purpose
Sometimes something that looks like a secret really isn't (a test sample, a redacted example already confirmed safe). If this feature is on for the key:
- A request header,
X-DLP-Skip: all(or a comma-separated list of specific types), skips the check for the whole request. It is read only once and never forwarded upstream. - An inline marker, placed at the very start of a message,
[[dlp:skip:<secret>]](or[[dlp:skip:<secret>:EMAIL,PHONE_CN]]to specify types), skips the check for that message only. The secret is generated once in the console and shown only that once; if the secret in the marker doesn't match, it is scanned as ordinary text as usual and is not silently allowed. The marker itself is stripped before the model sees it.
By default, skipping only exempts redaction, not blocking. Even if skip is on for the key, a real secret is still blocked, unless the key is specifically configured to skip blocking too. Turning that option on genuinely lowers your protection: anyone who can set a header or a marker can use it to push a real secret through unchecked.
Further skip settings on the key:
- Which messages the marker works in. You choose the message roles. Tool and assistant messages are produced by tools or the model, so text you did not write can end up in them; leave those roles off unless you need them.
- What is recorded. Count what was skipped still scans skipped content and counts what would have matched (never the text), shown under Recent events on the Security page. Do not look skips the scan entirely: faster, but no report.
- Rotating the secret. The old secret stops working immediately; messages still carrying it are scanned as usual.
Recent events
Security → Recent events lists everything blocked, redacted or turned away, and every change to security settings. Open an event to see which key and request it came from. The counters for the period:
| Counter | What it counts |
|---|---|
| Requests blocked | Requests rejected because they contained a secret |
| Requests flagged | Requests forwarded unchanged under an "alert" setting |
| Turned away: unknown address | Calls from an IP not on the key's allowlist |
| Turned away: too many requests | Calls over a key's request limit |
| Settings changed | Changes to keys, protection, nodes and call content settings |
| Jamerly staff opened your calls | Reads of your call traces under a support grant (see Call Traces) |
| Checks skipped by your code | Requests that skipped checks via header or marker |
When a period has too many events to count, the counters cover its most recent part, and the page says so. The full account change log is the Audit Trail.
Configuring this via the API
A console session uses these paths. A management key uses the same ones under /v1/manage/dlp; any other API key gets 403:
| Method | Path | What it does |
|---|---|---|
GET/PUT | /v1/dlp/policy | Read or change the adoption policy: pack mode, ceiling, and per-type actions |
GET | /v1/dlp/pack | List recommended rules with pagination and filtering |
GET | /v1/dlp/pack/summary | How many of your calls each rule would have hit over the last N days |
PUT/DELETE | /v1/dlp/pack/{ruleKey}/pin | Pin a single rule to one choice, or unpin it |
POST | /v1/dlp/pack/{ruleKey}/feedback | Give feedback that a rule was misjudged or is too noisy |
GET | /v1/dlp/notices | Recent adoption-related notices |
GET/PUT | /v1/dlp/keys/{keyId}/skip | Read or change the skip settings for a key |
POST/DELETE | /v1/dlp/keys/{keyId}/skip/secret | Generate or clear the skip secret for this key. The plaintext secret appears only in this response and cannot be retrieved later |
GET | /v1/dlp/capabilities | What custom rules can be built from |
GET/POST | /v1/dlp/rules | List or create custom rules, see Custom DLP rules |
PUT/DELETE | /v1/dlp/rules/{id} | Change or delete a custom rule |
POST | /v1/dlp/rules/test | Test scan sample text |
The overview number on the Security page (how many keys have protection on) comes from GET /v1/api-keys/dlp-summary, which gives the aggregate directly, without pulling every key and counting.
When a scan can't finish in time
Very large or deliberately crafted input can make a rule time out. The response depends on which half timed out:
- If it's the optional name/location/organization recognition that can't finish, that part is skipped and the rest of the checks still apply; this just means one call is missing a layer of enhanced capability, which is no reason to fail it.
- If it's a rule that must run (a built-in one, or a recommended rule given its own option) that can't finish, the whole call is blocked, is not billed, and the error message asks you to shorten the input. Allowing a call through because one rule couldn't finish would be handing out a way to bypass it: treating a timeout as "no problem by default" would make the protection itself meaningless.
Two related controls that live elsewhere
DLP is a content-layer protection: it looks at what's inside a single call. Two related controls are not in this section and are documented under their own features:
- Limiting which source IPs a key can be called from — see API Key.
- The account-level audit log: any change to prices, routing, billing mode, or credentials, no matter who made it, is recorded — see Audit Trail.
Next steps
- See what a single call leaves behind: read Call Traces.
- Detect your own identifiers: read Custom DLP rules.
- Make hits trigger a notification: read Alerts.
- Learn about the same set of rules on the node: read Local Node.
- Unfamiliar term: check the glossary.