Skip to main content

Layered security,
each layer with its own role.

How TDP Kubernetes confirms who accesses each component, decides what each identity can do, and records access decisions, with the corporate directory, Apache Ranger, and TLS. This is the overview. Each topic has its own page.

Topics on this page

How the layers fit together​

Three layers combine in access: authenticate, authorize, and record, according to each component's integration.

Security in TDP Kubernetes: authenticate, authorize and recordPeople log in to the components with LDAP or Active Directory accounts; Argo CD uses SSO over OIDC through Dex, which also connects to the directory; applications connect to Kafka with SCRAM-SHA-512 or a TLS client certificate. Trino, NiFi and Kafka have the Ranger plugin and TLS on the service itself; the web interfaces can use HTTPS at the edge, through the Ingress or the Gateway API. UserSync brings directory users and groups into Ranger Admin, which stores the policies enforced by the plugins. The Ranger audit is kept in Solr, on a persistent volume, and can be reviewed by whoever holds the ROLE_ADMIN_AUDITOR role.WHO ACCESSES1 · AUTHENTICATEwho the user isCOMPONENTSaccess with confirmed identity2 · AUTHORIZEwhat they can do3 · RECORDwhat happenedPeoplebrowser, SQL clientand notebooksApplicationsKafka producersand consumersLDAP / Active Directorycorporate directorylogin to the web interfacesand to SQL queriesDex · SSO (OIDC)Argo CD loginwith directory accountsLDAP connectorKafka credentialsSCRAM-SHA-512 orTLS client certificateTrinoRanger pluginTLSNiFiRanger pluginTLSSupersetJupyterHubCloudBeaverAirflowOpenMetadataClickHouseKafka UIArgo CDKafkaRanger pluginTLSHTTPS at the edgeIngress or Gateway APIUserSyncusers and groupsfrom LDAP / ADRanger Adminaccess policiesKafka · NiFi · Trinoroles assignedper user and groupLDAP / AD loginSolrRanger auditpersistent volumeAuditorsroleROLE_ADMIN_AUDITORqueriesRanger pluginauthorization by Ranger policiesTLSTLS on the service itselfpolicies and users distributed periodicallyaccess path
Figure 1 - Authenticate, authorize, and record: TDP Kubernetes integration model

What the figure shows:

  1. Who accesses: people, through the browser, SQL clients and notebooks, and applications that produce and consume messages in Kafka. The gray arrows show the path of each access.
  2. LDAP or Active Directory keeps the accounts and groups of the people. Trino, NiFi and the other components with LDAP or Active Directory integration check the login directly in this directory, with the same corporate account.
  3. Dex handles the Argo CD login: it connects to the same directory and gives Argo CD a single sign-on (SSO) through OIDC.
  4. Kafka applications do not go through the directory. Each producer or consumer identifies itself with its own credentials: a SCRAM-SHA-512 user or a TLS client certificate.
  5. TLS encrypts the connection on the service itself. Trino only accepts passwords over HTTPS; NiFi, when it requires login, runs over HTTPS; Kafka has a TLS listener, which also receives the client certificates. On the other web interfaces, HTTPS can be at the edge, in the Ingress or in the Gateway API.
  6. The Ranger plugin runs inside Trino, NiFi and Kafka. It periodically fetches the policies from Ranger Admin, keeps a local copy and, on each access, decides whether the identity can do that. UserSync brings the users and groups from the directory into Ranger, so that the policies can reference them.
  7. Auditing stores in Solr, on a persistent volume, each access decision of the plugins. Whoever has the ROLE_ADMIN_AUDITOR role queries these records.

1 · Authenticate

The component confirms the identity of whoever accesses it. People sign in with their corporate directory account. Applications connect to Kafka with their own credentials.

2 · Authorize

In Kafka, NiFi, and Trino, the Ranger plugin decides whether access is allowed, based on the policies administered in Ranger Admin.

3 · Record

In the TDP Kubernetes deployment, the access decisions audited by Ranger are stored in Solr, with a persistent volume.

In detail​

Each topic has its own page.

Next steps​