Skip to content

Instantly share code, notes, and snippets.

View jycamier's full-sized avatar

Jean-Yves CAMIER jycamier

View GitHub Profile
@jycamier
jycamier / .vault-token-helper.sh
Created October 3, 2025 11:58
Custom token helper for Vault
#!/bin/bash
TOKEN_DIR="${TOKEN_DIR:-${HOME}/.vault-tokens}"
VAULT_ENV="${VAULT_ENV:-default}"
mkdir -p "${TOKEN_DIR}"
TOKEN_FILE="${TOKEN_DIR}/${VAULT_ENV}"
case "${1}" in