{"article":{"title":"Data protection (DLP)","breadcrumb":["Security","Data protection (DLP)"],"body":"**What this solves**: Scan sensitive content before a request leaves Tare, and decide per type what to ignore, redact, block, or only alert on.\n\nData 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.\n\nCalls that go directly to a [Local Node](local-nodes) are scanned on the node, with the same set of rules; what the node needs for this is covered on that page.\n\n### Account-level settings and per-key settings\n\nLook at these two layers separately:\n\n- **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.\n- **Per-key**: settings attached to a single key that override the account level. Only calls that reach Tare with that key use them.\n\nWhen 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.\n\nCalls that go directly to a [Local Node](local-nodes) have no key, so per-key settings don't come into play — the chain stops at your account choice.\n\n![Who wins when several settings all match](diagram:en-security-priority-layers)\n\n### Suggested setup order\n\n1. Open **Security**.\n2. Confirm the account-level switch first: off, on, or follow platform default.\n3. In **What counts as sensitive**, confirm the handling for each type.\n4. For recommended rules, start with \"just tell me\" and watch the hit volume over 7/30 days.\n5. Once you've confirmed the impact, change the necessary rules to redact or block.\n6. If you want to let certain test samples skip the check, configure DLP skip for the specified key.\n\n### The four actions\n\nWhich action a hit takes is decided by your settings, not hard-coded to the type.\n\n| Action | Result | Good for |\n|---|---|---|\n| Ignore | No action | Clearly not sensitive, or too many false positives |\n| Redact | Replace with a placeholder and continue the request | Personal information like emails and phone numbers |\n| Block | The request fails and is not sent upstream | High-risk content like keys, private keys, and seed phrases |\n| Alert | Forward the request unchanged, log the event, and notify | You want to observe the impact first without changing traffic |\n\n![Which action a hit takes is decided by your settings](diagram:en-security-four-actions)\n\nDefault advice: observe first, then tighten. Switching a large number of rules to block right away can disrupt normal business.\n\n### What gets checked\n\nThe 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.\n\n**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.\n\n**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.\n\nIP 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.\n\nName/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.\n\nThe defaults in the diagram below assume DLP is on; you can change the handling per content type.\n\n![The whole request body's string values are scanned](diagram:en-security-what-is-scanned)\n\n> [!NOTE]\n> 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.\n\n### Taiwan and Philippine identifiers\n\n| Type | Format | Needs a context word |\n|---|---|---|\n| `TW_NATIONAL_ID` | Letter + `1`/`2` + 8 digits, official check digit | No |\n| `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 |\n| `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 |\n| `PH_PHILSYS` | PSN 12 digits (4-4-4) or PCN 16 digits (4-4-4-4) | Yes, e.g. PhilSys, PSN, PCN, National ID |\n| `PH_TIN` | 9 digits plus an optional 3–5 digit branch code | Yes, e.g. TIN |\n| `PH_SSS` | 10 digits (2-7-1) | Yes, e.g. SSS |\n| `PH_UMID` | CRN, 12 digits (4-7-1) | Yes, e.g. UMID, CRN |\n| `PH_PHILHEALTH` | 12 digits (2-9-1 or 4-4-4) | Yes, e.g. PhilHealth, PIN |\n| `PH_PASSPORT` | Letter + 7 digits + letter, or older letter(s) + 6–7 digits | Yes, e.g. passport, pasaporte |\n| `PH_DRIVERS_LICENSE` | Letter + 2 + 2 + 6 digits (`N01-23-456789`) | Yes, e.g. driver's license, LTO |\n\nAll 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.\n\n### What happens after a hit\n\n- **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.\n- **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.\n- **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).\n\nIn 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.\n\n### Recommended rules\n\nBesides 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:\n\n| Option | Effect |\n|---|---|\n| **Not enabled** | These rules never affect your traffic |\n| **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\" |\n| **Auto-hide** | Hits are redacted, the same as built-in personal information types |\n| **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 |\n\nNew tenants default to **Just tell me**: until you choose otherwise, your traffic doesn't change at all.\n\nAny 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.\n\nEach rule row also takes feedback when a rule catches harmless text. Describe what was caught; never paste the sensitive text itself.\n\n### Skipping a check on purpose\n\nSometimes 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:\n\n- **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.\n- **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.\n\n> [!WARNING]\n> 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.\n\nFurther skip settings on the key:\n\n- **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.\n- **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.\n- **Rotating the secret.** The old secret stops working immediately; messages still carrying it are scanned as usual.\n\n### Recent events\n\n**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:\n\n| Counter | What it counts |\n|---|---|\n| Requests blocked | Requests rejected because they contained a secret |\n| Requests flagged | Requests forwarded unchanged under an \"alert\" setting |\n| Turned away: unknown address | Calls from an IP not on the key's allowlist |\n| Turned away: too many requests | Calls over a key's request limit |\n| Settings changed | Changes to keys, protection, nodes and call content settings |\n| Jamerly staff opened your calls | Reads of your call traces under a support grant (see [Call Traces](content-retention)) |\n| Checks skipped by your code | Requests that skipped checks via header or marker |\n\nWhen 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](audit-trail).\n\n### Configuring this via the API\n\nA console session uses these paths. A [management key](management-key) uses the same ones under `/v1/manage/dlp`; any other API key gets `403`:\n\n| Method | Path | What it does |\n|---|---|---|\n| `GET`/`PUT` | `/v1/dlp/policy` | Read or change the adoption policy: pack mode, ceiling, and per-type actions |\n| `GET` | `/v1/dlp/pack` | List recommended rules with pagination and filtering |\n| `GET` | `/v1/dlp/pack/summary` | How many of your calls each rule would have hit over the last N days |\n| `PUT`/`DELETE` | `/v1/dlp/pack/{ruleKey}/pin` | Pin a single rule to one choice, or unpin it |\n| `POST` | `/v1/dlp/pack/{ruleKey}/feedback` | Give feedback that a rule was misjudged or is too noisy |\n| `GET` | `/v1/dlp/notices` | Recent adoption-related notices |\n| `GET`/`PUT` | `/v1/dlp/keys/{keyId}/skip` | Read or change the skip settings for a key |\n| `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 |\n| `GET` | `/v1/dlp/capabilities` | What custom rules can be built from |\n| `GET`/`POST` | `/v1/dlp/rules` | List or create custom rules, see [Custom DLP rules](dlp-custom-rules) |\n| `PUT`/`DELETE` | `/v1/dlp/rules/{id}` | Change or delete a custom rule |\n| `POST` | `/v1/dlp/rules/test` | Test scan sample text |\n\nThe 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.\n\n### When a scan can't finish in time\n\nVery large or deliberately crafted input can make a rule time out. The response depends on which half timed out:\n\n- 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.\n- 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.\n\n![Two outcomes when a scan can't finish in time](diagram:en-security-scan-timeout)\n\n### Two related controls that live elsewhere\n\nDLP 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:\n\n- Limiting which source IPs a key can be called from — see [API Key](auth).\n- The account-level audit log: any change to prices, routing, billing mode, or credentials, no matter who made it, is recorded — see [Audit Trail](audit-trail).\n\n### Next steps\n\n- See what a single call leaves behind: read [Call Traces](content-retention).\n- Detect your own identifiers: read [Custom DLP rules](dlp-custom-rules).\n- Make hits trigger a notification: read [Alerts](alerts).\n- Learn about the same set of rules on the node: read [Local Node](local-nodes).\n- Unfamiliar term: check the [glossary](glossary).\n"},"diagrams":{"en-security-priority-layers":"<svg viewBox=\"0 0 344 510\" width=\"344\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>When settings overlap, which wins</title>\n  <desc>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.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-orange\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#f59e0b\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"344\" height=\"510\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       五层同宽同高：宽 300、高 54（两行：12 x 3 + 18），x = 22..322，框心 x = 172。\n       行距一律 28px，于是顶边 60 / 142 / 224 / 306 / 388，底边 114 / 196 / 278 / 360 / 442。\n       内容左右边界 22..322，宽 300，中心 172；viewBox 宽 = 300 + 两侧各 22 = 344。\n       五层同色 —— 它们不是不同角色，是同一件事（设置）的五种来源，\n       用一种颜色避免暗示「它们彼此不同」；覆盖方向交给箭头与脚注说。\n       高度 = 脚注末行基线 485 + 下伸 2.5 + 22px 边距 = 509.5，取整 510。 -->\n\n  <!-- 标题落在内容中心 172。y = 22 + 16 x 0.75 -->\n  <text x=\"172\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">When settings overlap, which wins</text>\n\n  <!-- 第 1 层：连线。竖向运行：起点 = 源框底边 + 5，终点 = 目标框顶边 - 11，\n       留 12px 可见线。四条全共轴 x = 172，每条都带着它离开的那个框的描边色。 -->\n  <path d=\"M172,119 L 172,131\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n  <path d=\"M172,201 L 172,213\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n  <path d=\"M172,283 L 172,295\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n  <path d=\"M172,365 L 172,377\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n\n  <!-- 第 2 层：方框和文字，盖住线头。\n       两行框的基线 = 框心 + 12 x 0.35 再上下各让 9px，于是 60 起的框落在 82 / 100。\n       橙是「处理中」那一组：这一组全是「由你/由平台设定的处理动作」，\n       不是数据（输入）、不是产出（输出），是决定本身。 -->\n  <rect x=\"22\" y=\"60\" width=\"300\" height=\"54\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"172\" y=\"82\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Built-in default</text>\n  <text x=\"172\" y=\"100\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Shipped with Tare, in code</text>\n\n  <rect x=\"22\" y=\"142\" width=\"300\" height=\"54\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"172\" y=\"164\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Platform default</text>\n  <text x=\"172\" y=\"182\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">The platform's suggested first action</text>\n\n  <rect x=\"22\" y=\"224\" width=\"300\" height=\"54\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"172\" y=\"246\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">A recommended rule's pin</text>\n  <text x=\"172\" y=\"264\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">You pin one recommended rule to one choice</text>\n\n  <rect x=\"22\" y=\"306\" width=\"300\" height=\"54\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"172\" y=\"328\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Your account's choice</text>\n  <text x=\"172\" y=\"346\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Per type, under What counts as sensitive</text>\n\n  <rect x=\"22\" y=\"388\" width=\"300\" height=\"54\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"172\" y=\"410\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Per-key setting</text>\n  <text x=\"172\" y=\"428\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">The DLP settings on this key</text>\n\n  <!-- 脚注两行，同为 10px、行距 15px，与标题同一条中轴 172。\n       「越靠下越优先」是整张图的唯一规则，框内放不下，落在脚注上。 -->\n  <text x=\"172\" y=\"470\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Lower wins. A lower layer overrides those above.</text>\n  <text x=\"172\" y=\"485\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">A Local Node has no key, so per-key settings do not apply.</text>\n</svg>\n","en-security-four-actions":"<svg viewBox=\"0 0 688 280\" width=\"688\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>After a hit, your settings pick the action</title>\n  <desc>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.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"688\" height=\"280\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       根框横跨整行 22..666（宽 644），四个动作框并排在这一行之下：\n       宽 140、间距 28，于是 22..162 / 190..330 / 358..498 / 526..666。\n       根框为什么横跨：块间距检查按「同一行」量水平净距，必须 25–30px；\n       根框若做成居中窄框，四条扇出腿要在 28px 的竖直通道里横移 ±250px，\n       只能画成几乎水平的斜线。根框撑满，四条腿就全是共轴竖线。\n       最宽的一行字是「邮箱、手机号等个人信息」= 11 x 10 = 110px，\n       140 的框宽给它留了左右各 15px 内边距。\n       行顶边 60 / 142，底边 114 / 214；根框 54 高（两行），动作框 72 高（三行）。\n       内容左右边界 22..666，宽 644，中心 344；viewBox 宽 = 644 + 两侧各 22 = 688。\n       这一张没有「两套中心」的分裂：根框与动作框的左右边界相同，\n       所以图形包围盒与全部内容包围盒是同一个 22..666，标题与脚注都落在 344。\n       高度 = 脚注末行基线 255 + 下伸 2.5 + 22px 边距 = 279.5，取整 280。 -->\n\n  <!-- 标题落在内容中心 344。y = 22 + 16 x 0.75 -->\n  <text x=\"344\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">After a hit, you pick the action</text>\n\n  <!-- 第 1 层：连线。竖向运行：起点 = 源框底边 + 5，终点 = 目标框顶边 - 11，\n       留 12px 可见线。四条全竖直、都带着根框的描边色（蓝）。 -->\n  <path d=\"M92,119 L 92,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M260,119 L 260,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M428,119 L 428,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M596,119 L 596,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n\n  <!-- 第 2 层：方框和文字，盖住线头。\n       两行框的基线 = 框心 + 12 x 0.35 再上下各让 9px，于是 60 起的框落在 82 / 100。\n       三行框的基线落在 165 / 183 / 198（框心 178 + 12 x 0.35 = 182.2，\n       12px 标题上让 17.2、两条 10px 行按 18 / 15 的间距往下摊）。\n       蓝是「输入」那一组：扫描命中，是这一分叉的入口。 -->\n  <rect x=\"22\" y=\"60\" width=\"644\" height=\"54\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"344\" y=\"82\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">After a hit</text>\n  <text x=\"344\" y=\"100\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Your settings pick it. It is not fixed by content type.</text>\n\n  <!-- 四个动作四种颜色：它们不是同一件事的四个变体，而是四种不同的结局\n       （不改 / 改了放行 / 不放行 / 不改但记账），所以用四个语义三元组区分。\n       绿 = 原样放行，什么都不发生。 -->\n  <rect x=\"22\" y=\"142\" width=\"140\" height=\"72\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"92\" y=\"165\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">Ignore</text>\n  <text x=\"92\" y=\"183\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">No action</text>\n  <text x=\"92\" y=\"198\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Not sensitive, or noisy</text>\n\n  <!-- 橙 = 处理中：请求照发，但内容被换掉了。 -->\n  <rect x=\"190\" y=\"142\" width=\"140\" height=\"72\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"260\" y=\"165\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Redact</text>\n  <text x=\"260\" y=\"183\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Swap in a placeholder</text>\n  <text x=\"260\" y=\"198\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Email, phone, similar</text>\n\n  <!-- 粉 = 警告：这是四个里唯一让调用失败的。 -->\n  <rect x=\"358\" y=\"142\" width=\"140\" height=\"72\" rx=\"6\" fill=\"#fce7f3\" stroke=\"#ec4899\"/>\n  <text x=\"428\" y=\"165\" font-size=\"12\" fill=\"#9d174d\" text-anchor=\"middle\">Block</text>\n  <text x=\"428\" y=\"183\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">Fail. Not sent on.</text>\n  <text x=\"428\" y=\"198\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">Keys and seed phrases</text>\n\n  <!-- 紫 = 观察：不改流量，只留记录并通知一声。 -->\n  <rect x=\"526\" y=\"142\" width=\"140\" height=\"72\" rx=\"6\" fill=\"#f3e8ff\" stroke=\"#a855f7\"/>\n  <text x=\"596\" y=\"165\" font-size=\"12\" fill=\"#6b21a8\" text-anchor=\"middle\">Alert</text>\n  <text x=\"596\" y=\"183\" font-size=\"10\" fill=\"#6b21a8\" text-anchor=\"middle\">Forward, log, notify</text>\n  <text x=\"596\" y=\"198\" font-size=\"10\" fill=\"#6b21a8\" text-anchor=\"middle\">Watch. Keep the traffic.</text>\n\n  <!-- 脚注两行，同为 10px、行距 15px，与标题同一条中轴 344。\n       「不写死在类型上」是这四种方式的共同前提，框内放不下，落在脚注上。 -->\n  <text x=\"344\" y=\"240\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">None of the four is fixed on a type. You pick each one under Security, What counts as sensitive.</text>\n  <text x=\"344\" y=\"255\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Watch first, then tighten. Turning many rules to Block at once can break normal calls.</text>\n</svg>\n","en-security-what-is-scanned":"<svg viewBox=\"0 0 520 295\" width=\"520\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Every string in the body is scanned</title>\n  <desc>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.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"520\" height=\"295\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       根框横跨整行 22..498（宽 476），三类内容框并排在这一行之下：\n       宽 140、间距 28，于是 22..162 / 190..330 / 358..498。\n       根框为什么横跨：块间距检查按「同一行」量水平净距，必须 25–30px；\n       根框若做成居中窄框，三条扇出腿要在 28px 的竖直通道里横移 ±168px。\n       最宽的一行字是「云凭据、私钥、平台令牌」= 11 x 10 = 110px，\n       140 的框宽给它留了左右各 15px 内边距。\n       行顶边 60 / 142，底边 114 / 214；根框 54 高（两行），内容框 72 高（三行）。\n       内容左右边界 22..498，宽 476，中心 260；viewBox 宽 = 476 + 两侧各 22 = 520。\n       高度 = 脚注末行基线 270 + 下伸 2.5 + 22px 边距 = 294.5，取整 295。 -->\n\n  <!-- 标题落在内容中心 260。y = 22 + 16 x 0.75 -->\n  <text x=\"260\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">Every string in the body is scanned</text>\n\n  <!-- 第 1 层：连线。竖向运行：起点 = 源框底边 + 5，终点 = 目标框顶边 - 11，\n       留 12px 可见线。三条全竖直、都带着根框的描边色（蓝）。 -->\n  <path d=\"M92,119 L 92,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M260,119 L 260,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M428,119 L 428,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n\n  <!-- 第 2 层：方框和文字，盖住线头。\n       两行框的基线 = 框心 + 12 x 0.35 再上下各让 9px，于是 60 起的框落在 82 / 100。\n       三行框的基线落在 165 / 183 / 198（框心 178 + 12 x 0.35 = 182.2，\n       12px 标题上让 17.2、两条 10px 行按 18 / 15 的间距往下摊）。\n       蓝是「输入」那一组：请求体是这一分类的来源。 -->\n  <rect x=\"22\" y=\"60\" width=\"476\" height=\"54\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"260\" y=\"82\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">The whole request body</text>\n  <text x=\"260\" y=\"100\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Except model, role, type, id, and base64, every string is in</text>\n\n  <!-- 三类内容三种语义：密钥类（高风险 → 粉/警告）、\n       个人信息（被改 → 橙/处理中）、默认关闭（不动作 → 绿/放行）。\n       三类给三种颜色，正是因为它们不是同一件事的三种变体，是三种不同的处置。 -->\n  <rect x=\"22\" y=\"142\" width=\"140\" height=\"72\" rx=\"6\" fill=\"#fce7f3\" stroke=\"#ec4899\"/>\n  <text x=\"92\" y=\"165\" font-size=\"12\" fill=\"#9d174d\" text-anchor=\"middle\">Secrets</text>\n  <text x=\"92\" y=\"183\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">On by default</text>\n  <text x=\"92\" y=\"198\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">Cloud keys and tokens</text>\n\n  <rect x=\"190\" y=\"142\" width=\"140\" height=\"72\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"260\" y=\"165\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Personal data</text>\n  <text x=\"260\" y=\"183\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Redact, do not block</text>\n  <text x=\"260\" y=\"198\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Email, phone, ID no.</text>\n\n  <rect x=\"358\" y=\"142\" width=\"140\" height=\"72\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"428\" y=\"165\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">Off by default</text>\n  <text x=\"428\" y=\"183\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Turn on to use it</text>\n  <text x=\"428\" y=\"198\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">IP, MAC, names</text>\n\n  <!-- 脚注三行，同为 10px、行距 15px，与标题同一条中轴 260。\n       第一条补「默认」的前提（原文「下图中的默认处理以开启 DLP 为前提」）——\n       单看这张图时不会把它误读成所有 key 都默认扫描；\n       后两条是原文 NOTE 的事实落点与它对脱敏机制的一句关键解释。 -->\n  <text x=\"260\" y=\"240\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">These defaults assume DLP is on. You can change the action per content type.</text>\n  <text x=\"260\" y=\"255\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Old IDs, bare passports, and bare 9-digit numbers are redacted by default.</text>\n  <text x=\"260\" y=\"270\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">They fire only beside a word such as 身份证, SSN, or passport.</text>\n</svg>\n","en-security-scan-timeout":"<svg viewBox=\"0 0 452 280\" width=\"452\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Two outcomes when a scan times out</title>\n  <desc>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.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"452\" height=\"280\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       根框横跨整行 22..430（宽 408），两个分支框并排在这一行之下：\n       宽 190、间距 28，于是 22..212 / 240..430。\n       根框为什么横跨：块间距检查按「同一行」量水平净距，必须 25–30px；\n       根框若做成居中窄框，两条扇出腿要在 28px 的竖直通道里横移 ±109px。\n       最宽的一行字是「内置的，或被钉住的推荐规则」= 15 x 10 = 150px，\n       190 的框宽给它留了左右各 20px 内边距。\n       行顶边 60 / 142，底边 114 / 214；根框 54 高（两行），分支框 72 高（三行）。\n       内容左右边界 22..430，宽 408，中心 226；viewBox 宽 = 408 + 两侧各 22 = 452。\n       高度 = 脚注末行基线 255 + 下伸 2.5 + 22px 边距 = 279.5，取整 280。 -->\n\n  <!-- 标题落在内容中心 226。y = 22 + 16 x 0.75 -->\n  <text x=\"226\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">Two outcomes when a scan times out</text>\n\n  <!-- 第 1 层：连线。竖向运行：起点 = 源框底边 + 5，终点 = 目标框顶边 - 11，\n       留 12px 可见线。两条全竖直、都带着根框的描边色（蓝）。 -->\n  <path d=\"M117,119 L 117,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M335,119 L 335,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n\n  <!-- 第 2 层：方框和文字，盖住线头。\n       两行框的基线 = 框心 + 12 x 0.35 再上下各让 9px，于是 60 起的框落在 82 / 100。\n       三行框的基线落在 165 / 183 / 198（框心 178 + 12 x 0.35 = 182.2，\n       12px 标题上让 17.2、两条 10px 行按 18 / 15 的间距往下摊）。\n       蓝是「输入」那一组：扫描规则跑不完是这张决策树的入口。 -->\n  <rect x=\"22\" y=\"60\" width=\"408\" height=\"54\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"226\" y=\"82\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">A rule does not finish (timeout)</text>\n  <text x=\"226\" y=\"100\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">A huge or crafted input can cause it</text>\n\n  <!-- 两个分支两种语义：可选那层超时（绿/放行——只是少了一层增强能力）、\n       必须跑的规则超时（粉/警告——拦下整次调用）。 -->\n  <rect x=\"22\" y=\"142\" width=\"190\" height=\"72\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"117\" y=\"165\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">The optional layer</text>\n  <text x=\"117\" y=\"183\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Person, place, org names</text>\n  <text x=\"117\" y=\"198\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Skip it. Other checks remain.</text>\n\n  <rect x=\"240\" y=\"142\" width=\"190\" height=\"72\" rx=\"6\" fill=\"#fce7f3\" stroke=\"#ec4899\"/>\n  <text x=\"335\" y=\"165\" font-size=\"12\" fill=\"#9d174d\" text-anchor=\"middle\">Rules that must run</text>\n  <text x=\"335\" y=\"183\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">Built-in, or a pinned rule</text>\n  <text x=\"335\" y=\"198\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">Block the call. Not billed.</text>\n\n  <!-- 脚注两行，同为 10px、行距 15px，与标题同一条中轴 226。\n       「超时放行等于绕过」是这一节的归因结论，框内放不下，落在脚注上。 -->\n  <text x=\"226\" y=\"240\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Letting a timed-out rule through is a way around it.</text>\n  <text x=\"226\" y=\"255\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Treat a timeout as fine, and the check no longer protects you.</text>\n</svg>\n"}}