Apparatus and method for data redaction in a semi-structured document database
An apparatus has a processor and a memory connected to the processor. The memory stores instructions executed by the processor to store a semi-structured document database including a collection of documents having semi-structured data formats. Data redaction rules are defined. Each data redaction rule includes a redaction type and a path expression to a redaction location within a semi-structured data format of a document within the collection of documents. The data redaction rules are applied to form redacted documents. The redacted documents are supplied.
1. An apparatus, comprising:
a processor; and
a memory connected to the processor, the memory storing instructions executed by the processor to:
store a semi-structured document database including a collection of documents having semi-structured data formats,
define data redaction rules, wherein each data redaction rule includes a redaction type and a path expression to a redaction location within a semi-structured data format of a document within the collection of documents,
apply the data redaction rules to form redacted documents, and
supply the redacted documents.
2. The apparatus of claim 1 wherein the collection of documents includes XML, documents and JSON documents.
3. The apparatus of claim 1 wherein the data redaction rules include a regular expression redaction rule.
4. The apparatus of claim 1 wherein the data redaction rules include a United States Social Security Number redaction rule.
5. The apparatus of claim 1 wherein the data redactions rules include a United States telephone number redaction rule.
6. The apparatus of claim 1 wherein the data redaction rules include an email address redaction rule.
7. The apparatus of claim 1 wherein the data redaction rules include an internet protocol address redaction rule.
8. The apparatus of claim 1 wherein the path expression is specified as an XQuery® function.
9. The apparatus of claim 1 wherein the path expression is specified as a JavaScript® function.
10. The apparatus of claim 1 wherein the redaction type is masking.
11. The apparatus of claim 10 wherein masking is full masking of an original value at the redaction location.
12. The apparatus of claim 10 wherein masking is partial masking of an original value at the redaction location.
13. The apparatus of claim 10 wherein masking substitutes an original value at the redaction location with a string from a collection of strings the form a dictionary.
14. The apparatus of claim 10 wherein masking is deterministic masking such that a specified value at the redaction location is substituted with a predetermined redacted output value.
15. The apparatus of claim 10 wherein masking is random masking of an original value at the redaction location.
16. The apparatus of claim 10 wherein masking conceals an original value at the redaction location.