guts-auth

Crates.ioguts-auth
lib.rsguts-auth
version0.1.0
created_at2025-12-23 10:22:19.610787+00
updated_at2025-12-23 10:22:19.610787+00
descriptionAuthorization and governance for Guts: Permissions, Organizations, Teams, Webhooks
homepagehttps://github.com/AbdelStark/guts
repositoryhttps://github.com/AbdelStark/guts
max_upload_size
id2001252
size111,270
A₿del ∞/21M (AbdelStark)

documentation

README

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

Commit count: 0

cargo fmt