Typed authorization policies and extractors for Rust and Axum
  • Rust 91.8%
  • Nix 8.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Krit Dass c9a6e9b7b3
Some checks failed
CI / checks (push) Successful in 0s
CI / checks-1 (push) Successful in 16s
nixbot/nix-eval evaluation succeeded in 14s (1 warning)
kennel/deploy deployment healthy
nixbot/nix-build gitea:ScottyLabs/leash#checks.x86_64-linux.hooks failed
nixbot/nix-build 1 of 5 attributes failed
chore: update kennel
2026-11-16 10:21:01 -05:00
.forgejo/workflows build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
docs build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
src build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
tests refactor: rename authorization crate to Leash 2026-11-07 16:59:29 -05:00
.gitignore build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
AGENTS.md build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
Cargo.lock build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
Cargo.toml build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
flake.lock chore: update kennel 2026-11-16 10:21:01 -05:00
flake.nix build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
LICENSE build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
README.md build: set up standalone leash repository 2026-11-11 14:41:32 -05:00
zensical.toml build: set up standalone leash repository 2026-11-11 14:41:32 -05:00

Leash

Typed authorization policies and extractors for Rust and Axum. Handlers declare access requirements with Authorized<P, S> and receive the checked policy output. Applications supply their own state, identities, and resource types.

cargo add leash --git https://git.cmu.dev/ScottyLabs/leash --branch main

Development

collar dev run -- cargo test --locked
collar check --all
collar dev run -- docs

The repository uses the shared ScottyLabs Rust environment and CI from Kennel, following Collar's documentation setup.