Skip to content

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

Merged
kyessenov merged 1 commit intoenvoyproxy:mainfrom
kyessenov:oauth2
Feb 29, 2024
Merged

oauth2: refactor SDS secret provider to remove a data race#32625
kyessenov merged 1 commit intoenvoyproxy:mainfrom
kyessenov:oauth2

Conversation

@kyessenov
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

- 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
Copy Markdown
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
Copy Markdown
Contributor Author

/retest

1 similar comment
@kyessenov
Copy link
Copy Markdown
Contributor Author

/retest

@mattklein123 mattklein123 self-assigned this Feb 29, 2024
@kyessenov kyessenov merged commit 88cc302 into envoyproxy:main Feb 29, 2024
@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