[Paper Review] PML: An Interpreter-Based Access Control Policy Language for Web Services
This paper proposes PML, a policy language and interpreter-based enforcement mechanism (PML-EM) that enables model-independent and implementation-independent access control for web services. By leveraging Lua's interpreter-on-interpreter execution, PML-EM achieves cross-language compatibility and sandboxed security, with policy enforcement overhead under 5.9 μs per request when using Lua JIT, demonstrating high performance and practical usability in real-world systems like Intel’s RMD and VMware’s Dispatch.
Access control is an important component for web services such as a cloud. Current clouds tend to design the access control mechanism together with the policy language on their own. It leads to two issues: (i) a cloud user has to learn different policy languages to use multiple clouds, and (ii) a cloud service provider has to customize an authorization mechanism based on its business requirement, which brings high development cost. In this work, a new access control policy language called PERM modeling language (PML) is proposed to express various access control models such as access control list (ACL), role-based access control (RBAC) and attribute-based access control (ABAC), etc. PML's enforcement mechanism is designed in an interpreter-on-interpreter manner, which not only secures the authorization code with sandboxing, but also extends PML to all programming languages that support Lua. PML is already adopted by real-world projects such as Intel's RMD, VMware's Dispatch, Orange's Gobis and so on, which proves PML's usability. The performance evaluation on OpenStack, CloudStack and Amazon Web Services (AWS) shows PML's enforcement overhead per request is under 5.9us.
Motivation & Objective
- Address the lack of standardization in cloud access control policy languages, which forces users to learn multiple languages and providers to rebuild authorization logic for each platform.
- Reduce development and maintenance costs for cloud service providers by enabling a single, reusable policy enforcement mechanism across different programming languages.
- Enable cross-cloud policy portability so users can migrate policies between platforms without rewriting.
- Provide a secure, sandboxed enforcement mechanism that isolates policy execution from the host system.
- Demonstrate practical viability and high performance of the proposed solution in real-world deployments and benchmarking on OpenStack, CloudStack, and AWS.
Proposed method
- Design PML as a high-level policy language capable of expressing ACL, RBAC, and ABAC models through abstract authorization logic separated from concrete policy rules.
- Implement PML-EM using an interpreter-on-interpreter (IoI) architecture, where the PML interpreter runs within a Lua interpreter to ensure sandboxing and portability.
- Leverage Lua’s lightweight, embeddable runtime to enable PML-EM to be used across systems written in Python, Java, C++, and other languages that support Lua embedding.
- Use Lua Just-In-Time (JIT) compilation to optimize performance, compiling PML matchers and interpreter logic into machine code for low-latency enforcement.
- Evaluate PML-EM across real-world platforms including OpenStack (Python), CloudStack (Java), and AWS IAM (C++/Java), measuring policy enforcement delay under realistic workloads.
- Compare performance against native enforcement mechanisms and non-JIT versions to isolate the impact of the interpreter layer and JIT optimization.
Experimental results
Research questions
- RQ1Can a single policy language express diverse access control models like ACL, RBAC, and ABAC without sacrificing expressiveness or performance?
- RQ2How can a policy enforcement mechanism be both model-independent and implementation-independent across different cloud platforms and programming languages?
- RQ3What is the performance overhead of using an interpreter-on-interpreter approach for policy enforcement in production-grade cloud systems?
- RQ4Can the use of Lua JIT significantly reduce the performance penalty introduced by the interpreter layer in policy enforcement?
- RQ5How does PML-EM compare to native enforcement mechanisms in terms of latency and scalability across real-world cloud platforms?
Key findings
- PML-EM achieves a policy enforcement overhead of less than 5.9 μs per request when using Lua JIT, making it suitable for low-latency cloud workloads.
- The interpreter-on-interpreter (IoI) mechanism enables PML-EM to run on systems written in any language that supports Lua embedding, achieving implementation language independence.
- With Lua JIT enabled, PML-EM’s performance is competitive even with the added abstraction layer, with overhead as low as 0.32x of the original mechanism in some benchmarks.
- The PML-EM design successfully decouples authorization logic from policy rules, enabling reuse across different access control models and platforms.
- PML has been adopted in real-world systems such as Intel’s RMD, VMware’s Dispatch, and Orange’s Gobis, confirming its practical usability and robustness.
- The performance evaluation shows that even with the interpreter layer, the total delay remains under 0.2% of typical Internet round-trip time (30–100ms), ensuring negligible impact on user experience.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.