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

Validate AddCallCredentials are used by client #1756

Merged
merged 3 commits into from
May 24, 2022

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented May 22, 2022

Call credentials configured on a non-TLS channel aren't used. Instead, a warning is logged. This is confusing until a dev reads documentation or looks at logs. This behavior was chosen because it's what Grpc.Core does, and compatibility is important.

gRPC client factory has a new AddCallCredentials method. This PR updates the client factory to validate that call credentials are used, otherwise, it throws an error. Compatibility with Grpc.Core isn't a problem because gRPC client factory is new for grpc-dotnet.

@JamesNK JamesNK changed the title Error if AddCallCredentials aren't used Error if AddCallCredentials aren't valid for client May 22, 2022
@JamesNK JamesNK changed the title Error if AddCallCredentials aren't valid for client Validate AddCallCredentials are used by client May 24, 2022
@JamesNK JamesNK merged commit c0779fc into grpc:master May 24, 2022
@JamesNK JamesNK deleted the jamesnk/addcallcredentials-validation branch May 24, 2022 10:53
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.

None yet

2 participants