7782 Commits

Author SHA1 Message Date
Seth Vargo
0cfb558f0b
Add more predictors 2017-10-24 09:28:06 -04:00
Seth Vargo
e3fff2a788
Read env config for predictions 2017-10-24 09:28:05 -04:00
Seth Vargo
2a4404c20a
Expand and centralize helpers 2017-10-24 09:28:05 -04:00
Seth Vargo
125f055903
Cleanup base flags a bit 2017-10-24 09:28:05 -04:00
Seth Vargo
4bd867c56a
Use a TokenHelper method
It's weird to have two different helper funcs that can return different errors
2017-10-24 09:28:05 -04:00
Seth Vargo
fceddbe724
Allow hiding flags 2017-10-24 09:28:05 -04:00
Seth Vargo
9b18a8ab20
Document mount types/values 2017-10-24 09:28:05 -04:00
Seth Vargo
4d22edeb96
Expand root generation guide with a PGP example 2017-10-24 09:28:05 -04:00
Seth Vargo
4b7a1967f5
Change http testing to tb interface 2017-10-24 09:28:05 -04:00
Seth Vargo
aea62c18c0
Unset VAULT_DEV_* in tests
Vault picks these values and then tests fail, and it's sad
2017-10-24 09:28:05 -04:00
Seth Vargo
4d9a42aa20
Add an in-mem token helper for testing 2017-10-24 09:27:19 -04:00
Seth Vargo
1552436a12
Add interface assertions for token helpers
This will ensure they meet the right API
2017-10-24 09:27:19 -04:00
Seth Vargo
47a633b83e
Drop cli and meta packages
This centralizes all command-related things in the command package
2017-10-24 09:27:19 -04:00
Seth Vargo
29702fcb18
Return better errors from token failures 2017-10-24 09:26:45 -04:00
Seth Vargo
792527bb83
Unwrap cli.Ui to get to the underlying writer
This allows us to write without a newline character, since the Ui
interface doesn't expose a direct Write() method.
2017-10-24 09:26:45 -04:00
Seth Vargo
737d86a7cb
Add built-in credential provider for tokens
This was previously part of the very long command/auth.go file, where it
mimmicked the same API as other handlers. By making it a builtin
credential, we can remove a lot of conditional logic for token-based
authentication.
2017-10-24 09:26:45 -04:00
Seth Vargo
62f8416de3
Update help output for userpass auth 2017-10-24 09:26:45 -04:00
Seth Vargo
1c6b463267
Update help output for okta auth 2017-10-24 09:26:44 -04:00
Seth Vargo
12ad533ea3
Update help output for ldap auth 2017-10-24 09:26:44 -04:00
Seth Vargo
a783af750d
Update help output for github auth 2017-10-24 09:26:44 -04:00
Seth Vargo
d71b7e6824
Update help output for cert auth 2017-10-24 09:26:44 -04:00
Seth Vargo
6984b8476b
Update help output for aws auth 2017-10-24 09:26:44 -04:00
Seth Vargo
08b39ecc49
Add API functions for token helpers 2017-10-24 09:26:44 -04:00
Seth Vargo
b67f9404a8
Only print default values if they are non-zero 2017-10-24 09:26:44 -04:00
Seth Vargo
eacb3de759
More arbitrary function for wrapping at a length 2017-10-24 09:26:44 -04:00
Seth Vargo
eb4ab6840d
Delegate usage to the UI 2017-10-24 09:26:44 -04:00
Seth Vargo
30dc835b2c
Update vendor complete 2017-10-24 09:26:44 -04:00
Seth Vargo
3a1479bc8c
Make predict it's own struct
The previous architecture would create an API client many times, slowing down the CLI exponentially for each new command added.
2017-10-24 09:26:44 -04:00
Seth Vargo
fb81547a3a
Separate "files" and "folders" in predictor 2017-10-24 09:26:44 -04:00
Seth Vargo
c9132068fa
Remove coupling between Raw() and UI 2017-10-24 09:26:44 -04:00
Seth Vargo
ba685f8f86
Add testing harness for a vault cluster 2017-10-24 09:26:44 -04:00
Seth Vargo
ac63ed573b
Output JSON with spaces not tabs 2017-10-24 09:26:44 -04:00
Seth Vargo
7f6aa892a4
Add start of base command, flags, prediction 2017-10-24 09:26:44 -04:00
Seth Vargo
150e81f3f0
Update vendor libraries for autocomplete and cli 2017-10-24 09:26:43 -04:00
Jeff Mitchell
3b7c33c49d Update proto 2017-10-23 17:45:05 -04:00
Jeff Mitchell
e869d65fb7 Make compile 2017-10-23 17:41:44 -04:00
Jeff Mitchell
cd6d67d84b Final sync 2017-10-23 17:39:21 -04:00
Jeff Mitchell
47e409778a Make compile 2017-10-23 17:15:56 -04:00
Jeff Mitchell
d9fa7636ac More syncing 2017-10-23 16:52:56 -04:00
Jeff Mitchell
9cedc9aecc Fix some merge/update bugs 2017-10-23 16:49:46 -04:00
Jeff Mitchell
98168dc791 Sync over 2017-10-23 16:43:07 -04:00
Jeff Mitchell
d79e0d2ad5 Remove extra curly brace 2017-10-23 16:06:27 -04:00
Jeff Mitchell
de93e70c54 Sync over 2017-10-23 16:03:36 -04:00
Jeff Mitchell
12e245852c Sync 2017-10-23 15:35:28 -04:00
Jeff Mitchell
2468b5600d Remove some diffing cruft 2017-10-23 15:13:04 -04:00
Jeff Mitchell
5b9b67d85a Remove some old policy upgrade code 2017-10-23 15:11:29 -04:00
Jeff Mitchell
07b97c5744 Sync 2017-10-23 14:59:37 -04:00
Jeff Mitchell
3d62970de5 Sync some seal testing stuff 2017-10-23 13:42:04 -04:00
Jeff Mitchell
ee08fa12dc Sync some changes 2017-10-23 12:50:34 -04:00
Jeff Mitchell
9d253c51d5 Remove unneeded build tag 2017-10-23 12:46:35 -04:00