vault/http
Vishal Nayak 2f4ae7f215
Recovery Mode (#7559)
* Initial work

* rework

* s/dr/recovery

* Add sys/raw support to recovery mode (#7577)

* Factor the raw paths out so they can be run with a SystemBackend.

# Conflicts:
#	vault/logical_system.go

* Add handleLogicalRecovery which is like handleLogical but is only
sufficient for use with the sys-raw endpoint in recovery mode.  No
authentication is done yet.

* Integrate with recovery-mode.  We now handle unauthenticated sys/raw
requests, albeit on path v1/raw instead v1/sys/raw.

* Use sys/raw instead raw during recovery.

* Don't bother persisting the recovery token.  Authenticate sys/raw
requests with it.

* RecoveryMode: Support generate-root for autounseals (#7591)

* Recovery: Abstract config creation and log settings

* Recovery mode integration test. (#7600)

* Recovery: Touch up (#7607)

* Recovery: Touch up

* revert the raw backend creation changes

* Added recovery operation token prefix

* Move RawBackend to its own file

* Update API path and hit it using CLI flag on generate-root

* Fix a panic triggered when handling a request that yields a nil response. (#7618)

* Improve integ test to actually make changes while in recovery mode and
verify they're still there after coming back in regular mode.

* Refuse to allow a second recovery token to be generated.

* Resize raft cluster to size 1 and start as leader (#7626)

* RecoveryMode: Setup raft cluster post unseal (#7635)

* Setup raft cluster post unseal in recovery mode

* Remove marking as unsealed as its not needed

* Address review comments

* Accept only one seal config in recovery mode as there is no scope for migration
2019-10-15 00:55:31 -04:00
..
auth_token_test.go The big one (#5346) 2018-09-17 23:03:00 -04:00
cors.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
forwarded_for_test.go Allow max request size to be user-specified (#4824) 2018-07-06 15:44:56 -04:00
forwarding_bench_test.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
forwarding_test.go sys/config: config state endpoint (#7424) 2019-10-08 10:57:15 -07:00
handler.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
handler_test.go Add mount UUID to the secret and auth list API responses (#6633) 2019-04-24 12:27:43 -07:00
help.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
help_test.go Remove cookie authentication. 2015-08-21 19:46:23 -07:00
http_test.go audit: log invalid wrapping token request/response (#6541) 2019-07-05 14:15:14 -07:00
logical.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
logical_test.go audit: log invalid wrapping token request/response (#6541) 2019-07-05 14:15:14 -07:00
plugin_test.go Update to api 1.0.1 and sdk 0.1.8 2019-04-15 14:10:07 -04:00
stub_assets.go OSS: Adding UI handlers and configurable headers (#390) 2018-04-03 09:34:01 -05:00
sys_audit_test.go Re-add injecting into top routes (#5244) 2018-09-05 11:45:17 -04:00
sys_auth_test.go Add mount UUID to the secret and auth list API responses (#6633) 2019-04-24 12:27:43 -07:00
sys_config_cors_test.go Re-add injecting into top routes (#5244) 2018-09-05 11:45:17 -04:00
sys_config_state_test.go sys/config: config state endpoint (#7424) 2019-10-08 10:57:15 -07:00
sys_generate_root.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
sys_generate_root_test.go Seal migration (OSS) (#781) 2018-10-22 23:34:02 -07:00
sys_health.go Follow what documentation says we should do if we're a perf standby and perfstandbyok=true (#7241) 2019-08-05 16:44:41 -04:00
sys_health_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
sys_hostinfo_test.go sys: add host-info endpoint (#7330) 2019-10-03 09:43:52 -07:00
sys_init.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
sys_init_test.go Tackle #4929 a different way (#4932) 2018-07-24 13:57:25 -07:00
sys_internal_test.go Kv preflight (#4430) 2018-04-23 15:00:02 -07:00
sys_leader.go Add LastWAL in leader/health output (#5523) 2018-10-16 09:38:44 -04:00
sys_leader_test.go Add performance standby status to status output (#5192) 2018-08-27 10:01:07 -07:00
sys_lease_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
sys_metrics.go Unauth metrics: Fix missing parse form and error response (#7569) 2019-10-08 14:55:25 +02:00
sys_metrics_test.go Unauth metrics: Fix missing parse form and error response (#7569) 2019-10-08 14:55:25 +02:00
sys_mount_test.go Add mount UUID to the secret and auth list API responses (#6633) 2019-04-24 12:27:43 -07:00
sys_mounts_test.go Rename "generic" secret backend to "kv" (#3292) 2017-09-15 09:02:29 -04:00
sys_policy_test.go Re-add injecting into top routes (#5244) 2018-09-05 11:45:17 -04:00
sys_raft.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
sys_rekey.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
sys_rekey_test.go The big one (#5346) 2018-09-17 23:03:00 -04:00
sys_rotate_test.go Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
sys_seal.go Recovery Mode (#7559) 2019-10-15 00:55:31 -04:00
sys_seal_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
sys_wrapping_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
testing.go Pass in an ErrorLog to http.Server (#5135) 2018-08-21 11:23:18 -04:00
unwrapping_raw_body_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
util.go OSS portions of raft non-voters (#7634) 2019-10-11 11:56:59 -07:00