spiffe/
constants.rs

1//! Module defining constants used within the Rust-Spiffe library.
2
3/// Specifies the index of the default SVID (Secure Vector Identifier) within a list.
4/// This constant is used to identify the first SVID in the list returned by the Workload API,
5/// which is considered the default for operations involving multiple SVIDs.
6pub const DEFAULT_SVID: usize = 0;
7
8/// Name of the environment variable that is used to configure the socket endpoint path for SPIFFE.
9/// This path is required for communication between SPIFFE-enabled systems and should be set within
10/// the environment variables of the host.
11pub const SPIFFE_SOCKET_ENV: &str = "SPIFFE_ENDPOINT_SOCKET";