Skip to content

Vault cheat sheet

OTP/TOTP

  • Secret engine configuration: https://www.vaultproject.io/docs/secrets/totp

As a Generator

It is expected the secret engine is already configured at a certain path, we will call it "mypath".

  • Configure a key
vault write totp/keys/my-key \
    url="otpauth://totp/Vault:[email protected]?secret=Y64VEVMBTSXCYIWRSHRNDZW62MPGVU2G&issuer=Vault"
Success! Data written to: totp/keys/my-key