7 stable releases
1.3.1 | Aug 30, 2022 |
---|---|
1.2.0 | Mar 31, 2022 |
1.1.4 | Nov 29, 2021 |
1.1.2 | Oct 13, 2021 |
1.1.1 | Aug 4, 2021 |
#23 in #workload
83KB
2K
SLoC
Spire Workload
This crate provides a number of useful APIs to help Rust programs use Spire workload API:
-
SpiffeID
andSpiffeIDMatcher
help parse a Spiffe ID and match against pre-defined patterns -
init
function helps a workload talk to spire agent and fetch its identity -
make_client_config
andmake_server_config
helps generaterustls::ClientConfig
andrustls::ServerConfig
respectively. These configs support hot reloading of spire provided identites and verify spiffe ID during TLS handshake.
Examples
-
examples/dump.rs
shows how to use spire-workload to dump current identities cached by spire agent -
examples/verify_jwt.rs
shows how to verify a spire issued JWT token with spire agent.
License
Apache 2.0
Dependencies
~25–41MB
~765K SLoC