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 potential race on core.activityLog into release/1.13.x #22572

Conversation

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

Backport

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

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


This PR addresses a potential race introduced in #18809. We want to make sure the activitylog doesn't change from underneath us, so we should make sure to use the activitylog pointer we've copied in a read lock, rather than c.activityLog.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/use-locked-activitylog-pointer/frankly-better-gull branch from b9e761c to 13ce45d Compare August 25, 2023 21:24
@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/use-locked-activitylog-pointer/frankly-better-gull branch from 8c00fab to e18b721 Compare August 25, 2023 21:24
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 25, 2023
@mpalmi mpalmi enabled auto-merge (squash) August 25, 2023 21:28
@mpalmi mpalmi merged commit f4845ea into release/1.13.x Aug 25, 2023
@mpalmi mpalmi deleted the backport/use-locked-activitylog-pointer/frankly-better-gull branch August 25, 2023 21:43
@github-actions
Copy link

Build Results:
All builds succeeded! ✅

@github-actions
Copy link

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 pr/no-changelog pr/no-milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants