Skip to content

Instantly share code, notes, and snippets.

View chrishoffman's full-sized avatar

Chris Hoffman chrishoffman

  • Pennsylvaina, USA
View GitHub Profile
@chrishoffman
chrishoffman / mfa-login-1.10.sh
Last active March 9, 2022 22:10
MFA Login for Vault 1.10+
#!/bin/bash
## Tools required
# brew install oath-toolkit qrencode jq
# Vault binary in path (1.10+)
# This script uses Vault Enterprise but just remove the namespace commands for OSS
export VAULT_ADDR=http://127.0.0.1:8200
export VAULT_TOKEN=root