biscuit/README.md

83 lines
3.9 KiB
Markdown
Raw Permalink Normal View History

2020-10-28 13:47:31 +03:00
# Biscuit authentication/authorization token
2019-01-02 16:23:30 +03:00
2022-01-22 15:25:04 +03:00
[Join the Matrix chat](https://matrix.to/#/#biscuit-auth:matrix.org)
2019-01-18 18:52:11 +03:00
2021-12-02 23:50:18 +03:00
<img src="https://raw.githubusercontent.com/biscuit-auth/biscuit/master/assets/brown.png" width="200">
2019-01-07 14:19:08 +03:00
2022-01-27 21:07:33 +03:00
<https://www.biscuitsec.org>
2019-12-19 13:20:39 +03:00
## Goals
2019-01-07 14:19:08 +03:00
2020-10-28 13:47:31 +03:00
Biscuit is an authentication and authorization token for microservices
2019-01-02 16:23:30 +03:00
architectures with the following properties:
2021-02-26 13:05:55 +03:00
- **distributed authentication**: any node could validate the token only with public
2019-01-08 23:44:23 +03:00
information;
2021-02-26 13:05:55 +03:00
- **offline delegation**: a new, valid token can be created from another one by
2019-01-08 23:44:23 +03:00
attenuating its rights, by its holder, without communicating with anyone;
2021-02-26 13:05:55 +03:00
- **capabilities based**: authorization in microservices should be tied to rights
related to the request, instead of relying on an identity that might not make
2019-01-08 23:44:23 +03:00
sense to the verifier;
2021-02-26 13:05:55 +03:00
- **flexible rights managements**: the token uses a logic language to specify attenuation
and add bounds on ambient data, what it can model ranges from small rules like expiration dates,
2021-02-26 13:05:55 +03:00
to more flexible architectures like hierarchical roles and user delegation;
- **small** enough to fit anywhere (cookies, etc).
2019-01-02 16:23:30 +03:00
2019-12-19 13:20:39 +03:00
## Non goals
2019-01-08 23:44:23 +03:00
- This is not a new authentication protocol. Biscuit tokens can be used as
opaque tokens delivered by other systems such as OAuth.
- Revocation: Biscuit generates unique revocation identifiers for each token,
and can provide expiration dates as well, but revocation requires external
state management (revocation lists, databases, etc) that is outside of this
specification. See the [revocation guide](https://www.biscuitsec.org/docs/guides/revocation/)
for more information.
2019-12-19 13:20:39 +03:00
## Roadmap
2019-03-18 19:34:22 +03:00
2021-12-02 23:50:18 +03:00
You can follow the next steps on the [roadmap](https://github.com/biscuit-auth/biscuit/issues/12).
2019-03-18 19:34:22 +03:00
2019-12-19 13:20:39 +03:00
Current status:
- the credentials language, cryptographic primitives and serialization format are done
- we have implementations for biscuits v2 in
- [Rust](https://github.com/biscuit-auth/biscuit-rust)
- [Web Assembly](https://github.com/biscuit-auth/biscuit-wasm) (based on the Rust version)
- [Python](https://github.com/biscuit-auth/biscuit-python) (based on the Rust version)
- [Haskell](https://github.com/biscuit-auth/biscuit-haskell)
- we have implementations for biscuits v1 in
- [Java](https://github.com/clevercloud/biscuit-java) (migration to v2 is in progress)
- [Go](https://github.com/biscuit-auth/biscuit-go)
- a website with documentation and an interactive playground is live at <https://biscuitsec.org>
2021-12-02 23:50:18 +03:00
- Currently deploying to real world use cases such as [Apache Pulsar](https://github.com/clevercloud/biscuit-pulsar) at [Clever Cloud](https://www.clever-cloud.com/)
2019-12-19 13:20:39 +03:00
- looking for an audit of the token's design, cryptographic primitives and implementations
## How to help us?
- provide use cases that we can test the token on (some specific kind of checks, auth delegation, etc)
2021-04-16 10:41:34 +03:00
- cryptographic design audit: we need reviews of algorithms, their usage and implementation in various languages
- add support for biscuit v2 to java and go implementations
2019-03-19 12:38:21 +03:00
2019-12-19 13:20:39 +03:00
## Project organisation
- `SUMMARY.md`: introduction to Biscuit from a user's perspective
- `SPECIFICATIONS.md` is the description of Biscuit, its format and behaviour
- `biscuit-web-key/` is a specification for publishing biscuit public keys
2021-02-26 13:05:55 +03:00
- `DESIGN.md` holds the initial ideas about what Biscuit should be
- `experimentations/` holds initial code examples for the crypographic schemes and caveat language. `code/biscuit-poc/` contains an experimental version of Biscuit, built to explore API issues
2019-10-28 13:33:30 +03:00
## License
Licensed under Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
2019-12-19 13:20:39 +03:00
logo by [Mathias Adam](http://www.madgraphism.com/)
2021-12-02 23:50:18 +03:00
originally created at [Clever Cloud](https://www.clever-cloud.com/)
2019-10-28 13:33:30 +03:00
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be licensed as above, without any additional terms or
conditions.