vault icon indicating copy to clipboard operation
vault copied to clipboard

Securely Store Auth Token

Open bdmyxgh opened this issue 11 years ago • 2 comments

Hi, Any suggestion on how to store a Vault API auth token on the client machine ? (plain text on the file system is not an option) Thanks !

bdmyxgh avatar May 15 '15 19:05 bdmyxgh

Hi @bigmyx

I usually recommend an environment variable. Does that work for you?

sethvargo avatar May 15 '15 20:05 sethvargo

We actually built the token helper system directly for this. It is modeled exactly after Git's credential helper system (google, don't have it on hand sorry). Therefore, you can use anything that adheres to that protocol to store it wherever you want. For example with v0.2 we're going to ship a keychain store for OS X machines by default.

mitchellh avatar May 15 '15 23:05 mitchellh