25960fd034
* wip * wip * Got it 'working', but not happy about cleanliness yet * Switch to a dedicated defaultSeal with recovery keys This is simpler than trying to hijack SealAccess as before. Instead, if the operator has requested recovery unseal mode (via a flag in the seal stanza), we new up a shamir seal with the recovery unseal key path instead of the auto seal. Then everything proceeds as if you had a shamir seal to begin with. * Handle recovery rekeying * changelog * Revert go.mod redirect * revert multi-blob info * Dumb nil unmarshal target * More comments * Update vault/seal.go Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com> * Update changelog/18683.txt Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com> * pr feedback * Fix recovery rekey, which needs to fetch root keys and restore them under the new recovery split * Better comment on recovery seal during adjustSealMigration * Make it possible to migrate from an auto-seal in recovery mode to shamir * Fix sealMigrated to account for a recovery seal * comments * Update changelog/18683.txt Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com> * Address PR feedback * Refactor duplicated migration code into helpers, using UnsealRecoveryKey/RecoveryKey where appropriate * Don't shortcut the reast of seal migration * get rid of redundant transit server cleanup Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com> |
||
---|---|---|
.. | ||
web_ui | ||
assets.go | ||
assets_stub.go | ||
auth_token_test.go | ||
cors.go | ||
custom_header_test.go | ||
forwarded_for_test.go | ||
forwarding_bench_test.go | ||
forwarding_test.go | ||
handler.go | ||
handler_test.go | ||
help.go | ||
help_test.go | ||
http_test.go | ||
logical.go | ||
logical_test.go | ||
plugin_test.go | ||
sys_audit_test.go | ||
sys_auth_test.go | ||
sys_config_cors_test.go | ||
sys_config_state_test.go | ||
sys_feature_flags.go | ||
sys_generate_root.go | ||
sys_generate_root_test.go | ||
sys_health.go | ||
sys_health_test.go | ||
sys_hostinfo_test.go | ||
sys_in_flight_requests.go | ||
sys_in_flight_requests_test.go | ||
sys_init.go | ||
sys_init_test.go | ||
sys_internal_test.go | ||
sys_leader.go | ||
sys_leader_test.go | ||
sys_lease_test.go | ||
sys_metrics.go | ||
sys_metrics_test.go | ||
sys_monitor_test.go | ||
sys_mount_test.go | ||
sys_mounts_test.go | ||
sys_policy_test.go | ||
sys_raft.go | ||
sys_rekey.go | ||
sys_rekey_test.go | ||
sys_rotate_test.go | ||
sys_seal.go | ||
sys_seal_test.go | ||
sys_wrapping_test.go | ||
testing.go | ||
unwrapping_raw_body_test.go | ||
util.go |