3 unstable releases

new 0.1.1 Jan 22, 2025
0.0.1 Jan 15, 2025
0.0.1-a Jan 13, 2025

#214 in Authentication

Download history 197/week @ 2025-01-12 124/week @ 2025-01-19

101 downloads per month

MIT license

34KB
644 lines

VaultAPI-Client

made-with-rust

crates.io

build none-shall-pass

Client application for VaultAPI server

Environment Variables

Env vars can either be loaded from any plaintext files.

  • ENV_FILE - Plaintext file to read the env vars. Defaults to .env
  • VAULT_SERVER - VaultAPI server URL.
  • APIKEY - API key to authenticate the VaultAPI server.
  • TRANSMIT_KEY_LENGTH - AES key length for transit encryption. Defaults to 32
  • TRANSIT_TIME_BUCKET - Interval for which the transit epoch should remain constant. Defaults to 60

Commandline Arguments

  • --env_file - Plaintext file to read the env vars. Defaults to .env
  • --cipher - Cipher text to decrypt the secret to a JSON value.
  • --table - Name of the table to retrieve the secret from.
  • --get-secret - Get the value of a particular secret key.
  • --get-secrets - Get the values of multiple keys using a comma separated list.
  • --get-table - Get all the secrets stored in a table.

Crate

https://crates.io/crates/VaultAPI-Client

Cargo Docs - Official Runbook

https://docs.rs/VaultAPI-Client/latest/

Generator

cargo doc --document-private-items --no-deps

Linting

Requirement

rustup component add clippy

Usage

cargo clippy --no-deps --fix

© Vignesh Rao

Licensed under the MIT License

Dependencies

~9–21MB
~392K SLoC