1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-11-10 01:00:08 +00:00
Commit graph

5 commits

Author SHA1 Message Date
Jason Gwartz
66ccd94069 Fixes error when '~/.vault-token' contains a trailing newline
First of all, thanks for the great tool!

This PR fixes an error encountered by one of our developers which occured when they had manually created the `~/.vault-token` file, and their editor had added a trailing newline. The error comes from the following line: https://github.com/hashicorp/vault/blob/master/api/client.go#L747

The official vault client was patched for this in f8c657a80a, after issues https://github.com/hashicorp/vault/issues/1774 and https://github.com/hashicorp/vault/issues/1902.
2019-05-02 17:21:43 +02:00
47d94f072a
Use a replacer to convert dashes
this enables setting all flags through ENV variables

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-06-14 16:01:41 +02:00
a0b26ea1ae
Allow overwriting the vault token by setting only the default
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-06-14 16:01:22 +02:00
b5935b315f
Add version command
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-05-27 12:10:14 +02:00
0c61a521c1
Switch to cobra as a CLI framework
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-05-27 12:02:56 +02:00