Macaroons (computer science)
≈ 1 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
In computer security, a macaroon is an authorization credential that supports decentralized delegation between principals. Macaroons are used in a variety of systems, including the Ubuntu Snappy package manager, the HyperDex data store, the Matrix communication protocol, and the Python Package Index.
In computer security, a macaroon is an authorization credential that supports decentralized delegation between principals. Macaroons are used in a variety of systems, including the Ubuntu Snappy package manager, the HyperDex data store, the Matrix communication protocol, and the Python Package Index.
Claims
A macaroon is composed of series of "caveats", for example: may upload files to /user/A/ (issued by server) only to /user/A/album/123 (derived by A) only GIFs, up to 1MB (derived by B) until noon today (derived by C) The macaroon model doesn't specify the language for these caveats; The original paper proposes a model of subjects and rights, but the details are left to individual implementations.
Invalidation
Implementations need to decide whether the entire macaroon tree is invalidated at once from its root, the server secret key; or if intermediate macaroons are to be blacklisted, comparable to time-bound JWT's.
See also
Authorization HTTP cookie OAuth OpenID Simple public-key infrastructure
References
Text derived from https://en.wikipedia.org/w/index.php?oldid=1278177084 under CC BY-SA 4.0; modifications have been made.