Skip to main content
QUICK REVIEW

[Paper Review] Sieve: A Middleware Approach to Scalable Access Control for Database Management Systems

Primal Pappachan, Roberto Yus|arXiv (Cornell University)|Apr 16, 2020
Access Control and TrustSocial Sciences33 references5 citations
TL;DR

SIEVE is a middleware architecture that enables scalable fine-grained access control (FGAC) in database management systems by reducing policy evaluation overhead through query context-aware policy filtering and index-optimized guarded expressions. It achieves up to 5.6x speedup over baseline query rewrite strategies when enforcing thousands of policies, maintaining low latency even at scale.

ABSTRACT

Current approaches for enforcing Fine Grained Access Control (FGAC) in DBMS do not scale to scenarios when the number of access control policies are in the order of thousands. This paper identifies such a use case in the context of emerging smart spaces wherein systems may be required by legislation, such as Europe's GDPR and California's CCPA, to empower users to specify who may have access to their data and for what purposes. We present Sieve, a layered approach of implementing FGAC in existing DBMSs, that exploits a variety of their features (e.g., UDFs, index usage hints, query explain) to scale to a large number of policies. Given a query, Sieve exploits its context to filter the policies that need to be checked. It also generates guarded expressions that save on evaluation cost by grouping policies and exploit database indices to cut on read cost. Our experimental results demonstrate that existing DBMSs can utilize Sieve to significantly reduce query-time policy evaluation cost. Using Sieve DBMSs can support real-time access control in applications such as emerging smart environments.

Motivation & Objective

  • To address the scalability bottleneck in enforcing large numbers of fine-grained access control policies in database systems.
  • To support real-time access control enforcement in privacy-sensitive environments like smart campuses and IoT systems.
  • To enable existing DBMSs to handle thousands of policies efficiently without low-level system modifications.
  • To reduce query execution overhead from policy rewriting by minimizing both policy checks and tuple evaluations.
  • To design a general-purpose middleware solution that works across diverse DBMS platforms like MySQL and PostgreSQL.

Proposed method

  • SIEVE uses a layered middleware architecture deployed on top of existing DBMSs to avoid vendor-specific constraints.
  • It leverages DBMS features such as user-defined functions (UDFs), index usage hints, and query explain plans to optimize policy evaluation.
  • SIEVE filters relevant policies at query time using contextual information, reducing the number of policies to evaluate per tuple.
  • It generates 'guarded expressions' that group policies and use database indices to minimize disk I/O and predicate evaluation.
  • The system dynamically creates guard indexes to enable efficient index scans, reducing the number of tuples processed.
  • SIEVE employs bitmap scans in PostgreSQL to combine results from multiple guards efficiently, further reducing I/O and evaluation cost.

Experimental results

Research questions

  • RQ1How can fine-grained access control be scaled to thousands of policies in existing DBMSs without modifying the underlying system?
  • RQ2What middleware-level optimizations can reduce the performance overhead of policy enforcement during query execution?
  • RQ3Can DBMS features like UDFs, hints, and index scans be effectively orchestrated to accelerate policy evaluation?
  • RQ4How does the performance of SIEVE compare to traditional query rewrite-based policy enforcement under increasing policy loads?
  • RQ5To what extent can SIEVE maintain low-latency query processing across different DBMS platforms and datasets?

Key findings

  • SIEVE achieves up to 5.6x speedup over baseline query rewrite strategies when enforcing 1,200 policies per query on PostgreSQL.
  • The performance gain increases with the number of policies, demonstrating strong scalability as policy sets grow.
  • SIEVE outperforms baselines even without index usage hints in PostgreSQL, thanks to native bitmap scan support for combining index results.
  • PostgreSQL’s ability to use in-memory bitmaps for ORing results from multiple guards significantly reduces disk I/O and evaluation cost.
  • SIEVE maintains low query processing time even with thousands of policies, enabling real-time access control in privacy-sensitive applications.
  • The middleware approach enables portability across DBMSs like MySQL and PostgreSQL, showing generality and practical deployability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.