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

fix: create and reuse self signed jwt creds for better performance #1154

Merged
merged 2 commits into from Feb 14, 2023

Conversation

arithmetic1728
Copy link
Collaborator

@arithmetic1728 arithmetic1728 commented Feb 12, 2023

GAPIC clients all use self signed jwt (with scopes) now. Currently we are creating a new jwt credential each time, and this causes perf issue, similar to googleapis/google-cloud-java#3149.

In this PR we create one jwt cred and reuse it each time.
Internal bug: b/268603529

@arithmetic1728 arithmetic1728 requested a review from a team as a code owner February 12, 2023 02:10
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Feb 12, 2023
Copy link
Member

@TimurSadykov TimurSadykov left a comment

Choose a reason for hiding this comment

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

LGTM

@arithmetic1728 arithmetic1728 merged commit eaaa8e8 into main Feb 14, 2023
@arithmetic1728 arithmetic1728 deleted the jwt_cache branch February 14, 2023 18:28
gcf-merge-on-green bot pushed a commit that referenced this pull request Feb 15, 2023
🤖 I have created a release *beep* *boop*
---


## [1.16.0](https://togithub.com/googleapis/google-auth-library-java/compare/v1.15.0...v1.16.0) (2023-02-15)


### Features

* Add PKCE to 3LO exchange. ([#1146](https://togithub.com/googleapis/google-auth-library-java/issues/1146)) ([5bf606b](https://togithub.com/googleapis/google-auth-library-java/commit/5bf606bb8f6d863b44e87587eebf51eaeea4a0ae))


### Bug Fixes

* Create and reuse self signed jwt creds for better performance ([#1154](https://togithub.com/googleapis/google-auth-library-java/issues/1154)) ([eaaa8e8](https://togithub.com/googleapis/google-auth-library-java/commit/eaaa8e89cf69d1e0d581443121f315854d52c75f))
* Java doc for DefaultPKCEProvider.java ([#1148](https://togithub.com/googleapis/google-auth-library-java/issues/1148)) ([154c127](https://togithub.com/googleapis/google-auth-library-java/commit/154c1279b3ec96cc34a3225e5e78800ccdda927c))
* Removed url pattern validation for google urls in external account credential configurations ([#1150](https://togithub.com/googleapis/google-auth-library-java/issues/1150)) ([35495b1](https://togithub.com/googleapis/google-auth-library-java/commit/35495b1207ffe11712ee996d3e305449752fb87c))


### Documentation

* Clarified Maven artifact for HTTP-based clients ([#1136](https://togithub.com/googleapis/google-auth-library-java/issues/1136)) ([b49fc13](https://togithub.com/googleapis/google-auth-library-java/commit/b49fc13b10d0e326c7296e2aad7a50ea03e774f5))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
TimurSadykov pushed a commit that referenced this pull request Feb 17, 2023
…1154)

* fix: create and reuse self signed jwt creds for better performance

* only create jwt cred when needed
TimurSadykov added a commit that referenced this pull request Feb 17, 2023
TimurSadykov pushed a commit that referenced this pull request Feb 17, 2023
…1154)

* fix: create and reuse self signed jwt creds for better performance

* only create jwt cred when needed
TimurSadykov pushed a commit that referenced this pull request Feb 17, 2023
…1154)

* fix: create and reuse self signed jwt creds for better performance

* only create jwt cred when needed
TimurSadykov pushed a commit that referenced this pull request Feb 17, 2023
…1154)

* fix: create and reuse self signed jwt creds for better performance

* only create jwt cred when needed
TimurSadykov pushed a commit that referenced this pull request Feb 17, 2023
…1154)

* fix: create and reuse self signed jwt creds for better performance

* only create jwt cred when needed
arithmetic1728 added a commit that referenced this pull request Feb 18, 2023
…1154) (#1166)

* fix: create and reuse self signed jwt creds for better performance

* only create jwt cred when needed

Co-authored-by: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants