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 Fix two potential channel hangs in access.tryDecrypt into release/1.15.x #24422

Conversation

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

Backport

This PR is auto-generated from #24418 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.


The first could happen if an error is received and we call reportResult
synchronously. But there is no one listening on the other side until later
in the function. The second could occur if the context becomes done before
we receive the result. The goroutine would be stuck trying to report the
result to the chan which is still open, but the for { select } loop is no
longer checking resultCh.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/sgm/fix-potential-decrypt-hangs/nicely-great-haddock branch from 84ad238 to 4ff7275 Compare December 7, 2023 18:17
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Dec 7, 2023
@sgmiller sgmiller enabled auto-merge (squash) December 7, 2023 18:18
@sgmiller sgmiller added this to the 1.15.4 milestone Dec 7, 2023
Copy link

github-actions bot commented Dec 7, 2023

Build Results:
All builds succeeded! ✅

@sgmiller sgmiller merged commit 22e1781 into release/1.15.x Dec 7, 2023
96 of 98 checks passed
@sgmiller sgmiller deleted the backport/sgm/fix-potential-decrypt-hangs/nicely-great-haddock branch December 7, 2023 18:36
Copy link

github-actions bot commented Dec 7, 2023

CI Results:
All Go tests succeeded! ✅

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