Know where personal data is
and define access and retention.
How the catalog, access policies, auditing, and table maintenance help organize the handling of personal data in TDP Kubernetes.
Protecting personal data means knowing where it is, what it is used for, who can access it, and how long it must be kept.
In TDP Kubernetes, OpenMetadata, Ranger, and the lakehouse features take part in these decisions, from the inventory to table retention.
Know
Locate the datasets, classify the information, and document the purpose and the owners of each one.
Control
Grant each team the access it needs and follow the authorization decisions of the integrated services.
Manage the lifecycle
Set retention periods and organize the deletion of records and historical versions.
Topics on this page
- Identification and classification of personal data
- Data quality
- Who can access each dataset
- Tracking data usage
- Data retention and deletion
Identification and classification of personal data
OpenMetadata gathers information about data assets and lets you associate classifications, tags, and glossary terms with them.
With the catalog, you can locate the datasets that contain personal data and document the meaning of the information, the purpose of use, and who is responsible for it.
For example, a customers table can have the tax ID (CPF) and email columns identified in the catalog, with a description of how these fields are used in customer service.
Beyond locating data, the catalog helps you understand it.
Lineage, including at column level, shows where each piece of information comes from and which assets depend on it.
In TDP Kubernetes, an OpenMetadata Job registers the ClickHouse, Trino, Superset, Airflow, and Kafka services in the catalog. The Job runs by default, but only registers the services enabled one by one.
The ingestion jobs collect, on each run, the tables, columns, and relationships of every registered service.
The role of OpenMetadata in the platform and the asset classification features are described on the corresponding pages.
Scenario: impact report through lineage
Situation: a source table has a CPF column, and the responsible team needs to know where that information is used.
What TDP does: in OpenMetadata, lineage, including at column level, shows the assets that depend on the source table and on the CPF column: the tables, dashboards, and pipelines that consume it.
Effect: the team gets the list of affected assets, which guides the review of access and retention for each one.
Data quality
OpenMetadata offers data quality tests, which check whether values meet the defined rules, such as expected values, limits, and consistency.
The results are tracked in the quality dashboards of the OpenMetadata interface, along with data freshness and volume.
The Great Expectations library comes preinstalled in the TDP Kubernetes Spark and JupyterHub images.
Configuration in OpenMetadata Configuration, Spark Configuration, and JupyterHub Configuration.
Who can access each dataset
Ranger centralizes authorization policies for Trino, Kafka, and NiFi in TDP Kubernetes.
Permissions can be organized by user or group, according to the resources and operations each team needs for its work.
For example, in the Trino service in Ranger, a policy on the sales schema can grant query access to the tables a team uses in its analyses.
Because Trino policies reach column level, the personal fields the team does not need can be left out.
Besides leaving columns out, Ranger offers masking policies, which return the masked value, for example with a hash or with a custom expression that pseudonymizes the field, and row filter policies, which limit the rows returned to each user.
The person responsible for the environment reviews these permissions when people, assignments, or purposes change.
Scenario: mask the CPF for the analytics team.
Each Ranger integration is enabled on the service to be protected. The integrations are optional and start disabled in the chart.
Trino policies act on the queries made through that engine, and direct access to Ozone S3 has its own controls, such as Ozone S3 authentication, which only validates calls with Kerberos enabled.
Concepts in Ranger and Security Model.
Configuration in Ranger Integrations.
Tracking data usage
In the services integrated with Ranger, auditing records access decisions and lets you check who requested an operation, on which resource, and with what result.
In the deployment delivered by the TDP Kubernetes chart, these events are stored in Solr and can be queried through Ranger Admin.
These records let you investigate access, review permissions, and track the use of the datasets classified in the catalog.
Where to find the audit records: Observability. Ozone S3 authentication is in Ozone Security.
Scenario: three profiles on the same table
Situation: an integrated table gathers people's contact details, documents, address, and income. Three teams use it: operations, which needs to locate and contact each person; analytics, which calculates indicators by region; and internal audit, which answers requests about who accessed what.
What TDP does: the groups of the organization's directory reach Ranger through UserSync, and the audit group receives the auditor role. In the Trino service, three policies on the same table:
- operations queries name, document, and contact, without the income column;
- analytics queries all columns, with document and contact masked by hash and with a row filter by each analyst's region;
- audit does not query the table: in Ranger Admin, it queries the records of each access decision, with user, resource, operation, and result.
Effect: a single table serves the three teams, without copies with columns removed, and each access decision is recorded in the audit.
The complete design: Reference architectures › A single data view over legacy systems.
Data retention and deletion
Retention establishes how long each dataset remains available, including its historical versions.
In Iceberg, snapshots allow querying earlier states of the table. The retention period determines which of those states must remain available.
Deletion combines updating the table with maintaining the files:
| Action | How it takes part in deletion |
|---|---|
Delete records with DELETE | Removes the records from the current view of the table, preserving the history that is still retained. |
| Rewrite files, when needed | In merge-on-read deletions, materializes the deletions in the data files that still contain the records. |
| Expire snapshots | Removes old versions and allows deleting files that are no longer referenced by the retained snapshots. |
| Remove orphan files | Cleans up files with no reference in the metadata, using an interval longer than the duration of writes in progress. |
Files still referenced by the current version or by the preserved snapshots remain in storage as long as they are in use.
In TDP Kubernetes, the tdp-iceberg chart provides jobs for snapshot expiration, orphan file removal, and rewriting through Spark.
The commands of these jobs specify the tables and the periods for each environment, and the result of each run can be tracked in the corresponding Kubernetes Job.
For Delta Lake tables, cleaning up old files uses VACUUM, described in Lakehouse.
Iceberg details: write operations, delete modes, and snapshot and file maintenance.
Scenario: reviewing a contact database
Situation: a team keeps, in an Iceberg table, the contacts of a campaign with a defined deadline.
What TDP does: in OpenMetadata, the table, the personal columns, and the responsible team are identified, along with the purpose of the campaign.
In Ranger, the people and applications involved query through Trino only the columns they need, with the email and phone masked for those who do not need the real value.
At the end of the approved period, the records are deleted with DELETE, and the tdp-iceberg jobs for snapshot expiration and orphan file removal complete the deletion.
Effect: retention covers the records and the historical versions of the table, and the result of each maintenance job is available in the corresponding Kubernetes Job.
The catalog guides the inventory, the policies control access, and maintenance carries out the retention decisions.