open-vault/builtin/logical/pki
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
..
backend.go Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
backend_test.go Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
ca_test.go Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
ca_util.go
cert_util.go
cert_util_test.go
crl_util.go
fields.go
path_config_ca.go
path_config_crl.go
path_config_urls.go
path_fetch.go
path_intermediate.go
path_issue_sign.go
path_revoke.go
path_roles.go
path_roles_test.go Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
path_root.go
path_tidy.go Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
secret_certs.go
util.go