Crates.io | spire-workload |
lib.rs | spire-workload |
version | 1.3.1 |
source | src |
created_at | 2021-08-04 23:30:54.474539 |
updated_at | 2022-08-30 02:40:34.063911 |
description | spire workload api for rust |
homepage | https://github.com/bytedance/spire-workload-rs |
repository | |
max_upload_size | |
id | 431744 |
size | 152,141 |
This crate provides a number of useful APIs to help Rust programs use Spire workload API:
SpiffeID
and SpiffeIDMatcher
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
and make_server_config
helps generate rustls::ClientConfig
and rustls::ServerConfig
respectively. These configs support hot reloading of spire provided identites and verify spiffe ID during TLS handshake.
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.
Apache 2.0