Repository navigation
xds: Compare parsed GrpcService configs by their source and add a key - #13215
Open
shivaspeaks wants to merge 6 commits into
Open
shivaspeaks wants to merge 6 commits into
shivaspeaks wants to merge 6 commits into
Conversation
Member
Author
|
Summary of the major changes in this PR: 1. Credentials are compared by the config they were built from
2.
3. Call credentials keep their config
4.
5. Smaller changes
Behavior notes
|
shivaspeaks
marked this pull request as ready for review
December 2, 2026 09:09
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parsed GrpcService configs couldn't be compared.
ConfiguredChannelCredentials.equals()compared the builtChannelCredentials, which use identity, and call credentials kept no record of their configuration (raised in #12492).ConfiguredChannelCredentialsand the newConfiguredCallCredentialsnow keep the type and data of the configuration the credentials were built from, and compare by those, replacingChannelCredsConfig. The data is the serialized config proto, or the bootstrap JSON config. grpc-go's credentials have carried this identity since grpc/grpc-go#9319.GrpcServiceConfig.key()returns a SHA-256 hash of the config's fields, so equal configs get equal keys and no key holds credentials. grpc-go'sConfig.Key()(grpc/grpc-go#9508) returns the fields themselves, but this key will appear in LB configs, logs and errors, so it's hashed.The autosharding LB policy's xDS integration (gRFC A119) will use the key as its channel factory key.
Credential parse errors now also keep the protobuf exception as their cause (raised in #12492).