Seth Vargo
595456df69
Update auth command
2017-10-24 09:28:06 -04:00
Seth Vargo
ac0be24253
Update audit-list command
2017-10-24 09:28:06 -04:00
Seth Vargo
8e343caeda
Update audit-enable command
2017-10-24 09:28:06 -04:00
Seth Vargo
197d7840cc
Update audit-disable command
2017-10-24 09:28:06 -04:00
Seth Vargo
d03caa18b5
Add more testing helper functions
2017-10-24 09:28:06 -04:00
Seth Vargo
844fe0a507
Make pgpkeys helper implement our flags interface
2017-10-24 09:28:06 -04:00
Seth Vargo
06580ebd61
Remove wrapping tests
...
There are no dedicated tests for this, but ttl wrapping is littered throughout other tests
2017-10-24 09:28:06 -04:00
Seth Vargo
9e2a833b19
Detect terminal and use the output writer for raw fields
...
If the value is being "piped", we don't print colors or the newline character at the end. If it's not, we still give users pretty when selecting a raw field/value.
2017-10-24 09:28:06 -04:00
Seth Vargo
5a6b08caab
Add helper for decrypting via PGP in tests
2017-10-24 09:28:06 -04:00
Seth Vargo
e516762328
Remove unused file for tests
2017-10-24 09:28:06 -04:00
Seth Vargo
bb4edc30f8
Add more predictors
2017-10-24 09:28:06 -04:00
Seth Vargo
d271bdd4e1
Read env config for predictions
2017-10-24 09:28:05 -04:00
Seth Vargo
3331b25895
Expand and centralize helpers
2017-10-24 09:28:05 -04:00
Seth Vargo
971307351b
Cleanup base flags a bit
2017-10-24 09:28:05 -04:00
Seth Vargo
197339e78c
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
5d31c4cb08
Allow hiding flags
2017-10-24 09:28:05 -04:00
Seth Vargo
0afff80b5e
Document mount types/values
2017-10-24 09:28:05 -04:00
Seth Vargo
44851f992e
Expand root generation guide with a PGP example
2017-10-24 09:28:05 -04:00
Seth Vargo
5440f994a2
Change http testing to tb interface
2017-10-24 09:28:05 -04:00
Seth Vargo
5338999e35
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
502d7a2040
Add an in-mem token helper for testing
2017-10-24 09:27:19 -04:00
Seth Vargo
5b0b8b9db5
Add interface assertions for token helpers
...
This will ensure they meet the right API
2017-10-24 09:27:19 -04:00
Seth Vargo
acd4241740
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
0c85a9988d
Return better errors from token failures
2017-10-24 09:26:45 -04:00
Seth Vargo
50705bcce7
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
c8eaa8b61b
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
4a67643c06
Update help output for userpass auth
2017-10-24 09:26:45 -04:00
Seth Vargo
de6a839b9f
Update help output for okta auth
2017-10-24 09:26:44 -04:00
Seth Vargo
beb525d41b
Update help output for ldap auth
2017-10-24 09:26:44 -04:00
Seth Vargo
323f9ee26b
Update help output for github auth
2017-10-24 09:26:44 -04:00
Seth Vargo
89c84c0b17
Update help output for cert auth
2017-10-24 09:26:44 -04:00
Seth Vargo
21f7bc0dee
Update help output for aws auth
2017-10-24 09:26:44 -04:00
Seth Vargo
8910915c86
Add API functions for token helpers
2017-10-24 09:26:44 -04:00
Seth Vargo
0f2905fd7c
Only print default values if they are non-zero
2017-10-24 09:26:44 -04:00
Seth Vargo
5093b8dff8
More arbitrary function for wrapping at a length
2017-10-24 09:26:44 -04:00
Seth Vargo
9347c110f2
Delegate usage to the UI
2017-10-24 09:26:44 -04:00
Seth Vargo
6847bb827c
Update vendor complete
2017-10-24 09:26:44 -04:00
Seth Vargo
6c73d28967
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
bd3064327c
Separate "files" and "folders" in predictor
2017-10-24 09:26:44 -04:00
Seth Vargo
2f3acd9068
Remove coupling between Raw() and UI
2017-10-24 09:26:44 -04:00
Seth Vargo
cb31f95e75
Add testing harness for a vault cluster
2017-10-24 09:26:44 -04:00
Seth Vargo
9064d52e66
Output JSON with spaces not tabs
2017-10-24 09:26:44 -04:00
Seth Vargo
cc0140be80
Add start of base command, flags, prediction
2017-10-24 09:26:44 -04:00
Seth Vargo
c77072e093
Update vendor libraries for autocomplete and cli
2017-10-24 09:26:43 -04:00
Jeff Mitchell
a80791ce7e
Update proto
2017-10-23 17:45:05 -04:00
Jeff Mitchell
65f664be47
Make compile
2017-10-23 17:41:44 -04:00
Jeff Mitchell
a25dae82dd
Final sync
2017-10-23 17:39:21 -04:00
Jeff Mitchell
d38a699c32
Make compile
2017-10-23 17:15:56 -04:00
Jeff Mitchell
8e271dcbdc
More syncing
2017-10-23 16:52:56 -04:00
Jeff Mitchell
8e9317792d
Fix some merge/update bugs
2017-10-23 16:49:46 -04:00