open-vault/command/server
Vishal Nayak c87d34d1a4
Seal migration with Raft (#8103)
* Seal migration after unsealing

* Refactor migration fields migrationInformation in core

* Perform seal migration as part of postUnseal

* Remove the sleep logic

* Use proper seal in the unseal function

* Fix migration from Auto to Shamir

* Fix the recovery config missing issue

* Address the non-ha migration case

* Fix the multi cluster case

* Avoid re-running seal migration

* Run the post migration code in new leaders

* Fix the issue of wrong recovery being set

* Address review feedback

* Add more complete testing coverage for seal migrations.   (#8247)

* Add more complete testing coverage for seal migrations.  Also remove VAULT_ACC gate from some tests that just depend on docker, cleanup dangling recovery config in storage after migration, and fix a call in adjustCoreForSealMigration that seems broken.

* Fix the issue of wrong recovery key being set

* Adapt tests to work with multiple cores.

* Add missing line to disable raft join.

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

* Fix all known issues

* Remove warning

* Review feedback.

* Revert my previous change that broke raft tests.  We'll need to come back and at least comment
this once we better understand why it's needed.

* Don't allow migration between same types for now

* Disable auto to auto tests for now since it uses migration between same types which is not allowed

* Update vault/core.go

Co-Authored-By: Brian Kassouf <briankassouf@users.noreply.github.com>

* Add migration logs

* Address review comments

* Add the recovery config check back

* Skip a few steps if migration is already done

* Return from waitForLeadership if migration fails

Co-authored-by: ncabatoff <nick.cabatoff@gmail.com>
Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>
2020-02-13 16:27:31 -05:00
..
seal Seal migration with Raft (#8103) 2020-02-13 16:27:31 -05:00
test-fixtures Add support for telemetry option metrics_prefix (#8340) 2020-02-13 09:00:32 -05:00
config.go Add support for telemetry option metrics_prefix (#8340) 2020-02-13 09:00:32 -05:00
config_test.go Raft retry join (#7856) 2020-01-13 17:02:16 -08:00
config_test_helpers.go Add support for telemetry option metrics_prefix (#8340) 2020-02-13 09:00:32 -05:00
config_util.go Run go fmt (#7823) 2019-11-07 08:54:34 -08:00
listener.go Bump api/sdk and fix imports 2020-02-13 10:41:16 -05:00
listener_tcp.go Bump api/sdk and fix imports 2020-02-13 10:41:16 -05:00
listener_tcp_test.go go vet fixes 2018-02-05 14:26:31 -05:00
listener_test.go Add tests. This actually adds the initial tests for the TLS listener, 2016-03-11 14:05:52 -05:00