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

Backport of [VAULT-21623] Close rate-limit client purge goroutines when sealing into release/1.15.x #24139

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #24108 to be assessed for backporting due to the inclusion of the label backport/1.15.x.

The below text is copied from the body of the original PR.


This PR fixes a goroutine leak when using rate-limit quotas. When using rate-limit quotas, a goroutine is started per quota to check at a set interval whether or not we can remove a client from being blocked. When Vault would undergo a state-change that required sealing, Vault was not closing these purge goroutines. When unsealing Vault would re-initialize the rate-limit quotas starting a new set of goroutines, leaking the old ones.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/davidadeleon/fix-rate-limit-quota-goroutine-leak/illegally-deep-pup branch from 814d2df to 54b7804 Compare November 15, 2023 13:50
@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/davidadeleon/fix-rate-limit-quota-goroutine-leak/illegally-deep-pup branch from a1518f5 to caf4c7d Compare November 15, 2023 13:50
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Nov 15, 2023
Copy link

Build Results:
All builds succeeded! ✅

@davidadeleon davidadeleon added this to the 1.15.3 milestone Nov 15, 2023
Copy link

CI Results:
All Go tests succeeded! ✅

@davidadeleon davidadeleon merged commit 46d928c into release/1.15.x Nov 15, 2023
99 of 100 checks passed
@davidadeleon davidadeleon deleted the backport/davidadeleon/fix-rate-limit-quota-goroutine-leak/illegally-deep-pup branch November 15, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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