security
Localzet Security is an open-source security control plane for web applications, APIs, internal tools, customer deployments, and CLI workloads.
Product Scope
Заголовок раздела «Product Scope»The platform is designed as a universal protective contour rather than a single login service.
Core domains:
- identity and authentication
- authorization and policy decisions
- session and token lifecycle management
- audit and security telemetry
- tenant isolation and deployment portability
- self-hosted and federation-ready operation
Planned Operating Modes
Заголовок раздела «Planned Operating Modes»- Centralized: one security plane for internal projects.
- Self-hosted: full-featured customer deployment with local data ownership.
- Federated: trusted identity exchange across independent organizations.
Repository Layout
Заголовок раздела «Repository Layout»docs/architecture/: product and system architecturedocs/adr/: architecture decision recordsdocs/specs/: implementation-facing specificationsapps/authd/: reference auth servicecrates/: shared Rust librariesdb/migrations/: PostgreSQL schema migrations
Current State
Заголовок раздела «Current State»This repository contains the initial architecture baseline, security documentation, and Rust workspace skeleton for the first implementation phase.
Design Principles
Заголовок раздела «Design Principles»- security invariants are documented before feature growth
- portability across SaaS and self-hosted modes
- hard tenant isolation boundaries
- explicit auditability of sensitive actions
- simple core, extensible integration surface
- protocol correctness over convenience shortcuts
Immediate Milestones
Заголовок раздела «Immediate Milestones»- Build the authentication core and OIDC discovery surface.
- Add session, device, and token family models.
- Introduce policy evaluation and audit event ingestion.
- Add PostgreSQL persistence, migrations, and repository adapters.
- Harden self-hosted packaging, observability, and upgrade path.
Documentation Index
Заголовок раздела «Documentation Index»- Vision
- System Architecture
- Threat Model
- Security Baseline
- MVP Scope
- Persistence Layer
- OAuth Flow Baseline
- Token Issuer Baseline
- Contribution Guide
- Security Policy
Rust toolchain is required. The workspace is structured for stable Rust.
cargo fmt --allcargo clippy --workspace --all-targets -- -D warningscargo test --workspacecargo run -p authd