2 unstable releases

0.2.0 Mar 7, 2024
0.1.0 Sep 3, 2023

#478 in Cryptography

Download history 3/week @ 2024-02-23 101/week @ 2024-03-01 52/week @ 2024-03-08 2/week @ 2024-03-15 94/week @ 2024-03-22 26/week @ 2024-03-29 3/week @ 2024-04-05

127 downloads per month

Apache-2.0

1MB
16K SLoC

Go 12K SLoC // 0.1% comments Rust 4K SLoC // 0.0% comments

Rust SPIRE API Library

This library provides support for SPIRE specific APIs in Rust.

Features

  • Delegated Identity API support: Facilitates authorized workloads to obtain SVIDs (SPIFFE Verifiable Identity Documents) and bundles on behalf of others that cannot be directly attested by SPIRE Agent. This feature enhances identity support for complex scenarios, including those where workloads cannot be directly recognized by SPIRE.

Installation

Include this line in your Cargo.toml:

[dependencies]
spire-api = "0.2.0"

Usage

Fetch a delegated X.509 and JWT SVIDs providing a set of selectors:

use spire_api::agent::delegated_identity::DelegatedIdentityClient;

let client = DelegatedIdentityClient::default().await?;

let x509_svid = client.fetch_x509_svid(vec![selectors::Selector::Unix(selectors::Unix::Uid(1000))]).await?;

For more documentation, refer to the spire-api crate documentation.

Delegated Identity API

For more information about the SPIRE Delegated Identity API, refer to the official documentation.

License

This library is licensed under the Apache License. See the LICENSE.md file for details.

Dependencies

~20–36MB
~647K SLoC