Skip to content

secret_provider: atomically replace thread-local-storage value#44289

Open
adisuissa wants to merge 1 commit intoenvoyproxy:mainfrom
adisuissa:credentials_injector_tsan
Open

secret_provider: atomically replace thread-local-storage value#44289
adisuissa wants to merge 1 commit intoenvoyproxy:mainfrom
adisuissa:credentials_injector_tsan

Conversation

@adisuissa
Copy link
Copy Markdown
Contributor

Commit Message: secret_provider: atomically replace thread-local-storage value
Additional Description:
Refactor the code to use the set() pattern that does an immutable atomic replacement of the thread-local-storage value rather than updating the pointed value contents.

Risk Level: low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #44289 was opened by adisuissa.

see: more, trace.

@adisuissa adisuissa marked this pull request as ready for review April 10, 2026 12:58
Copy link
Copy Markdown
Contributor

@kyessenov kyessenov left a comment

Choose a reason for hiding this comment

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

I'm not sure this is faster, but it's safe AFAICT and a bit more robust.

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.

2 participants