open-vault/physical
Jeff Mitchell e52b554c0b
Add an idle timeout for the server (#4760)
* Add an idle timeout for the server

Because tidy operations can be long-running, this also changes all tidy
operations to behave the same operationally (kick off the process, get a
warning back, log errors to server log) and makes them all run in a
goroutine.

This could mean a sort of hard stop if Vault gets sealed because the
function won't have the read lock. This should generally be okay
(running tidy again should pick back up where it left off), but future
work could use cleanup funcs to trigger the functions to stop.

* Fix up tidy test

* Add deadline to cluster connections and an idle timeout to the cluster server, plus add readheader/read timeout to api server
2018-06-16 18:21:33 -04:00
..
azure Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
cassandra Clean up error string formatting (#4304) 2018-04-09 14:35:21 -04:00
cockroachdb Purge opened connections on retries during tests (#4452) 2018-04-26 11:28:58 -04:00
consul Add context handling to Consul operations (#4739) 2018-06-11 11:03:00 -04:00
couchdb Clean up error string formatting (#4304) 2018-04-09 14:35:21 -04:00
dynamodb Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
etcd Update to TrustedCAFile for etcd as CAFile is deprecated and removed in latest libs 2018-05-22 15:46:39 -04:00
file Do some best-effort cleanup in file backend (#4684) 2018-06-04 19:41:36 -04:00
gcs Fix swallowed err from gcs close calls (#4706) 2018-06-05 15:27:02 -04:00
inmem Fix another test error 2018-06-09 18:31:47 -04:00
manta Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
mssql Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
mysql Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
postgresql Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
s3 Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
spanner Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
swift Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
zookeeper physical/zookeeper: Re-try to release lock in case of failure (#4569) 2018-05-17 15:52:50 -07:00
cache.go Revert some of commit 050ab805a7565c5b0cadb0176023031ee5f0d17b. (#4768) 2018-06-14 13:44:13 -04:00
latency.go Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
physical.go Move to "github.com/hashicorp/go-hclog" (#4227) 2018-04-02 17:46:59 -07:00
physical_access.go Remove core restriction in cache and turn it into an active/standby restriction instead (#3849) 2018-01-25 22:21:51 -05:00
physical_view.go Add compile tests to verify physical stores satisfy the correct interfaces (#3820) 2018-01-19 17:44:24 -08:00
testing.go DynamoDB Nested Values Bug (#4570) 2018-05-16 13:30:56 -04:00
transactions.go Add context to storage backends and wire it through a lot of places (#3817) 2018-01-19 01:44:44 -05:00
types.pb.go adding option go_package to protos (#4687) 2018-06-04 10:19:26 -04:00
types.proto adding option go_package to protos (#4687) 2018-06-04 10:19:26 -04:00