Repository navigation
Commit d90345e
Expanded redaction rules (core v0.85.0), saved upstream keys, rule text from core (#129)
* Redaction: provider keys as saved secrets; names and groups for the expanded rule catalog
Prepares the console and gateway for thinkwatch-core's expanded redaction
catalog (about 115 built-in rules in 20 kinds).
- Saved secrets: the API keys in the providers' credential headers
(the auth scheme stripped) and Bedrock secret access keys are collected
whenever the providers load (startup, provider CRUD, the cross-instance
reload), under the provider's name with its base URL host. The guards
and the at-rest redactor are recompiled when they change. They reach the
rule set in one place, `guard_policy::saved::with_saved`, which hands
them to core once `RuleSet::with_saved` is released.
- Audit: a saved-secret event names the provider (`sources`), never any
part of the value, masked or not; aggregation per rule is unchanged.
- Legacy PII list conversion: switch on or off only the personal rules
the old list could express; new personal rules ship as they are.
- Console: group headers for the new kinds in core's order, saved keys
first; zh/en names for every new rule id; descriptions for the new
matcher shapes (prefixes, saved, assignment, labeled) and for rules
checked in code; the security log shows whose key a saved-secret hit
was; the rule search also matches prefixes and field names.
Temporary: the core crates are pinned to the branch
`feat/redact-rules-expand` until the expanded catalog is released;
re-pin to the release tag before merging.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Redaction: match saved provider keys; rule text from the core catalog
- Saved secrets: the providers' keys are compiled once with core's
`Saved` and handed to every rule set (`RuleSet::with_saved_set`, in
`guard_policy::saved::with_saved`), to dangerous commands
(`Rules::with_saved`, so a provider key sent to its own host is not
flagged) and to the console's trial (`trial::run_with`).
- Audit: a saved-secret event's `sources` now come from core's
`Finding::source` instead of searching the request again.
- Console: rule names, reasons and descriptions (`name_zh`, `why_zh`,
`about` / `about_zh`) and group names (`kinds`) come from the rule
view in both languages. The console's own tables of rule names, group
names, check texts and card networks are removed, and so are the
per-matcher descriptions the server's `about` replaces. Security log
rows and trial hits look the name up by rule id.
Temporary: the core crates are pinned to the branch `feat/redact-catalog`
until the expanded catalog is released; re-pin to the release tag before
merging.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Pin thinkwatch-core v0.85.0; changelog for the expanded redaction rules
The core crates move from the temporary branch pin to the v0.85.0 tag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent df35254 commit d90345e
35 files changed
Lines changed: 1305 additions & 714 deletions
File tree
- crates
- common/src
- guard_policy
- gateway/src
- lifecycle
- proxy
- server/src
- handlers/admin
- test-support/tests
- web
- scripts
- src
- i18n
- lib
- routes/gateway/security
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
14 | 82 | | |
15 | 83 | | |
16 | 84 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
513 | 515 | | |
514 | 516 | | |
515 | | - | |
| 517 | + | |
516 | 518 | | |
517 | 519 | | |
518 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments