GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: additional information for deprecated fromStream() methods. by diegomarquezp · Pull Request #1802 · googleapis/google-auth-library-java

This repository was archived by the owner on May 12, 2026. It is now read-only.

Conversation

@diegomarquezp

@diegomarquezp diegomarquezp commented Sep 17, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Follows up on recent changes of #1798 by adding additional instructions on generic fromStream() methods and explaining the security risk of using these.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@diegomarquezp
diegomarquezp requested review from a team September 17, 2025 16:07
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Sep 17, 2025
@diegomarquezp
docs: additional instructions for obsolete methods
1edfa78
@diegomarquezp
diegomarquezp force-pushed the fix-non-validated-credential-warning branch from 09d8736 to 1edfa78 Compare September 17, 2025 16:08
@diegomarquezp

diegomarquezp commented Sep 17, 2025

Copy link
Copy Markdown
Contributor Author

Force pushed a rebase on main given a duplicate change from a similar PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@diegomarquezp
diegomarquezp requested review from jinseopkim0 and lqiu96 September 17, 2025 16:12
jinseopkim0
jinseopkim0 previously approved these changes Sep 17, 2025
View reviewed changes
lqiu96
lqiu96 reviewed Sep 17, 2025
View reviewed changes
Comment thread oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

lqiu96
lqiu96 reviewed Sep 17, 2025
View reviewed changes
Comment thread oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java Outdated
Comment on lines +196 to +199
* This method is obsolete because of a potential security risk. Use the credential specific load
* method instead
*
* <p>Returns credentials defined by a JSON file stream.

@lqiu96 lqiu96 Sep 17, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Can we combine the two added sections together?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@diegomarquezp diegomarquezp Sep 17, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done. I added the "Returns credentials" sentence before the obsolete method sentence, in a single paragraph.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@lqiu96 lqiu96 Sep 17, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Apologies, I meant can you move these lines to below the

<p>The stream can contain a Service Account key file in JSON format from the Google Developers Console or a stored user credential using the format supported by the Cloud SDK.

line? Or move L204-L226 up?

This way, the warnings about the security vulnerability is together.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

diegomarquezp reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
lqiu96
lqiu96 previously approved these changes Sep 17, 2025
View reviewed changes

@lqiu96 lqiu96 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM. Added some small nits to make this more Java specific

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

diegomarquezp reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@diegomarquezp @lqiu96
Update oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java
c04265d
Co-authored-by: Lawrence Qiu <[email protected]>
@diegomarquezp
diegomarquezp dismissed stale reviews from lqiu96 and jinseopkim0 via c04265d September 17, 2025 17:12
diegomarquezp added 2 commits September 17, 2025 13:14
@diegomarquezp
chore: fix nits
1225353
@diegomarquezp
chore: move warning to beginning of javadoc
6b35a16
@sonarqubecloud

sonarqubecloud Bot commented Sep 17, 2025

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lqiu96
lqiu96 approved these changes Sep 17, 2025
View reviewed changes
@diegomarquezp diegomarquezp added the automerge Merge the pull request once unit tests and other checks pass. label Sep 17, 2025
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit a0d873d into main Sep 17, 2025
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 17, 2025
@gcf-merge-on-green
gcf-merge-on-green Bot deleted the fix-non-validated-credential-warning branch September 17, 2025 17:42
@release-please release-please Bot mentioned this pull request Sep 17, 2025
chore(main): release 1.39.1 #1803
Merged
svc-squareup-copybara pushed a commit to cashapp/misk that referenced this pull request Sep 18, 2025
@github-cash-renovate-jvm @svc-squareup-copybara
This PR contains the following updates:
cb31980
| Package | Type | Package file | Manager | Update | Change |
|---|---|---|---|---|---|
|
[app.cash.tempest:tempest-testing-jvm](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
|
[app.cash.tempest:tempest-testing-internal](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
|
[app.cash.tempest:tempest-testing-docker](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
| [app.cash.tempest:tempest-testing](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
| [app.cash.tempest:tempest-bom](https://github.com/cashapp/tempest) |
dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
|
[app.cash.tempest:tempest2-testing-jvm](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
|
[app.cash.tempest:tempest2-testing-internal](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
|
[app.cash.tempest:tempest2-testing-docker](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
|
[app.cash.tempest:tempest2-testing](https://github.com/cashapp/tempest)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2025.07.15.155806-c1415e3` -> `2025.09.18.063705-9bd8953` |
| [com.google.guava:guava-testlib](https://github.com/google/guava) |
dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`33.4.8-jre` -> `33.5.0-jre` |
| [com.google.guava:guava-bom](https://github.com/google/guava) |
dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`33.4.8-jre` -> `33.5.0-jre` |
| [com.google.guava:guava](https://github.com/google/guava) |
dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`33.4.8-jre` -> `33.5.0-jre` |
|
[com.google.auth:google-auth-library-oauth2-http](https://github.com/googleapis/google-auth-library-java)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`1.39.0` -> `1.39.1` |
|
[com.google.auth:google-auth-library-credentials](https://github.com/googleapis/google-auth-library-java)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`1.39.0` -> `1.39.1` |
|
[com.autonomousapps.dependency-analysis](https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin)
| plugin | misk/gradle/libs.versions.toml | gradle | patch | `3.0.3` ->
`3.0.4` |
| [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
| [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
| [software.amazon.awssdk:s3](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
| [software.amazon.awssdk:regions](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
|
[software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
| [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
| [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
| [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |
| [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.33.11` -> `2.33.12` |

---

### Release Notes

<details>
<summary>googleapis/google-auth-library-java
(com.google.auth:google-auth-library-oauth2-http)</summary>

###
[`v1.39.1`](https://github.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#1391-2025-09-17)

##### Documentation

- Additional information for deprecated fromStream() methods.
([#&#8203;1802](googleapis/google-auth-library-java#1802))
([a0d873d](googleapis/google-auth-library-java@a0d873d))

</details>

<details>
<summary>autonomousapps/dependency-analysis-android-gradle-plugin
(com.autonomousapps.dependency-analysis)</summary>

###
[`v3.0.4`](https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/blob/HEAD/CHANGELOG.md#Version-304)

- \[Fix] Remove auto-applied kotlin-stdlib for Gradle 8.11 support.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am
every weekday" in timezone Australia/Melbourne, Automerge - At any time
(no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

GitOrigin-RevId: a0aac7958dd638e9cdafbc7442f692668107c2ae
@diegomarquezp diegomarquezp mentioned this pull request Sep 22, 2025
fix(sec): warn users of unsafe credential generation methods googleapis/google-api-java-client#2604
Merged
@release-please release-please Bot mentioned this pull request Dec 11, 2025
chore(protobuf-4.x-rc): release 1.42.0-rc1 #1861
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@lqiu96 lqiu96 lqiu96 approved these changes
@jinseopkim0 jinseopkim0 jinseopkim0 left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@diegomarquezp @lqiu96 @jinseopkim0
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.