Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAULT-17227 Add paths for seal config to cache exceptions. #21223

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

victorr
Copy link
Contributor

@victorr victorr commented Jun 14, 2023

Add barrierSealConfigPath and recoverySealConfigPlaintextPath to cacheExceptionsPaths in order to avoid a race that causes some nodes to always see a nil value.

Add barrierSealConfigPath and recoverySealConfigPlaintextPath to
cacheExceptionsPaths in order to avoid a race that causes some
nodes to always see a nil value.
@victorr victorr added this to the 1.12.9 milestone Jun 14, 2023
@victorr victorr self-assigned this Jun 14, 2023

// Add barrierSealConfigPath and recoverySealConfigPlaintextPath to the cache
// exceptions to avoid unseal errors. See VAULT-17227
"core/seal-config",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than hard code the entries here, I could add a new method to Cache to add entries to the cacheExceptions. Should I do that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the motivation?

@victorr victorr enabled auto-merge (squash) June 14, 2023 21:02
@ryancragun
Copy link
Collaborator

ryancragun commented Jun 14, 2023

Can we backport this to 1.11-1.13 as well? Sorry, hit enter but did not see the labels until refresh.

@victorr victorr merged commit 58f029d into main Jun 14, 2023
102 checks passed
@victorr victorr deleted the victorr/vaut-17277-config-paths-cache-exception branch June 14, 2023 21:09
victorr added a commit that referenced this pull request Jun 15, 2023
Add paths for seal config to cache exceptions.

Add barrierSealConfigPath and recoverySealConfigPlaintextPath to
cacheExceptionsPaths in order to avoid a race that causes some
nodes to always see a nil value.
victorr added a commit that referenced this pull request Jun 15, 2023
Add paths for seal config to cache exceptions.

Add barrierSealConfigPath and recoverySealConfigPlaintextPath to
cacheExceptionsPaths in order to avoid a race that causes some
nodes to always see a nil value.

Co-authored-by: Victor Rodriguez <vrizo@hashicorp.com>
ryancragun pushed a commit that referenced this pull request Jun 16, 2023
Add paths for seal config to cache exceptions.

Add barrierSealConfigPath and recoverySealConfigPlaintextPath to
cacheExceptionsPaths in order to avoid a race that causes some
nodes to always see a nil value.
ryancragun pushed a commit that referenced this pull request Jun 16, 2023
Add paths for seal config to cache exceptions.

Add barrierSealConfigPath and recoverySealConfigPlaintextPath to
cacheExceptionsPaths in order to avoid a race that causes some
nodes to always see a nil value.
ryancragun added a commit that referenced this pull request Jun 16, 2023
Add paths for seal config to cache exceptions.

Add barrierSealConfigPath and recoverySealConfigPlaintextPath to
cacheExceptionsPaths in order to avoid a race that causes some
nodes to always see a nil value.

Co-authored-by: Victor Rodriguez <vrizo@hashicorp.com>
@victorr victorr changed the title Add paths for seal config to cache exceptions. VAULT-17227 Add paths for seal config to cache exceptions. Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants