面向本地优先访问控制的系统导向形式验证
Towards System-Oriented Formal Verification of Local-First Access Control
AI总结:
本文提出通过形式化验证构建容错本地优先系统中的授权算法,利用Rust语言和Verus框架实现可验证的访问控制机制,并探讨其在Matrix等系统中的应用潜力。
摘要:
冲突自由复制数据类型(CRDTs)和本地优先概念不仅用于小规模协作系统,也用于大型系统如Matrix和Keyhive。由于相互信任不再成立,这些系统需要拜占庭容错和细粒度访问控制。本文采用自底向上的方法构建形式化验证的授权算法,贡献了基于能力访问控制和哈希日志的复制数据类型的语义和不变式。通过Rust语言和Verus框架实现形式化规范、验证和实现,利用Z3定理证明器在零运行时成本下进行验证。本文报告了采用该方法的经验和初步结果,并讨论了扩展访问控制表达性的下一步工作。是否能将此方法扩展到Matrix等真实本地优先访问控制系统仍需未来研究,但我们的发现展示了Verus在系统导向形式验证中的潜力。
英文摘要:
Conflict-free replicated data types (CRDTs) and the local-first concept are increasingly employed not only in small-scale collaboration systems among few users who trust each other, but also in large-scale systems, like Matrix for instant messaging and Keyhive for collaborative documents. Since mutual trust is no longer warranted, these systems require Byzantine fault tolerance and fine-grained access control. As of today, Matrix and Keyhive pair an informal specification with an unverified reference implementation. In this work, we follow a bottom-up approach towards constructing formally verified authorization algorithms for Byzantine fault-tolerant local-first systems. As intermediate target for formal verification, we contribute semantics and invariants of a replicated data type for managing simplified collaboration groups, based on capabilities for access control and hash chronicles for replication. To enable future integration into local-first systems like Matrix and Keyhive, we strive for accessibility to system engineers by using the Rust programming language for formal specification, verification, and implementation, enabled by the Verus framework using the Z3 theorem prover at zero runtime cost. We report on our experience and preliminary results following this approach, and discuss next steps towards scaling up access control expressiveness. Whether this approach can be scaled up to the complexity of real-world local-first access control systems like Matrix or Keyhive remains future work, but our findings demonstrate the potential of system-oriented formal verification with Verus.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。