{"id":13668694,"url":"https://github.com/maxlambrecht/rust-spiffe","last_synced_at":"2026-05-11T17:01:59.297Z","repository":{"id":41955115,"uuid":"328393589","full_name":"maxlambrecht/rust-spiffe","owner":"maxlambrecht","description":"A collection of crates for SPIFFE workload identity, Workload API clients, SPIRE-specific APIs, and TLS integration.","archived":false,"fork":false,"pushed_at":"2026-05-08T20:07:44.000Z","size":1047,"stargazers_count":35,"open_issues_count":0,"forks_count":19,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-05-08T22:42:01.468Z","etag":null,"topics":["authentication","mtls","rust","security","spiffe","spire","tls","workload-identity"],"latest_commit_sha":null,"homepage":"https://github.com/maxlambrecht/rust-spiffe/blob/main/README.md","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxlambrecht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":"MAINTAINERS.md","copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-10T13:48:37.000Z","updated_at":"2026-05-08T20:00:15.000Z","dependencies_parsed_at":"2024-04-25T00:30:42.816Z","dependency_job_id":"fd501d0c-89a8-4c4c-ba34-1e86977974fa","html_url":"https://github.com/maxlambrecht/rust-spiffe","commit_stats":{"total_commits":95,"total_committers":8,"mean_commits":11.875,"dds":"0.42105263157894735","last_synced_commit":"10a8007446895cd535cd14525e3ff40ebb2830d5"},"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"purl":"pkg:github/maxlambrecht/rust-spiffe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlambrecht%2Frust-spiffe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlambrecht%2Frust-spiffe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlambrecht%2Frust-spiffe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlambrecht%2Frust-spiffe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxlambrecht","download_url":"https://codeload.github.com/maxlambrecht/rust-spiffe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlambrecht%2Frust-spiffe/sbom","scorecard":{"id":629640,"data":{"date":"2025-08-11","repo":{"name":"github.com/maxlambrecht/rust-spiffe","commit":"0971e483c9f89bb38fe67e41841798f29e29f958"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6,"checks":[{"name":"Code-Review","score":2,"reason":"Found 5/21 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"12 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/coverage.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   4 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   5 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:8"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T07:28:26.025Z","repository_id":41955115,"created_at":"2025-08-21T07:28:26.025Z","updated_at":"2025-08-21T07:28:26.025Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32904347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","mtls","rust","security","spiffe","spire","tls","workload-identity"],"created_at":"2024-08-02T08:00:47.088Z","updated_at":"2026-05-11T17:01:59.263Z","avatar_url":"https://github.com/maxlambrecht.png","language":"Rust","funding_links":[],"categories":["Blogs","SPIFFE Libraries","Rust"],"sub_categories":["SDK"],"readme":"# SPIFFE Libraries\n\n[![CI](https://github.com/maxlambrecht/rust-spiffe/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/maxlambrecht/rust-spiffe/actions/workflows/ci.yml?query=branch%3Amain)\n[![Coverage](https://coveralls.io/repos/github/maxlambrecht/rust-spiffe/badge.svg?branch=main)](https://coveralls.io/github/maxlambrecht/rust-spiffe?branch=main)\n[![Crates.io](https://img.shields.io/crates/v/spiffe.svg)](https://crates.io/crates/spiffe)\n[![Crates.io](https://img.shields.io/crates/v/spiffe-rustls.svg)](https://crates.io/crates/spiffe-rustls)\n[![Crates.io](https://img.shields.io/crates/v/spiffe-rustls-tokio.svg)](https://crates.io/crates/spiffe-rustls-tokio)\n[![Crates.io](https://img.shields.io/crates/v/spire-api.svg)](https://crates.io/crates/spire-api)\n[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/11801/badge)](https://www.bestpractices.dev/projects/11801)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)\n[![Safety](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance)\n\nA collection of crates for SPIFFE workload identity, Workload API clients, SPIRE-specific APIs, and TLS integration.\n\n---\n\n## Project Scope and Goals\n\nThese crates provide standards-compliant building blocks for integrating\nSPIFFE and SPIRE into Rust applications.\n\nThe project focuses on:\n\n- Correctness and clarity of APIs\n- Alignment with SPIFFE specifications\n- Conservative security-oriented design\n- Explicit dependency and feature management\n\nThis repository does **not** claim formal security audits or guaranteed production fitness. Users\nshould evaluate suitability based on their own requirements and threat models.\n\n---\n\n## Available Crates\n\nThese crates can be used independently or layered together, depending on the level of\nabstraction required.\n\n### [`spiffe`](./spiffe)\n\nStandards-aligned SPIFFE identity primitives and clients for the **SPIFFE Workload API**.\n\n**Use this crate if you need:**\n\n- X.509 and JWT SVID handling\n- Trust bundle management\n- Streaming identity updates\n- Strongly typed SPIFFE identifiers and trust domains\n\nSee the [spiffe README](./spiffe/README.md) for usage and API documentation.\n\n---\n\n### [`spire-api`](./spire-api)\n\nRust bindings for **SPIRE-specific gRPC APIs** that are not part of the SPIFFE standards.\n\n**Use this crate if you need:**\n\n- The SPIRE Delegated Identity API\n- Direct interaction with SPIRE agent or server extensions\n\nSee the [spire-api README](./spire-api/README.md) for details.\n\n---\n\n### [`spiffe-rustls`](./spiffe-rustls)\n\nIntegration between SPIFFE identities and [`rustls`](https://crates.io/crates/rustls).\n\n**Use this crate if you need:**\n\n- Mutual TLS (mTLS) using SPIFFE identities\n- Automatic handling of SVID and trust bundle rotation\n- TLS-level peer authorization based on SPIFFE IDs\n\nSee the [spiffe-rustls README](./spiffe-rustls/README.md) for configuration and examples.\n\n---\n\n### [`spiffe-rustls-tokio`](./spiffe-rustls-tokio)\n\nTokio-native async accept/connect helpers for `spiffe-rustls` configurations.\n\n**Use this crate if you need:**\n\n- Async TLS connections with Tokio\n- Automatic peer SPIFFE ID extraction from TLS connections\n- `TlsAcceptor` and `TlsConnector` APIs\n\nSee the [spiffe-rustls-tokio README](./spiffe-rustls-tokio/README.md) for usage and examples.\n\n---\n\n## Choosing a Crate\n\nMost users will interact with one or more of the following:\n\n- **SPIFFE identities or Workload API access** → `spiffe`\n- **SPIRE gRPC APIs** → `spire-api`\n- **mTLS with SPIFFE over rustls** → `spiffe-rustls`\n- **Tokio async TLS with SPIFFE** → `spiffe-rustls-tokio`\n\n---\n\n## Contributing\n\nContributions are welcome. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n### Development Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/maxlambrecht/rust-spiffe.git\ncd rust-spiffe\n\n# Quick check (formatting + linting + build, no tests)\nmake check\n\n# Full test suite (formatting + linting + build + tests)\nmake all\n\n# Run full CI checks locally (includes MSRV verification)\nmake ci\n\n# Run integration tests (requires SPIRE setup)\nmake integration-tests\n```\n\nSee `make help` for all available targets.\n\n### Reporting Issues\n\nPlease file bugs and feature requests via\n[GitHub Issues](https://github.com/maxlambrecht/rust-spiffe/issues).\n\n### Security\n\nFor security-related issues, please follow the disclosure process described in\n[SECURITY.md](SECURITY.md).\n\n---\n\n## License\n\nLicensed under the Apache License, Version 2.0.\nSee [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlambrecht%2Frust-spiffe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxlambrecht%2Frust-spiffe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlambrecht%2Frust-spiffe/lists"}