Policy as Code, Policy as Type

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autore principale: Fuchs, Matthew D.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909632454197248
author Fuchs, Matthew D.
author_facet Fuchs, Matthew D.
contents Policies are designed to distinguish between correct and incorrect actions; they are types. But badly typed actions may cause not compile errors, but financial and reputational harm We demonstrate how even the most complex ABAC policies can be expressed as types in dependently typed languages such as Agda and Lean, providing a single framework to express, analyze, and implement policies. We then go head-to-head with Rego, the popular and powerful open-source ABAC policy language. We show the superior safety that comes with a powerful type system and built-in proof assistant. In passing, we discuss various access control models, sketch how to integrate in a future when attributes are distributed and signed (as discussed at the W3C), and show how policies can be communicated using just the syntax of the language. Our examples are in Agda.
format Preprint
id arxiv_https___arxiv_org_abs_2506_01446
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Policy as Code, Policy as Type
Fuchs, Matthew D.
Cryptography and Security
Programming Languages
D.4.6; K.6.5; D.3.2; F.3.1; D.2.4
Policies are designed to distinguish between correct and incorrect actions; they are types. But badly typed actions may cause not compile errors, but financial and reputational harm We demonstrate how even the most complex ABAC policies can be expressed as types in dependently typed languages such as Agda and Lean, providing a single framework to express, analyze, and implement policies. We then go head-to-head with Rego, the popular and powerful open-source ABAC policy language. We show the superior safety that comes with a powerful type system and built-in proof assistant. In passing, we discuss various access control models, sketch how to integrate in a future when attributes are distributed and signed (as discussed at the W3C), and show how policies can be communicated using just the syntax of the language. Our examples are in Agda.
title Policy as Code, Policy as Type
topic Cryptography and Security
Programming Languages
D.4.6; K.6.5; D.3.2; F.3.1; D.2.4
url https://arxiv.org/abs/2506.01446