vault/api
Jeff Mitchell 41568317e0
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
..
test-fixtures moved the test cert keys to appropriate test-fixtures folder 2016-02-29 15:49:08 -05:00
api_integration_test.go Add a -dev-three-node option for devs. (#3081) 2017-07-31 11:28:06 -04:00
api_test.go Redo API locking (#3508) 2017-11-02 09:30:04 -05:00
auth.go Remove RevokePrefix from the API too as we simply do not support it any 2016-04-05 11:00:12 -04:00
auth_token.go Use RenewTokenAsSelf instead 2017-07-07 17:14:44 -04:00
client.go Redo API locking (#3508) 2017-11-02 09:30:04 -05:00
client_test.go Only call ConfigureTransport if "h2" is not already in NextProtos. 2017-10-27 14:08:30 -04:00
help.go command/help 2015-04-02 22:42:05 -07:00
logical.go Better handle nil responses in logical unwrap 2016-12-01 16:38:08 -05:00
renewer.go Do not double-convert to seconds 2017-07-11 16:06:50 -07:00
renewer_integration_test.go Rename "generic" secret backend to "kv" (#3292) 2017-09-15 09:02:29 -04:00
renewer_test.go Fix failing test 2017-07-07 17:14:49 -04:00
request.go More syncing 2017-10-23 16:52:56 -04:00
request_test.go api: Allow reseting of request body 2015-04-20 10:44:51 -07:00
response.go api: Don't treat 429 as error (#2850) 2017-06-12 18:31:36 -04:00
secret.go Store original request path in WrapInfo (#3100) 2017-08-02 18:28:58 -04:00
secret_test.go Add token accessor to wrap information if one exists 2016-06-13 23:58:17 +00:00
SPEC.md Update documentation to be consistent with return codes 2015-12-10 10:26:40 -05:00
ssh.go Add SignKey endpoint for SSH API client 2017-08-18 12:59:08 -04:00
ssh_agent.go allow a TLS server name to be configured for SSH agents (#1720) 2016-08-23 22:06:56 -04:00
ssh_agent_test.go Fix breakage for HTTP2 support due to changes in wrapping introduced in 1.8 (#2412) 2017-02-27 12:49:35 -05:00
sys.go api: separate sys out further 2015-03-11 17:46:41 -05:00
sys_audit.go Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
sys_auth.go Normalize plugin_name option for mount and enable-auth (#3202) 2017-08-31 12:16:59 -04:00
sys_capabilities.go Restore compatibility with pre-0.6.1 servers for CLI/Go API calls 2016-08-14 14:52:45 -04:00
sys_config_cors.go Cors headers (#2021) 2017-06-17 00:04:55 -04:00
sys_generate_root.go Return status for rekey/root generation at init time. This mitigates a 2016-02-12 14:24:36 -05:00
sys_health.go Have sys health api always return even in an error case (#3087) 2017-08-02 10:01:40 -04:00
sys_init.go Add support for PGP encrypting the initial root token. (#1883) 2016-09-13 18:42:24 -04:00
sys_leader.go Add leader cluster address to status/leader output. (#3061) 2017-07-31 18:25:27 -04:00
sys_leases.go moving client calls to new endpoint (#2867) 2017-07-25 11:58:33 -04:00
sys_mounts.go More syncing 2017-10-23 16:52:56 -04:00
sys_policy.go More syncing 2017-10-23 16:52:56 -04:00
sys_rekey.go More syncing 2017-10-23 16:52:56 -04:00
sys_rotate.go Restore compatibility with pre-0.6.1 servers for CLI/Go API calls 2016-08-14 14:52:45 -04:00
sys_seal.go Add seal type to seal-status output. (#3516) 2017-11-01 21:00:41 -05:00
sys_stepdown.go Provide 'sys/step-down' and 'vault step-down' 2016-02-26 19:43:55 -05:00