When a contractor leaves a project, the team often forgets to revoke the API key that allows direct reads of the JSON schema used to validate customer data. The next day a batch job runs against that schema, pulls personal identifiers, and writes them to a log that no one monitors. The incident goes unnoticed until a regulator cites the organization for failing to provide lgpd‑required audit evidence.
lgpd expects organizations to maintain a clear inventory of personal data processing activities, to limit collection to what is strictly necessary, and to be able to demonstrate who accessed what data and when. It also requires that sensitive fields be protected, that any change to processing be approved, and that a replayable record exists for auditors.
In many development pipelines JSON schema lives in a source repository and is consumed directly by services without any runtime guardrails. The schema files are version‑controlled, but the actual data flowing through validation layers is invisible to compliance teams. Engineers can query the schema, inject new fields, or run ad‑hoc validation scripts with broad permissions. No central point records those accesses, no inline masking hides personal identifiers, and no approval workflow blocks accidental exposure.
Why lgpd matters for JSON schema
lgpd treats a schema as a data processing artifact because it defines the shape of personal information. Auditors look for:
- Evidence that only authorized identities have read or modify rights.
- Logs showing each validation request, the payload, and the outcome.
- Proof that fields containing names, addresses, or CPF numbers are masked or redacted in logs.
- Approval trails for schema changes that could broaden data collection.
Without a dedicated control plane, these signals are scattered or missing entirely.
What a proper control surface looks like
The missing piece is a data‑path gateway that sits between every client, human or automated, and the schema validation engine. The gateway must be able to:
- Authenticate the caller via a federated OIDC provider.
- Enforce just‑in‑time access policies that grant the minimum scope needed for a single operation.
- Mask personal fields in responses before they are written to logs.
- Require a human approval step for any request that attempts to modify the schema or to extract bulk records.
- Record the full request and response payload, along with the identity and timestamp, for replay.
When these capabilities live in the data path, every enforcement outcome is guaranteed to happen, because nothing can bypass the gateway.
