Avatar for the biscuit-auth user
biscuit-auth
biscuit-rust
BlogDocsChangelog

Biscuit v5

#217
Comparing
v5
(
2c75eaf
) with
main
(
24f13e2
)
CodSpeed Performance Gauge
-2%
Improvements
0
Regressions
0
Untouched
12
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

check_signature_2
biscuit-auth/benches/token.rs::check_signature_2
CodSpeed Performance Gauge
0%
498.2 µs
498.1 µs
check_signature_5
biscuit-auth/benches/token.rs::check_signature_5
CodSpeed Performance Gauge
0%
1 ms
1 ms
append_block_5
biscuit-auth/benches/token.rs::append_block_5
CodSpeed Performance Gauge
0%
2.6 ms
2.6 ms
verify_block_5
biscuit-auth/benches/token.rs::verify_block_5
CodSpeed Performance Gauge
-1%
1.2 ms
1.2 ms
append_block_2
biscuit-auth/benches/token.rs::append_block_2
CodSpeed Performance Gauge
-1%
545.1 µs
549.1 µs
verify_block_2
biscuit-auth/benches/token.rs::verify_block_2
CodSpeed Performance Gauge
-1%
600 µs
606.5 µs
unverified_append_block_5
biscuit-auth/benches/token.rs::unverified_append_block_5
CodSpeed Performance Gauge
-1%
923.8 µs
934.1 µs
unverified_append_block_2
biscuit-auth/benches/token.rs::unverified_append_block_2
CodSpeed Performance Gauge
-1%
296.8 µs
300.5 µs
create_block_1
biscuit-auth/benches/token.rs::create_block_1
CodSpeed Performance Gauge
-1%
243.8 µs
247.3 µs
checks_block_verify_only2
biscuit-auth/benches/token.rs::checks_block_verify_only2
CodSpeed Performance Gauge
-6%
112.2 µs
119.4 µs
checks_block_2
biscuit-auth/benches/token.rs::checks_block_2
CodSpeed Performance Gauge
-6%
112.3 µs
119.7 µs
checks_block_create_verifier2
biscuit-auth/benches/token.rs::checks_block_create_verifier2
CodSpeed Performance Gauge
-8%
59.4 µs
64.4 µs

Commits

Click on a commit to change the comparison range
Base
main
24f13e2
-1%
Merge branch 'main' into v5
5bcac29
8 months ago
by Geal
0%
Merge branch 'main' into v5
3e3f071
8 months ago
by Geal
0%
Support for closures (#202) This introduces the closure operations to the Biscuit language, first with the `.all()` and `.any()` operations to add conditions on the elements of a set. It is now possible to use expressions with the following format: ``` check if [1,2,3].all($p -> $p > 0); check if [1,2,3].any($p -> $p > 2); ``` Co-authored-by: Geoffroy Couprie <contact@geoffroycouprie.com>
525c278
7 months ago
by divarvel
+1%
Merge branch 'main' into v5
22bd667
6 months ago
by Geal
-1%
Merge branch 'main' into v5
3e47561
3 months ago
by Geal
0%
Merge pull request #231 from biscuit-auth/major-minor-datalog-versions Major minor datalog versions
911ebe4
3 months ago
by divarvel
0%
Merge pull request #229 from biscuit-auth/fix-param-substitution-in-closures fix: recursively collect and apply parameters in closures
c2dd7a4
3 months ago
by divarvel
0%
Merge pull request #233 from biscuit-auth/rename-v5-detector fix: left over renaming after #231
5792345
3 months ago
by divarvel
0%
Merge pull request #201 from biscuit-auth/typeof feat: add `.type()` unary method
0cc0189
3 months ago
by divarvel
0%
add new Array and Map types (#219) This adds support for the array and map types, supporting more structured datalog terms, that we can generate from JSON data and explore through datalog expressions. The map type allows integers strings and parameters as key. This tries to enforce that all array elements are of the same type, but this is not very strict at the moment, it does not look at lower levels of composite types. **breaking changes**: - in the Datalog language, sets will now be delimited by '{' and '}' instead of '[' and ]'. Arrays are now delimited by '[' and ']' - parameter names now need to start with a letter --------- Co-authored-by: Clement Delafargue <clement.delafargue@outscale.com>
e59f41d
2 months ago
by Geal
0%
Merge pull request #238 from biscuit-auth/geal/merge-main-in-v5 merge the CAPI changes in V5
796ba5d
2 months ago
by Geal
0%
Merge pull request #228 from biscuit-auth/ffi datalog foreign function interface prototype
4556320
2 months ago
by divarvel
-1%
add support for ecdsa signatures (#108) This adds suport for ECDSA signatures over the secp256r1 curve, following the specification change at https://github.com/biscuit-auth/biscuit/commit/ed1c53d6db5811dfb9d9e395e95135f7f5660dbe. Key creation now takes an algorithm argument Co-authored-by: Clément Delafargue <clement.delafargue.ext@outscale.com>
d956655
2 months ago
by Geal
0%
Merge pull request #246 from biscuit-auth/force-sig-v1 force using signature v1 in more cases
fe3e74d
2 months ago
by divarvel
0%
Merge pull request #247 from biscuit-auth/remove-previous-key-from-3rd-party-request remove previous_key from ThirdPartyBlockRequest
6ad6f12
2 months ago
by divarvel
0%
Merge pull request #191 from biscuit-auth/better-display-for-logic-error Better display for `errors::Logic`
255abf2
2 months ago
by divarvel
0%
refactor builder modules (#249) This splits the builders to their own files
6d55705
2 months ago
by Geal
-9%
authorizer builder (#250) This adds an `AuthorizerBuilder` struct that is used to create an `Authorizer`. All of the mutable behaviour, like adding facts or executing Datalog rules is moved into the builder, while the authorizer is limited to read-only queries (still requiring self mutability to track execution time). This will solve some awkward behaviour where the authorizer had to run Datalog rules again when facts or rules were added, but it was not done consistently. The `AuthorizerBuilder` is compatible with snapshots, to store and reuse checks and policies. It has a `build` method taking a token as argument, and a `build_unauthenticated` for authorization without token. The builder APIs are alo changing. Before, we had the following: ```rust let mut builder = Biscuit::builder(); builder.add_fact(r"right("file1", "read")"#)?; builder.add_fact(r"right("file2", "read")"#)?; let token = builder.build()?; ``` Builders are now constructed like this: ```rust let token = Biscuit::builder() .fact(r"right("file1", "read")"#)? .fact(r"right("file2", "read")"#)? .build()?; ````
fc0d069
1 month ago
by Geal
+8%
Merge pull request #253 from biscuit-auth/esl2 Esl2
0dab828
1 month ago
by divarvel
-9%
Merge pull request #254 from biscuit-auth/top-level-exports API improvements
3bd7a7b
1 month ago
by divarvel
+9%
Merge pull request #255 from biscuit-auth/authorizer-debug Authorizer API improvements
c8057ce
1 month ago
by divarvel
0%
Merge pull request #257 from biscuit-auth/authorizer-debug fix snapshot de-serializing
2c75eaf
1 month ago
by divarvel
Home Terms PrivacyDocs