ReferenceSchemas
Capture Policy Schema
Capture policy actions, redaction rules, default pattern redaction, and redaction reports.
CapturePolicy
{
"defaultAction": "capture",
"rules": [
{ "path": "customer.email", "action": "mask", "reason": "PII" }
]
}Actions
capture
drop
hash
maskCurrent Action Behavior
| Action | Current implementation |
|---|---|
capture | Capture after default pattern redaction. |
drop | Replace field with null. |
hash | Replace with [HASHED]. |
mask | Replace with [REDACTED]. |
encrypt, artifact_only, and metadata_only are not capture policy actions in v0.3. Use explicit artifact storage and context metadata when you need those semantics.
RedactionReport
| Field | Meaning |
|---|---|
fieldsDropped | Number of fields dropped. |
fieldsMasked | Number of fields masked. |
fieldsHashed | Number of fields hashed. |
patternsMatched | Pattern classes detected by default redaction. |