Crates.io | spire-api |
lib.rs | spire-api |
version | 0.3.2 |
source | src |
created_at | 2023-09-03 14:25:35.599537 |
updated_at | 2024-11-07 22:12:10.753681 |
description | Rust library for the SPIRE APIs |
homepage | |
repository | https://github.com/maxlambrecht/rust-spiffe |
max_upload_size | |
id | 962271 |
size | 987,434 |
This library provides support for SPIRE specific APIs in Rust.
Include this line in your Cargo.toml
:
[dependencies]
spire-api = "0.3.2"
Fetch a delegated X.509 and JWT SVIDs providing a set of selectors:
use spire_api::DelegatedIdentityClient;
let client = DelegatedIdentityClient::default().await?;
let x509_svid = client.fetch_x509_svid(DelegateAttestationRequest::Selectors(vec![
selectors::Selector::Unix(selectors::Unix::Uid(1000)),
])).await?;
For more documentation, refer to the spire-api
crate documentation.
For more information about the SPIRE Delegated Identity API, refer to the official documentation.
This library is licensed under the Apache License. See the LICENSE.md file for details.