Skip to content

alts: Add ClientCall support to AltsContextUtil #11866

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

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Jan 30, 2025

This adds a createFrom(Attributes) to mirror the check(Attributes) added in ba8ab79. It also adds conveniences for ClientCall for both createFrom() and check(). This allows getting peer information from ClientCall and CallCredentials.RequestInfo, as was already available from ServerCall.

The tests were reworked to test the Attribute-based methods and then only basic tests for client/server.

Fixes #11042

This adds a createFrom(Attributes) to mirror the check(Attributes) added
in ba8ab79. It also adds conveniences for ClientCall for both
createFrom() and check(). This allows getting peer information from
ClientCall and CallCredentials.RequestInfo, as was already available
from ServerCall.

The tests were reworked to test the Attribute-based methods and then
only basic tests for client/server.

Fixes grpc#11042
@ejona86 ejona86 merged commit b1bc0a9 into grpc:master Jan 31, 2025
16 checks passed
@ejona86 ejona86 deleted the alts-clientcontext branch January 31, 2025 00:10
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow getting AltsContext from transport attributes on client-side
3 participants