Skip to content

Ruby: Mark credential object in channel#40394

Closed
rwstauner wants to merge 1 commit intogrpc:masterfrom
Shopify:rwstauner/mark-channel-creds
Closed

Ruby: Mark credential object in channel#40394
rwstauner wants to merge 1 commit intogrpc:masterfrom
Shopify:rwstauner/mark-channel-creds

Conversation

@rwstauner
Copy link
Contributor

The credentials object potentially holds a reference to a proc when composed with CallCredentials.

We need the proc to live so that when requests build the credentials the proc can still be invoked. For the proc to live we need the credentials object to live so it needs to be marked by the channel.

This addresses #40368

@rwstauner rwstauner force-pushed the rwstauner/mark-channel-creds branch from e599c3d to 48c11d4 Compare August 5, 2025 22:34
@apolcyn apolcyn added release notes: yes Indicates if PR needs to be in release notes kokoro:force-run labels Aug 5, 2025
Copy link
Contributor

@apolcyn apolcyn left a comment

Choose a reason for hiding this comment

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

Thanks @rwstauner!

LGTM

Waiting for tests to finish, I will merge and backport after

@apolcyn
Copy link
Contributor

apolcyn commented Aug 5, 2025

@rwstauner can you please apply the patch in #40395 ?

We will need that for sanity checks to pass

The credentials object potentially holds a reference to a proc
when composed with CallCredentials.

We need the proc to live so that when requests build the credentials
the proc can still be invoked.  For the proc to live we need the
credentials object to live so it needs to be marked by the channel.

Co-authored-by: Ufuk Kayserilioglu <ufuk.kayserilioglu@shopify.com>
Co-authored-by: Peter Zhu <peter.zhu@shopify.com>
Co-authored-by: Kevin Menard <kevin.menard@shopify.com>
Copy link
Contributor

@sampajano sampajano left a comment

Choose a reason for hiding this comment

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

+1 :)

@copybara-service copybara-service bot closed this in a86826d Aug 6, 2025
apolcyn pushed a commit to apolcyn/grpc that referenced this pull request Aug 6, 2025
The credentials object potentially holds a reference to a proc when composed with CallCredentials.

We need the proc to live so that when requests build the credentials the proc can still be invoked.  For the proc to live we need the credentials object to live so it needs to be marked by the channel.

This addresses grpc#40368

Closes grpc#40394

COPYBARA_INTEGRATE_REVIEW=grpc#40394 from Shopify:rwstauner/mark-channel-creds d1d58eb
PiperOrigin-RevId: 791494166
apolcyn added a commit that referenced this pull request Aug 6, 2025
…40397)

Backport #40394 to v1.74.x

Co-authored-by: Randy Stauner <randy.stauner@shopify.com>
eugeneo pushed a commit to eugeneo/grpc that referenced this pull request Aug 11, 2025
The credentials object potentially holds a reference to a proc when composed with CallCredentials.

We need the proc to live so that when requests build the credentials the proc can still be invoked.  For the proc to live we need the credentials object to live so it needs to be marked by the channel.

This addresses grpc#40368

Closes grpc#40394

COPYBARA_INTEGRATE_REVIEW=grpc#40394 from Shopify:rwstauner/mark-channel-creds d1d58eb
PiperOrigin-RevId: 791494166
paulosjca pushed a commit to paulosjca/grpc that referenced this pull request Aug 23, 2025
The credentials object potentially holds a reference to a proc when composed with CallCredentials.

We need the proc to live so that when requests build the credentials the proc can still be invoked.  For the proc to live we need the credentials object to live so it needs to be marked by the channel.

This addresses grpc#40368

Closes grpc#40394

COPYBARA_INTEGRATE_REVIEW=grpc#40394 from Shopify:rwstauner/mark-channel-creds d1d58eb
PiperOrigin-RevId: 791494166
asheshvidyut pushed a commit to asheshvidyut/grpc that referenced this pull request Sep 12, 2025
The credentials object potentially holds a reference to a proc when composed with CallCredentials.

We need the proc to live so that when requests build the credentials the proc can still be invoked.  For the proc to live we need the credentials object to live so it needs to be marked by the channel.

This addresses grpc#40368

Closes grpc#40394

COPYBARA_INTEGRATE_REVIEW=grpc#40394 from Shopify:rwstauner/mark-channel-creds d1d58eb
PiperOrigin-RevId: 791494166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/ruby 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.

5 participants