maxlambrecht/rust-spiffe
maxlambrecht/rust-spiffe has 46 GitHub stars and 20 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and -1 in 15 days. Last checked 2026-11-09 22:19 UTC. Last push 2026-10-31.
A collection of crates for SPIFFE workload identity, Workload API clients, SPIRE-specific APIs, and TLS integration.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSPIFFE Libraries
A collection of crates for SPIFFE workload identity, Workload API clients, SPIRE-specific APIs, and TLS integration.
Project Scope and Goals
These crates provide standards-compliant building blocks for integrating SPIFFE and SPIRE into Rust applications.
The project focuses on:
- Correctness and clarity of APIs
- Alignment with SPIFFE specifications
- Conservative security-oriented design
- Explicit dependency and feature management
This repository does not claim formal security audits or guaranteed production fitness. Users should evaluate suitability based on their own requirements and threat models.
Available Crates
These crates can be used independently or layered together, depending on the level of abstraction required.
spiffe
Standards-aligned SPIFFE identity primitives and clients for the SPIFFE Workload API, plus experimental SPIFFE Broker API bindings.
Use this crate if you need:
- X.509 and JWT SVID handling
- Trust bundle management
- Streaming identity updates
- Strongly typed SPIFFE identifiers and trust domains
See the spiffe README for usage and API documentation.
spire-api
Rust bindings for SPIRE-specific gRPC APIs that are not part of the SPIFFE standards.
Use this crate if you need:
- The SPIRE Delegated Identity API
- Direct interaction with SPIRE agent or server extensions
See the spire-api README for details.
spiffe-rustls
Integration between SPIFFE identities and rustls.
Use this crate if you need:
- Mutual TLS (mTLS) using SPIFFE identities
- Automatic handling of SVID and trust bundle rotation
- TLS-level peer authorization based on SPIFFE IDs
See the spiffe-rustls README for configuration and examples.
spiffe-rustls-tokio
Tokio-native async accept/connect helpers for spiffe-rustls configurations.
Use this crate if you need:
- Async TLS connections with Tokio
- Automatic peer SPIFFE ID extraction from TLS connections
TlsAcceptorandTlsConnectorAPIs
See the spiffe-rustls-tokio README for usage and examples.
Choosing a Crate
Most users will interact with one or more of the following:
- SPIFFE identities or Workload API access →
spiffe - SPIRE gRPC APIs →
spire-api - mTLS with SPIFFE over rustls →
spiffe-rustls - Tokio async TLS with SPIFFE →
spiffe-rustls-tokio
Contributing
Contributions are welcome. Please see CONTRIBUTING.md for guidelines.
Development Setup
# Clone the repository
git clone https://github.com/maxlambrecht/rust-spiffe.git
cd rust-spiffe
# Quick check (formatting + linting + build, no tests)
make check
# Full test suite (formatting + linting + build + tests)
make all
# Run full CI checks locally (includes MSRV verification)
make ci
# Run integration tests (requires SPIRE setup; spiffe-rustls uses ring and AWS-LC)
make integration-tests
See make help for all available targets.
Reporting Issues
Please file bugs and feature requests via GitHub Issues.
Security
For security-related issues, please follow the disclosure process described in SECURITY.md.
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
257,192 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,014 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,508 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
78,910 stars