open-vault/http
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
..
auth_token_test.go
cors.go Set allowed headers via API instead of defaulting to wildcard. (#3023) 2017-08-07 10:03:30 -04:00
forwarding_test.go Redo API locking (#3508) 2017-11-02 09:30:04 -05:00
handler.go Change some instances of adding headers to setting headers, since really (#3501) 2017-11-02 07:31:50 -05:00
handler_test.go Final sync 2017-10-23 17:39:21 -04:00
help.go
help_test.go
http_test.go
logical.go Fix a logic bug in the respondRaw function (#3491) 2017-10-26 00:08:10 -07:00
logical_test.go Porting identity store (#3419) 2017-10-11 10:21:20 -07:00
sys_audit_test.go
sys_auth_test.go
sys_config_cors_test.go Set allowed headers via API instead of defaulting to wildcard. (#3023) 2017-08-07 10:03:30 -04:00
sys_generate_root.go
sys_generate_root_test.go Porting identity store (#3419) 2017-10-11 10:21:20 -07:00
sys_health.go Change some instances of adding headers to setting headers, since really (#3501) 2017-11-02 07:31:50 -05:00
sys_health_test.go
sys_init.go Final sync 2017-10-23 17:39:21 -04:00
sys_init_test.go
sys_leader.go
sys_leader_test.go
sys_lease_test.go
sys_mount_test.go Final sync 2017-10-23 17:39:21 -04:00
sys_mounts_test.go Rename "generic" secret backend to "kv" (#3292) 2017-09-15 09:02:29 -04:00
sys_policy_test.go Final sync 2017-10-23 17:39:21 -04:00
sys_rekey.go Final sync 2017-10-23 17:39:21 -04:00
sys_rekey_test.go Make compile 2017-10-23 17:41:44 -04:00
sys_rotate_test.go
sys_seal.go Add seal type to seal-status output. (#3516) 2017-11-01 21:00:41 -05:00
sys_seal_test.go Final sync 2017-10-23 17:39:21 -04:00
sys_wrapping_test.go
testing.go Redo API locking (#3508) 2017-11-02 09:30:04 -05:00