Control who talks to whom
and record every access.
Who can talk to whom inside the cluster, and who accessed what, with which decision, in the audit map per component.
Network
Who can talk to whom inside the cluster.
Concept
NetworkPolicies
A NetworkPolicy defines the allowed inbound and outbound traffic for a set of Pods. The cluster's network plugin (CNI) enforces the rule.
In TDP Kubernetes
Ready-made rules in the charts
JupyterHub applies a NetworkPolicy to the notebooks by default, and Trino and Spark offer their own rules, which can be enabled in the chart. Cluster policies can be versioned and applied through the GitOps flow.
With distributed Spark, the notebooks' policy must allow the workers' connection back to the notebook.
With graceful shutdown enabled, which is the default, a Pod that reaches a worker's HTTP port can put it into shutdown. The Trino NetworkPolicy (tdp-trino.networkPolicy.enabled) restricts that access.
Auditing
Who accessed what, and with which decision.
The TDP Kubernetes chart deploys Ranger with a Solr dedicated to auditing, with configurable persistent volume size and StorageClass. Auditing in Solr: Ranger in TDP Kubernetes.
Directory groups can receive the ROLE_ADMIN_AUDITOR role, separating who audits from who administers.
The plugin configuration in Trino includes its own audit file, alongside the security and SSL files.
Audit map
Who records each type of event and where to look it up.
| What is recorded | Who records it | Where to look it up |
|---|---|---|
| Access decisions on the services integrated with Ranger, allowed and denied | Ranger plugin on the service, with auditing enabled | Ranger Admin, with the records in the Ranger Solr |
| Change history of Delta Lake tables | Scheduled DESCRIBE HISTORY job, among the tdp-deltalake maintenance jobs, enabled in maintenance.jobs.describeHistory.enabled (false by default) | Maintenance Job output |
| Application syncs, such as deployments and updates | Argo CD | Application history: History and Rollback in the interface or argocd app history |
Ranger auditing records both allowed and denied accesses, with the identity, the resource, the operation, and the result of each request.
The retention of these records follows Solr's persistent volume, configurable in tdp-ranger.solr.persistence.size and sized according to the desired retention and the volume of events.
See also
Identity
Authentication per component
The same corporate directory across the platform interfaces, component by component.
Access
Authorization with Ranger
Per-resource policies, masking, row filtering and tags, and the components' own access control.
Protection
Protection in transit and secrets
TLS per client path. Credentials in Secrets and their rotation.