arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04651cs.PL
收藏

Cedar:一种兼具表达力、高性能、安全性与可分析性的新型授权语言(扩展版)

Cedar: A New Language for Expressive, Fast, Safe, and Analyzable Authorization (Extended Version)

Joseph W. Cutler, Craig Disselkoen, Aaron Eline, Shaobo He, Kyle Headley, Michael Hicks, Kesha Hietala, Eleftherios Ioannidis, John Kastner, Anwar Mamat, Darin … 展开作者

Joseph W. Cutler, Craig Disselkoen, Aaron Eline, Shaobo He, Kyle Headley, Michael Hicks, Kesha Hietala, Eleftherios Ioannidis, John Kastner, Anwar Mamat, Darin McAdams, Matt McCutchen, Neha Rungta, Emina Torlak, Andrew Wells

AI总结:

本研究提出新型授权策略语言Cedar,兼具易读性、高性能与可分析性,经形式化验证与开源实现,对比同类语言在可读性和性能上均具优势。

摘要:

Cedar是一种新型授权策略语言,设计目标为符合人体工学、快速、安全且可分析。开发者无需将授权逻辑嵌入应用代码,而是可以将该逻辑编写为Cedar策略,并将访问决策委托给Cedar的评估引擎。Cedar语法简洁直观,可通过可读性强的策略支持常见授权用例,自然融合基于角色、基于属性和基于关系的访问控制模型中的概念。Cedar的策略结构可实现访问请求的快速裁决。Cedar的策略验证器利用可选类型系统帮助策略编写者避免错误,同时不会对其造成阻碍。Cedar的设计经过精细权衡,可支持健全且完备的逻辑编码,从而实现精确的策略分析,例如确保在重构一组策略时,已授权的权限不会发生变化。我们已用Lean编程语言对Cedar进行建模,并借助Lean的证明助手证明了Cedar设计的重要属性。我们用Rust实现了Cedar,并将其开源。将Cedar与OpenFGA和Rego这两种开源语言对比后,我们(主观上)发现Cedar的策略可读性相当或更优,且(客观上)性能表现远胜一筹。

英文摘要:

Cedar is a new authorization policy language designed to be ergonomic, fast, safe, and analyzable. Rather than embed authorization logic in an application's code, developers can write that logic as Cedar policies and delegate access decisions to Cedar's evaluation engine. Cedar's simple and intuitive syntax supports common authorization use-cases with readable policies, naturally leveraging concepts from role-based, attribute-based, and relation-based access control models. Cedar's policy structure enables access requests to be decided quickly. Cedar's policy validator leverages optional typing to help policy writers avoid mistakes, but not get in their way. Cedar's design has been finely balanced to allow for a sound and complete logical encoding, which enables precise policy analysis, e.g., to ensure that when refactoring a set of policies, the authorized permissions do not change. We have modeled Cedar in the Lean programming language, and used Lean's proof assistant to prove important properties of Cedar's design. We have implemented Cedar in Rust, and released it open-source. Comparing Cedar to two open-source languages, OpenFGA and Rego, we find (subjectively) that Cedar has equally or more readable policies, but (objectively) performs far better.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑