Skip to content

fix(auth): Update http and grpc transports to support token exchange over mTLS#10397

Merged
gcf-merge-on-green[bot] merged 12 commits intogoogleapis:mainfrom
andyrzhao:master
Jun 28, 2024
Merged

fix(auth): Update http and grpc transports to support token exchange over mTLS#10397
gcf-merge-on-green[bot] merged 12 commits intogoogleapis:mainfrom
andyrzhao:master

Conversation

@andyrzhao
Copy link
Copy Markdown
Contributor

This fixes a regression in the new Golang Auth lib. The default http client used for OAuth2 token exchange (for both http and grpc transport) should be configured for mTLS (including switching endpoints) when certificate source is available (whether from default cert source or explicitly configured).

@andyrzhao andyrzhao requested a review from a team June 20, 2024 18:07
@quartzmo
Copy link
Copy Markdown
Member

Are you planning to add unit test coverage for the changes in this PR?

@andyrzhao
Copy link
Copy Markdown
Contributor Author

Are you planning to add unit test coverage for the changes in this PR?

I will add some basic unit test coverage for the exported functions. I believe we need some functional tests at some point for thoroughly testing the mTLS behavior - it's so complicated now with S2A in the mix and also workload federation coming down the pipes - let me know if you have any thoughts on how to structure those. Thanks!

@andyrzhao andyrzhao requested a review from codyoss June 27, 2024 21:29
@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label Jun 28, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit c6dfdcf into googleapis:main Jun 28, 2024
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jun 28, 2024
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.

3 participants