backport of commit 58f029d6082b5231ca49312c75b360300781d399 (#21240)

Co-authored-by: Victor Rodriguez <vrizo@hashicorp.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-06-14 17:59:08 -04:00 committed by GitHub
parent 79fe1f8d41
commit a5e6a4614d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

3
changelog/21223.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
core: Do not cache seal configuration to fix a bug that resulted in sporadic auto unseal failures.
```

View File

@ -32,6 +32,11 @@ var cacheExceptionsPaths = []string{
"sys/expire/",
"core/poison-pill",
"core/raft/tls",
// Add barrierSealConfigPath and recoverySealConfigPlaintextPath to the cache
// exceptions to avoid unseal errors. See VAULT-17227
"core/seal-config",
"core/recovery-config",
}
// CacheRefreshContext returns a context with an added value denoting if the