open-vault/command
Jeff Mitchell d229d7d5b0
Redo API locking (#3508)
* Redo the API client quite a bit to make the behavior of NewClient more
predictable and add locking to make it safer to use with Clone() and if
multiple goroutines for some reason decide to change things.

Along the way I discovered that currently, the x/net/http2 package is
broke with the built-in h2 support in released Go. For those using
DefaultConfig (the vast majority of cases) this will be a non-event.
Others can manually call http2.ConfigureTransport as needed. We should
keep an eye on commits on that repo and consider more updates before
release. Alternately we could go back revisions but miss out on bug
fixes; my theory is that this is not a purposeful break and I'll be
following up on this in the Go issue tracker.

In a few tests that don't use NewTestCluster, either for legacy or other
reasons, ensure that http2.ConfigureTransport is called.

* Use tls config cloning

* Don't http2.ConfigureServer anymore as current Go seems to work properly without requiring the http2 package

* Address feedback
2017-11-02 09:30:04 -05:00
..
server Final sync 2017-10-23 17:39:21 -04:00
test-fixtures
token
audit_disable.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
audit_disable_test.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
audit_enable.go Add basic autocompletion (#3223) 2017-08-24 15:23:40 -07:00
audit_enable_test.go
audit_list.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
audit_list_test.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
auth.go Change auth helper interface to api.Secret. (#3263) 2017-08-31 16:57:00 -04:00
auth_disable.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
auth_disable_test.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
auth_enable.go Normalize plugin_name option for mount and enable-auth (#3202) 2017-08-31 12:16:59 -04:00
auth_enable_test.go
auth_test.go Change auth helper interface to api.Secret. (#3263) 2017-08-31 16:57:00 -04:00
capabilities.go
capabilities_test.go
command_test.go
config.go
config_test.go
delete.go
delete_test.go
format.go Add basic autocompletion (#3223) 2017-08-24 15:23:40 -07:00
format_test.go
generate-root.go Add basic autocompletion (#3223) 2017-08-24 15:23:40 -07:00
generate-root_test.go Fix tests 2017-05-25 09:00:49 -04:00
init.go Add basic autocompletion (#3223) 2017-08-24 15:23:40 -07:00
init_test.go
key_status.go
key_status_test.go
list.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
list_test.go
mount.go Add basic autocompletion (#3223) 2017-08-24 15:23:40 -07:00
mount_test.go Rename "generic" secret backend to "kv" (#3292) 2017-09-15 09:02:29 -04:00
mount_tune.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
mounts.go Final sync 2017-10-23 17:39:21 -04:00
mounts_test.go
path_help.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
path_help_test.go
pgp_test.go
policy_delete.go
policy_delete_test.go
policy_list.go
policy_list_test.go
policy_write.go Properly lowercase policy names. (#3210) 2017-08-18 19:47:23 -04:00
policy_write_test.go
read.go Add basic autocompletion (#3223) 2017-08-24 15:23:40 -07:00
read_test.go
rekey.go Final sync 2017-10-23 17:39:21 -04:00
rekey_test.go Backend plugin system (#2874) 2017-07-20 13:28:40 -04:00
remount.go Rename "generic" secret backend to "kv" (#3292) 2017-09-15 09:02:29 -04:00
remount_test.go Rename "generic" secret backend to "kv" (#3292) 2017-09-15 09:02:29 -04:00
renew.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
renew_test.go Exclude /sys/leases/renew from registering with expiration manager (#2891) 2017-06-20 12:34:00 -04:00
revoke.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
revoke_test.go
rotate.go
rotate_test.go
seal.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
seal_test.go
server.go Redo API locking (#3508) 2017-11-02 09:30:04 -05:00
server_ha_test.go Migrate physical backends into separate packages (#3106) 2017-08-03 13:24:27 -04:00
server_test.go Migrate physical backends into separate packages (#3106) 2017-08-03 13:24:27 -04:00
ssh.go Thread stderr through too (#3211) 2017-08-21 17:23:29 -04:00
ssh_test.go
status.go Add seal type to seal-status output. (#3516) 2017-11-01 21:00:41 -05:00
status_test.go Multi value test seal (#2281) 2017-01-17 15:43:10 -05:00
step-down.go
token_create.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
token_create_test.go
token_lookup.go
token_lookup_test.go
token_renew.go Rename helper 'duration' to 'parseutil'. (#2449) 2017-03-07 11:21:22 -05:00
token_renew_test.go
token_revoke.go Add -self flag to token-revoke (#2596) 2017-04-17 12:40:51 -04:00
token_revoke_test.go
unmount.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
unmount_test.go
unseal.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
unseal_test.go Multi value test seal (#2281) 2017-01-17 15:43:10 -05:00
unwrap.go Typo corrections and tweaks to commands' help info 2017-03-25 12:51:12 -05:00
unwrap_test.go all: test: Fix govet warnings 2016-12-21 19:44:07 +01:00
util.go Store original request path in WrapInfo (#3100) 2017-08-02 18:28:58 -04:00
version.go Add cgo info to vault version output 2016-11-27 19:32:57 -05:00
version_test.go
wrapping_test.go
write.go Add basic autocompletion (#3223) 2017-08-24 15:23:40 -07:00
write_test.go Fix tests 2017-05-25 09:00:49 -04:00