open-vault/api
Jeff Mitchell 35cb9bc517
Redo API client locking (#4551)
* Redo API client locking

This assigns local values when in critical paths, allowing a single API
client to much more quickly and safely pipeline requests.

Additionally, in order to take that paradigm all the way it changes how
timeouts are set. It now uses a context value set on the request instead
of configuring the timeout in the http client per request, which was
also potentially quite racy.

Trivially tested with
VAULT_CLIENT_TIMEOUT=2 vault write pki/root/generate/internal key_type=rsa key_bits=8192
2018-05-25 14:38:06 -04:00
..
test-fixtures
api_integration_test.go Purge opened connections on retries during tests (#4452) 2018-04-26 11:28:58 -04:00
api_test.go
auth.go
auth_token.go
client.go Redo API client locking (#4551) 2018-05-25 14:38:06 -04:00
client_test.go Redo API client locking (#4551) 2018-05-25 14:38:06 -04:00
help.go
logical.go Re-add capability to unwrap pre-0.6.2 wrapping tokens 2018-05-15 20:01:58 -04:00
renewer.go Grace is deprecated so mark as such 2018-05-09 10:02:06 -04:00
renewer_integration_test.go Move timeout declaration outside of for loop, break out early if renewed cleanly (#4522) 2018-05-07 13:47:55 -07:00
renewer_test.go Remove outdated renewer test 2018-05-09 12:33:20 -04:00
request.go Update comment around legacy bool in API 2018-05-09 20:35:51 -04:00
request_test.go
response.go Allow returning warnings and other data in 404s in the Go API (#4256) 2018-04-03 22:35:45 -04:00
secret.go Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
secret_test.go Spelling (#4119) 2018-03-20 14:54:10 -04:00
ssh.go
ssh_agent.go Purge structs from API. 2018-04-09 22:23:56 -04:00
ssh_agent_test.go Fix output-related tests (#4288) 2018-04-05 20:43:29 -04:00
sys.go
sys_audit.go Purge structs from API. 2018-04-09 22:23:56 -04:00
sys_auth.go Purge structs from API. 2018-04-09 22:23:56 -04:00
sys_capabilities.go Fix panic when running capabilities CLI command with multiple paths (#4553) 2018-05-11 11:58:12 -04:00
sys_config_cors.go
sys_generate_root.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
sys_health.go Sync some bits over 2018-01-22 21:44:49 -05:00
sys_init.go
sys_leader.go
sys_leases.go
sys_mounts.go Purge structs from API. 2018-04-09 22:23:56 -04:00
sys_plugins.go Add API functions and completions for plugins (#4194) 2018-03-26 13:40:33 -04:00
sys_policy.go
sys_rekey.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
sys_rotate.go
sys_seal.go adding recovery info to seal status (#3706) 2017-12-18 09:58:14 -05:00
sys_stepdown.go