Module vault_api

Module vault_api 

Source
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 access
  • VAULT_SKIP_VERIFY - Skip TLS certificate verification (set to 1, true, or yes)
  • VAULT_CACERT - Path to CA certificate for TLS verification

§Examples

use vault_audit_tools::vault_api::VaultClient;

let addr = "https://vault.example.com:8200";
let token = "hvs.secret".to_string();
let client = VaultClient::new(addr, token)?;

Structs§

VaultClient
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.