Expand description
Vault API client for entity enrichment.
This module provides a client for interacting with the HashiCorp Vault API to enrich audit log data with additional entity information.
§Environment Variables
The client respects standard Vault environment variables:
VAULT_ADDR- Vault server address (e.g.,https://vault.example.com:8200)VAULT_TOKEN- Authentication token for API accessVAULT_SKIP_VERIFY- Skip TLS certificate verification (set to1,true, oryes)VAULT_CACERT- Path to CA certificate for TLS verification
§Examples
use vault_audit_tools::vault_api::VaultClient;
let addr = "https://vault.example.com:8200".to_string();
let token = "hvs.secret".to_string();
let client = VaultClient::new(addr, token)?;Structs§
- Vault
Client - Vault API client configuration.
Functions§
- extract_
data - Helper to extract data from Vault response wrapper
- should_
skip_ verify - Check if TLS verification should be skipped based on environment or flag.