#permissions #authorization #governance #events #webhook #guts #access-control

guts-auth

Authorization and governance for Guts: Permissions, Organizations, Teams, Webhooks

1 unstable release

0.1.0 Dec 23, 2025

#713 in Authentication


Used in 4 crates

MIT/Apache

92KB
2K SLoC

guts-auth

Authorization and governance for Guts: Organizations, Teams, Permissions, and Webhooks.

Overview

This crate provides:

  • Organizations - Group management with roles
  • Teams - Fine-grained access control
  • Permissions - Read, Write, Admin hierarchy
  • Branch Protection - Required reviews, status checks
  • Webhooks - Event notifications

Usage

use guts_auth::{Organization, Team, Permission, BranchProtection};

// Create an organization
let org = Organization::new("acme", "Acme Corp");

// Set up branch protection
let protection = BranchProtection::new("main")
    .require_reviews(2)
    .require_status_checks(vec!["ci/build"]);

Permission Hierarchy

  • Read - Clone, view code and issues
  • Write - Push, create PRs, manage issues
  • Admin - Repository settings, manage access

Part of Guts

This crate is part of Guts, a decentralized, censorship-resistant alternative to GitHub built on BFT consensus.

License

MIT OR Apache-2.0

Dependencies

~16MB
~405K SLoC