open-vault/http
Calvin Leung Huang c45bdca0b3
raft: add support for using backend for ha_storage (#9193)
* raft: initial work on raft ha storage support

* add note on join

* add todo note

* raft: add support for bootstrapping and joining existing nodes

* raft: gate bootstrap join by reading leader api address from storage

* raft: properly check for raft-only for certain conditionals

* raft: add bootstrap to api and cli

* raft: fix bootstrap cli command

* raft: add test for setting up new cluster with raft HA

* raft: extend TestRaft_HA_NewCluster to include inmem and consul backends

* raft: add test for updating an existing cluster to use raft HA

* raft: remove debug log lines, clean up verifyRaftPeers

* raft: minor cleanup

* raft: minor cleanup

* Update physical/raft/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/ha.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/ha.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/logical_system_raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* address feedback comments

* address feedback comments

* raft: refactor tls keyring logic

* address feedback comments

* Update vault/raft.go

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* address feedback comments

* testing: fix import ordering

* raft: rename var, cleanup comment line

* docs: remove ha_storage restriction note on raft

* docs: more raft HA interaction updates with migration and recovery mode

* docs: update the raft join command

* raft: update comments

* raft: add missing isRaftHAOnly check for clearing out state set earlier

* raft: update a few ha_storage config checks

* Update command/operator_raft_bootstrap.go

Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>

* raft: address feedback comments

* raft: fix panic when checking for config.HAStorage.Type

* Update vault/raft.go

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update website/pages/docs/commands/operator/raft.mdx

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* raft: remove bootstrap cli command

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/raft.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* raft: address review feedback

* raft: revert vendored sdk

* raft: don't send applied index and node ID info if we're HA-only

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
2020-06-23 12:04:13 -07: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 Create configutil and move some common config and setup functions there (#8362) 2020-05-14 09:19:27 -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 raft: add support for using backend for ha_storage (#9193) 2020-06-23 12:04:13 -07:00
handler_test.go Create configutil and move some common config and setup functions there (#8362) 2020-05-14 09:19:27 -04: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 Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
logical_test.go Create configutil and move some common config and setup functions there (#8362) 2020-05-14 09:19:27 -04: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 missed description field for GET /sys/auth/:path/tune endpoint (#8193) 2020-02-15 10:32:47 -08: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 Support processing parameters sent as a URL-encoded form (#8325) 2020-02-12 14:20:22 -08:00
sys_generate_root_test.go Audit generate root requests and responses. (#8301) 2020-02-06 11:56:37 -05:00
sys_health.go Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07: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 Support processing parameters sent as a URL-encoded form (#8325) 2020-02-12 14:20:22 -08: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 storage/raft: Add committed and applied indexes to the status output (#9011) 2020-05-18 16:07:27 -07: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 http: ensure return after writing response by respondError (#8796) 2020-04-21 15:30:36 -07:00
sys_metrics_test.go Create configutil and move some common config and setup functions there (#8362) 2020-05-14 09:19:27 -04:00
sys_monitor_test.go Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
sys_mount_test.go Add missed description field for GET /sys/auth/:path/tune endpoint (#8193) 2020-02-15 10:32:47 -08: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 raft: add support for using backend for ha_storage (#9193) 2020-06-23 12:04:13 -07:00
sys_rekey.go Support processing parameters sent as a URL-encoded form (#8325) 2020-02-12 14:20:22 -08: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 Support processing parameters sent as a URL-encoded form (#8325) 2020-02-12 14:20:22 -08: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 Create configutil and move some common config and setup functions there (#8362) 2020-05-14 09:19:27 -04:00
unwrapping_raw_body_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
util.go Create configutil and move some common config and setup functions there (#8362) 2020-05-14 09:19:27 -04:00