Skip to main content

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.

note

With distributed Spark, the notebooks' policy must allow the workers' connection back to the notebook.

Trino: graceful shutdown

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.

Ranger auditing

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.

Auditor role

Directory groups can receive the ROLE_ADMIN_AUDITOR role, separating who audits from who administers.

Ranger plugin in Trino

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 recordedWho records itWhere to look it up
Access decisions on the services integrated with Ranger, allowed and deniedRanger plugin on the service, with auditing enabledRanger Admin, with the records in the Ranger Solr
Change history of Delta Lake tablesScheduled 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 updatesArgo CDApplication 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​