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

During a seal reload through SIGHUP, only write updated seal barrier on an active node #26381

Merged

Conversation

stevendpclark
Copy link
Contributor

When enable_multiseal was enabled, along with a configured auto-seal on enterprise standby nodes, if a SIGHUP were sent to Vault the seal config would be read and if modified would attempt to update the local seal barrier only to get an ErrReadOnly error.

Trap the case on standby nodes, we load seal config but throw it away as we won't use it, on perf standby's we update the core barrier information in memory while on active nodes we perform the update as we did before.

@stevendpclark stevendpclark added this to the 1.16.2 milestone Apr 11, 2024
@stevendpclark stevendpclark requested a review from a team April 11, 2024 20:05
@stevendpclark stevendpclark self-assigned this Apr 11, 2024
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Apr 11, 2024
Copy link
Collaborator

@sgmiller sgmiller left a comment

Choose a reason for hiding this comment

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

Looks like that's got it.

Copy link

github-actions bot commented Apr 11, 2024

CI Results:
All Go tests succeeded! ✅

Copy link

github-actions bot commented Apr 11, 2024

Build Results:
All builds succeeded! ✅

@stevendpclark stevendpclark merged commit bd5f61a into main Apr 12, 2024
83 checks passed
@stevendpclark stevendpclark deleted the stevendpclark/vault-25623-seal-ha-sighup-err-readonly branch April 12, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core/seal hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants