Seth Vargo
648e0c7913
Update read command
2017-10-24 09:29:37 -04:00
Seth Vargo
db4f5bac11
Update policy-write command
2017-10-24 09:29:37 -04:00
Seth Vargo
a8b061723c
Update policy-list command
2017-10-24 09:29:37 -04:00
Seth Vargo
bd879f2731
Update policy-delete command
2017-10-24 09:29:36 -04:00
Seth Vargo
85e5c33352
Update path-help command
2017-10-24 09:29:36 -04:00
Seth Vargo
19caaafe13
Update mounts command
2017-10-24 09:29:36 -04:00
Seth Vargo
136ef51f49
Update mount-tune command
2017-10-24 09:28:07 -04:00
Seth Vargo
7abb3341a3
Update mount command
2017-10-24 09:28:07 -04:00
Seth Vargo
4d0b10ebd2
Update list command
2017-10-24 09:28:07 -04:00
Seth Vargo
7cd7338f9d
Update key-status command
2017-10-24 09:28:07 -04:00
Seth Vargo
076703ebc1
Update init command
2017-10-24 09:28:07 -04:00
Seth Vargo
9500cb7fc7
Update generate-root command
2017-10-24 09:28:07 -04:00
Seth Vargo
9b949cebd5
Update format to not use colored UI for json/yaml
2017-10-24 09:28:07 -04:00
Seth Vargo
38823efa70
Update delete command
2017-10-24 09:28:07 -04:00
Seth Vargo
fd5ba4c5ed
Update capabilities command
2017-10-24 09:28:06 -04:00
Seth Vargo
d93c418db3
Add new auth-list command
2017-10-24 09:28:06 -04:00
Seth Vargo
153bfd6a83
Add new auth-help command
2017-10-24 09:28:06 -04:00
Seth Vargo
6178d61d6d
Update auth-enable command
2017-10-24 09:28:06 -04:00
Seth Vargo
43465577d4
Update auth-disable command
2017-10-24 09:28:06 -04:00
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