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

oauth2: refactor SDS secret provider to remove a data race #32625

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

kyessenov
Copy link
Contributor

Change-Id: Idd4b05fe698b27e03a773e7dfe27c251842e3e55

Commit Message: Refactor SDS secret provider to use TLV for values and make it a common utility to prevent code duplication.
Additional Description:
Risk Level: low
Testing: done
Docs Changes: none
Release Notes: none
Fixes: #21273

Change-Id: Idd4b05fe698b27e03a773e7dfe27c251842e3e55
Signed-off-by: Kuat Yessenov <kuat@google.com>
@kyessenov
Copy link
Contributor Author

FYI @zhaohuabing , since the code was duplicated in #30850

@@ -162,6 +162,7 @@ paths:
- source/common/upstream/health_discovery_service.cc
- source/common/secret/sds_api.h
- source/common/secret/sds_api.cc
- source/common/secret/secret_provider_impl.cc
Copy link
Contributor Author

@kyessenov kyessenov Feb 28, 2024

Choose a reason for hiding this comment

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

Not feasible to exclude it until SDS stops using exceptions in callbacks.

@kyessenov
Copy link
Contributor Author

/retest

1 similar comment
@kyessenov
Copy link
Contributor Author

/retest

@mattklein123 mattklein123 self-assigned this Feb 29, 2024
@kyessenov kyessenov merged commit 88cc302 into envoyproxy:main Feb 29, 2024
54 checks passed
@kyessenov kyessenov deleted the oauth2 branch February 29, 2024 17:26
mum4k pushed a commit to envoyproxy/nighthawk that referenced this pull request Mar 5, 2024
- Update the ENVOY_COMMIT and ENVOY_SHA in bazel/repositories.bzl to the latest Envoy's commit.
- Update to .bazelrc and tools/gen_compilation_database.py to envoyproxy/envoy#32585
- Update source/client/process_impl.cc to accommodate refactor in envoyproxy/envoy#32587
- Update tools/code_format/config.yaml for changes in envoyproxy/envoy#32625 and envoyproxy/envoy#32252
- Update python dependencies
- Ensure ostream_formatter definitions are before usage to prevent "explicit specialization of X after instantiation" errors

Signed-off-by: Tom Zhang <4367421+tomjzzhang@users.noreply.github.com>
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.

oauth: readAndWatchSecret is not thread safe
2 participants