vault/internalshared/configutil
Scott Miller 2ffe49aab0
Add the ability to unseal using recovery keys via an explicit seal option. (#18683)
* 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>
2023-01-24 14:57:56 -06:00
..
config.go VAULT-12264: Fix log rotation params which require an integer (#18666) 2023-01-11 20:04:57 +00:00
config_util.go Convert to Go 1.17 go:build directive (#13579) 2022-01-05 12:02:03 -06:00
encrypt_decrypt.go OSS portion of wrapper-v2 (#16811) 2022-08-23 15:37:16 -04:00
encrypt_decrypt_test.go OSS portion of wrapper-v2 (#16811) 2022-08-23 15:37:16 -04:00
hcp_link.go HCP link integration (#16939) 2022-09-06 14:11:04 -04:00
http_response_headers.go Customizing HTTP headers in the config file (#12485) 2021-10-13 11:06:33 -04:00
kms.go Add the ability to unseal using recovery keys via an explicit seal option. (#18683) 2023-01-24 14:57:56 -06:00
lint.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
listener.go VAULT-6368 Metrics-only listener for Agent (#18101) 2022-11-25 16:00:56 -05:00
listener_test.go Do sockaddr template parsing only when needed (#15224) 2022-04-29 09:57:17 -04:00
merge.go VAULT-12264: Fix log rotation params which require an integer (#18666) 2023-01-11 20:04:57 +00:00
telemetry.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
telemetry_test.go [VAULT-2776] Add prefix_filter option to Vault (#12025) 2021-07-09 14:49:53 -05:00
userlockout.go Vault 8307 user lockout workflow oss (#17951) 2022-12-06 17:22:46 -08:00
userlockout_test.go Vault 8305 Prevent Brute Forcing in Auth methods : Setting user lockout configuration (#17338) 2022-11-01 11:02:07 -07:00