https://github.com/larsw/accumulo-access-rs
Parser and evaluator for Accumulo Access Expressions for Rust and WASM
https://github.com/larsw/accumulo-access-rs
access-control accumulo authorization
Last synced: 6 months ago
JSON representation
Parser and evaluator for Accumulo Access Expressions for Rust and WASM
- Host: GitHub
- URL: https://github.com/larsw/accumulo-access-rs
- Owner: larsw
- License: apache-2.0
- Created: 2023-12-19T15:01:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-29T10:50:13.000Z (11 months ago)
- Last Synced: 2025-12-08T04:13:34.183Z (7 months ago)
- Topics: access-control, accumulo, authorization
- Language: Rust
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
Awesome Lists containing this project
README
# Accumulo Access for Rust
## Introduction
This crate provides a Rust API for parsing and evaluating Accumulo Access Expressions, based on the [AccessExpression specification](https://github.com/apache/accumulo-access/blob/main/SPECIFICATION.md).
## Usage
Add the following to your `Cargo.toml`:
```toml
[dependencies]
accumulo-access = "0.1"
```
## Example
```rust
use accumulo_access::check_authorization;
fn main() {
let expr = "A&B&(C|D)";
let auths = vec!["A", "B", "C"];
let result = check_authorization(expr, auths);
assert!(result.is_ok());
}
```
## Limitations
* It doesn't have functionality for normalizing expressions (ref. the Java-based accumulo-access project).
## Known usages
* [Accumulo Access extension for PostgreSQL](https://github.com/larsw/accumulo-access-pg)
## Maintainers
* Lars Wilhelmsen (https://github.com/larsw/)
## License
Licensed under both the Apache License, Version 2.0 ([LICENSE_APACHE](accumulo-access/LICENSE_APACHE) or http://www.apache.org/licenses/LICENSE-2.0) and the MIT License [LICENSE_MIT](accumulo-access/LICENSE_MIT).