Skip to content

[TlsCredentials]: Reapply allow using a separate cert provider for root and identity certs#41490

Closed
anniefrchz wants to merge 2 commits intogrpc:masterfrom
anniefrchz:re_apply_split_providers
Closed

[TlsCredentials]: Reapply allow using a separate cert provider for root and identity certs#41490
anniefrchz wants to merge 2 commits intogrpc:masterfrom
anniefrchz:re_apply_split_providers

Conversation

@anniefrchz
Copy link
Copy Markdown
Contributor

This PR is a reapply of PR#41445.
A bug was introduced during the C++ TLSCredentialsOptions configuration where setting a legacy watch_root_cert or watch_identity_cert before actually setting the certificate provider would end up ignoring the legacy certificate provider.

For this PR, make sure that the TLSCredentialsObject does not assign legacy providers until the TlsCredentials object is built. SecureCredentials and SecureServerCredentials use TlsCredentialsOptions::c_credentials_options() to make a deep copy of the c-core tls_credentials_object previous to buil the TlsCredentials.

@anniefrchz anniefrchz force-pushed the re_apply_split_providers branch from afb8c72 to 6f71593 Compare January 28, 2026 04:27
Copy link
Copy Markdown
Member

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Looks great!

@markdroth markdroth added the release notes: yes Indicates if PR needs to be in release notes label Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bloat/none lang/c++ lang/core lang/Python lang/ruby release notes: no Indicates if PR should not be in release notes release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants