Dmitriy Kononov.
Let’s talkContact

News and analysis

Data redaction: check messages and log exports separately

Neon demonstrates role-based masking; Cloudflare transforms logs before export. Each protects a different boundary in the data journey.

A customer message can contain a phone number, an address and an order reference. A support employee needs context; an analytics destination usually needs a different set of fields. Hiding information on the screen alone may leave a copy in diagnostics or an export. October articles from Neon and Cloudflare are useful as descriptions of two separate boundaries in one data journey.

What an employee can see

In Neon’s pg_redact demonstration, published on 1 October, rules find possible personal fragments in free text, the Jev model classifies them, and a SQL function masks content according to the viewer’s role. It is a demonstration inbox, not evidence of deployment in a working support operation.

The practical challenge extends beyond recognizing digits. An order reference may be necessary to answer a customer, while another numeric fragment should be hidden. The example separates interpretation of content from permission to view it. A classifier may nevertheless miss a sensitive fragment or hide useful information. Testing your own examples and access roles remains part of the project.

What leaves the original system

On 12 October, Cloudflare described Logpush Transformers. A SQL query filters records and reshapes fields before NDJSON export. Teams can remove unused fields or mask selected values before sending logs to an analysis destination.

This addresses a different boundary. Database access rules for messages do not determine the fields in an exported event. Transforming logs does not correct an employee’s access to the source text either. Comparing the articles suggests a design principle: define the purpose and permitted fields for each recipient, rather than relying on one “hide personal data” switch.

Records leave storage through two separate filters that conceal selected elements.
Conceptual AI illustration of two data access boundaries.

Follow one message through the system

Create a fictional message with an order reference, contact details and a free-text comment. Trace the source record, the employee’s API response, an error log and the analytics export. At each step, identify the values that recipient actually requires.

Then test several access roles, an edit after classification and an uncertain classification result. Trigger a diagnostic error with the same message too: unnecessary content may appear in an error context even when the normal screen is correct. Do not send real customer messages to an experimental service simply to try the idea.

A useful acceptance condition is that an employee can complete the task using permitted information, while an external recipient receives no unnecessary fields. These mechanisms alone do not establish legal compliance; define the technical scope of verification separately.

Our guide to AI in data processing discusses the model’s bounded role. The archived PDF processing design covers extraction and review without a confirmed accuracy figure. For your AI workflow, start with a map of recipients and discuss the required processing boundaries.

Sources