Skip to main content
Docs

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.

SecurityData protection (DLP)

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.

When settings overlap, which wins A DLP decision can come from five layers: built-in default, platform default, a recommended rule's pin, your account choice, and a per-key setting. A lower layer overrides the layers above. A direct Local Node call has no key, so per-key settings do not apply. When settings overlap, which wins Built-in default Shipped with Tare, in code Platform default The platform's suggested first action A recommended rule's pin You pin one recommended rule to one choice Your account's choice Per type, under What counts as sensitive Per-key setting The DLP settings on this key Lower wins. A lower layer overrides those above. A Local Node has no key, so per-key settings do not apply.
Who wins when several settings all match

Suggested setup order

  1. Open Security.
  2. Confirm the account-level switch first: off, on, or follow platform default.
  3. In What counts as sensitive, confirm the handling for each type.
  4. For recommended rules, start with "just tell me" and watch the hit volume over 7/30 days.
  5. Once you've confirmed the impact, change the necessary rules to redact or block.
  6. 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.

ActionResultGood for
IgnoreNo actionClearly not sensitive, or too many false positives
RedactReplace with a placeholder and continue the requestPersonal information like emails and phone numbers
BlockThe request fails and is not sent upstreamHigh-risk content like keys, private keys, and seed phrases
AlertForward the request unchanged, log the event, and notifyYou want to observe the impact first without changing traffic
After a hit, your settings pick the action After a sensitive-content hit, the action is Ignore, Redact, Block, or Alert. The choice is yours per content type under Security, What counts as sensitive. It is not fixed on the content type. After a hit, you pick the action After a hit Your settings pick it. It is not fixed by content type. Ignore No action Not sensitive, or noisy Redact Swap in a placeholder Email, phone, similar Block Fail. Not sent on. Keys and seed phrases Alert Forward, log, notify Watch. Keep the traffic. None of the four is fixed on a type. You pick each one under Security, What counts as sensitive. Watch first, then tighten. Turning many rules to Block at once can break normal calls.
Which action a hit takes is decided by your settings

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.

Every string in the body is scanned Chat, embeddings, images, and video are scanned, before they leave Tare, on every string in the body except structural fields and base64 media. Secrets are on by default, personal data is redacted, and IP, MAC, and names are off until you turn them on. Every string in the body is scanned The whole request body Except model, role, type, id, and base64, every string is in Secrets On by default Cloud keys and tokens Personal data Redact, do not block Email, phone, ID no. Off by default Turn on to use it IP, MAC, names These defaults assume DLP is on. You can change the action per content type. Old IDs, bare passports, and bare 9-digit numbers are redacted by default. They fire only beside a word such as 身份证, SSN, or passport.
The whole request body's string values are scanned

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

TypeFormatNeeds a context word
TW_NATIONAL_IDLetter + 1/2 + 8 digits, official check digitNo
TW_RESIDENT_CERTNew: letter + 8/9 + 8 digits, same check digit as the national ID. Old: two letters (second A–D) + 8 digitsNew: no. Old: yes
TW_UBN8 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_PHILSYSPSN 12 digits (4-4-4) or PCN 16 digits (4-4-4-4)Yes, e.g. PhilSys, PSN, PCN, National ID
PH_TIN9 digits plus an optional 3–5 digit branch codeYes, e.g. TIN
PH_SSS10 digits (2-7-1)Yes, e.g. SSS
PH_UMIDCRN, 12 digits (4-7-1)Yes, e.g. UMID, CRN
PH_PHILHEALTH12 digits (2-9-1 or 4-4-4)Yes, e.g. PhilHealth, PIN
PH_PASSPORTLetter + 7 digits + letter, or older letter(s) + 6–7 digitsYes, e.g. passport, pasaporte
PH_DRIVERS_LICENSELetter + 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:

OptionEffect
Not enabledThese 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-hideHits are redacted, the same as built-in personal information types
Block directlyRaises 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:

CounterWhat it counts
Requests blockedRequests rejected because they contained a secret
Requests flaggedRequests forwarded unchanged under an "alert" setting
Turned away: unknown addressCalls from an IP not on the key's allowlist
Turned away: too many requestsCalls over a key's request limit
Settings changedChanges to keys, protection, nodes and call content settings
Jamerly staff opened your callsReads of your call traces under a support grant (see Call Traces)
Checks skipped by your codeRequests 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:

MethodPathWhat it does
GET/PUT/v1/dlp/policyRead or change the adoption policy: pack mode, ceiling, and per-type actions
GET/v1/dlp/packList recommended rules with pagination and filtering
GET/v1/dlp/pack/summaryHow many of your calls each rule would have hit over the last N days
PUT/DELETE/v1/dlp/pack/{ruleKey}/pinPin a single rule to one choice, or unpin it
POST/v1/dlp/pack/{ruleKey}/feedbackGive feedback that a rule was misjudged or is too noisy
GET/v1/dlp/noticesRecent adoption-related notices
GET/PUT/v1/dlp/keys/{keyId}/skipRead or change the skip settings for a key
POST/DELETE/v1/dlp/keys/{keyId}/skip/secretGenerate or clear the skip secret for this key. The plaintext secret appears only in this response and cannot be retrieved later
GET/v1/dlp/capabilitiesWhat custom rules can be built from
GET/POST/v1/dlp/rulesList or create custom rules, see Custom DLP rules
PUT/DELETE/v1/dlp/rules/{id}Change or delete a custom rule
POST/v1/dlp/rules/testTest 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 outcomes when a scan times out A huge or crafted input can time a rule out. The optional person, place, and organization layer is skipped and the other checks still run. A required rule, built-in or pinned, blocks the whole call and it is not billed. Two outcomes when a scan times out A rule does not finish (timeout) A huge or crafted input can cause it The optional layer Person, place, org names Skip it. Other checks remain. Rules that must run Built-in, or a pinned rule Block the call. Not billed. Letting a timed-out rule through is a way around it. Treat a timeout as fine, and the check no longer protects you.
Two outcomes when a scan can't finish in time

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.
Docs last updated Nov 27, 2026, 12:56 (UTC+8)