Multi-Tenant Management and Research Based on the Big Data Platform of Sentry

Yuanyuan Chang, Meina Song, E HaihongInternational Journal of Computer Theory and Engineering 2017

Abstract

To realize authentication and access control of multi-tenant is one of the important problems to build big data platform. This thesis raises an access control policy based on the authentication mechanism of traditional Kerberos and the new incubation project of Apache, Apache Sentry. By combining Sentry and traditional protocols and the advantages of Sentry in the ecology of Hadoop, authentication and access control of big data platform are completed to guarantee the strong isolation among different tenants and moderate isolation among resources of different tenants.

Introduction

As big data platforms migrate to cloud environments, hosting multiple "tenants"—distinct organizations or departments—on shared hardware becomes a necessity. This multi-tenancy requires rigorous security to prevent unauthorized data access between tenants. Traditional security models often fail to address the scale and complexity of Hadoop environments. While Kerberos is the industry standard for identity authentication, it lacks granular authorization capabilities. This paper proposes a hybrid framework combining Kerberos for identity verification and Apache Sentry for fine-grained, role-based access control (RBAC), ensuring both strong isolation and flexible resource management.

Methodology: Authentication and Authorization

The proposed architecture rests on two primary pillars: identity authentication and resource authorization.

Identity Authentication via Kerberos

The system utilizes the Kerberos protocol to establish trust. It employs a centralized Authentication Server (AS) and a Ticket Granting Server (TGS) to provide Single Sign-On (SSO) capabilities. This mechanism ensures that users are authenticated without transmitting passwords over the network, effectively mitigating replay attacks through the use of timestamps.

The Kerberos authentication process involving the User, AS, TGS, and Service Server.

Fine-Grained Authorization with Apache Sentry

For authorization, the platform integrates Apache Sentry, which provides a modular architecture for policy enforcement across various data engines like Hive, Impala, and Solr.

The internal architecture of Apache Sentry, showing the Bindings, Policy Engine, and Policy Provider layers.

The Sentry architecture consists of three key layers:

  1. Bindings: These intercept requests (e.g., SQL queries) from data engines and pass them to the policy engine.
  2. Policy Engine: This component evaluates the request against defined security rules.
  3. Policy Provider: It retrieves permission metadata from a persistent store (database or file).

By mapping LDAP or Unix groups to Sentry "Roles," administrators can grant specific permissions (e.g., SELECT, INSERT) on specific objects (databases, tables, or URIs) without managing individual user accounts directly.

Implementation and Evaluation

The framework was implemented on the "CAD big data platform," a 6-node Linux cluster (24 cores, 64GB RAM per node) running Hadoop 2.7.3. The test environment simulated a complex organizational hierarchy with multiple centers ("CAD Core" and "Teach") and departments to evaluate permission inheritance and isolation.

Key Results

  • Effective Multi-Tenancy: The system successfully isolated data between project groups. Users with identical roles (e.g., Application Administrator) were restricted to data within their specific organizational silo.
  • Hierarchical Authority Levels: Four distinct administrative tiers were established: Data Administrator (full control), System Administrator (enterprise-wide management), Application Administrator (departmental management), and User (authorized operations only).
  • Unified Enforcement: Sentry-HDFS integration ensured that access restrictions applied at the SQL level (Hive/Impala) were consistently enforced at the file system level, preventing "backdoor" access via MapReduce or Spark.

Conclusion and Future Work

The combination of Kerberos and Apache Sentry provides a robust solution for multi-tenant security in big data ecosystems. By decoupling identity from permissions and offering SQL-level granularity, the system simplifies administrative overhead while maintaining high security standards. Future research will focus on reducing deployment complexity, extending support to a broader range of relational databases, and exploring "tag-level control" to further enhance system flexibility.

Summary updated

BibTeX
@article{chang2017multi,
  author = {Yuanyuan Chang and Meina Song and E Haihong},
  title = {{Multi-Tenant Management and Research Based on the Big Data Platform of Sentry}},
  journal = {International Journal of Computer Theory and Engineering},
  year = {2017},
  doi = {10.7763/ijcte.2017.v9.1181},
}
Figure