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 — fix: indicate non-validated external credentials in generic methods by diegomarquezp · Pull Request #1798 · 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 3, 2025 •
edited by lqiu96
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Changes summary

  • GoogleCredentials' generic methods for loading from stream have been marked with @ObsoleteApi due to lack of validation.
  • ImpersonatedCredentials and ExternalAccountCredentials fromJson() methods now have a javadoc indicating the lack of validation.

Observations

  • GoogleCredentials already had a warning on the lack of validation in their fromStream() methods.
  • ImpersonatedCredentials fromJson() method delegates to the concrete fromJson() methods, meaning an obsolete api annotation is not necessary.
  • ExternalAccountCredentials fromJson() method delegates to the AutoValue builders, meaning an obsolete api annotation is not necessary.

BEGIN_COMMIT_OVERRIDE

BEGIN_NESTED_COMMIT
fix: indicate non-validated external credentials in generic methods
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
deps: add com.google.api:api-commons dependency
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
deps: update com.google.errorprone:error_prone_annotations dependency to 2.38.0
END_NESTED_COMMIT

END_COMMIT_OVERRIDE

Sorry, something went wrong.

Uh oh!

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

All reactions
@diegomarquezp
fix: indicate non-validated external credentials in generic methods
ea94817
Credential-specific methods are safe to use give their validation.
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Sep 3, 2025
diegomarquezp added 3 commits September 3, 2025 15:43
@diegomarquezp
chore: remove unused import
9f22e72
@diegomarquezp
deps: exclude conflicting dependencies
4c8e141
@diegomarquezp
chore: lint
da8381a
@diegomarquezp
diegomarquezp marked this pull request as ready for review September 3, 2025 20:09
@diegomarquezp
diegomarquezp requested review from a team September 3, 2025 20:09
@diegomarquezp diegomarquezp assigned lqiu96 Sep 3, 2025
@lqiu96 lqiu96 removed their assignment Sep 3, 2025
@lqiu96
lqiu96 self-requested a review September 3, 2025 20:45
lqiu96
lqiu96 reviewed Sep 3, 2025
View reviewed changes
Comment thread pom.xml Resolved

Uh oh!

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

@lqiu96

lqiu96 commented Sep 3, 2025

Copy link
Copy Markdown
Member

This will be out of phase by one release of sdk-platform-java due to a circular dependency.
However, this library is stable and we don't expect changes to happen more than a few times per year.

Can you remove this from the commit message/ release notes page? I think this would be moreso implementation detail for us. If anything, I think we can manually add this to the github release page when the auth library is released.

Also, can you add a similar description to our README here with what we have in gax for these annotations? https://github.com/googleapis/sdk-platform-java/blob/f18318660c05d0d8466e3ead7127f0747fac2e2e/gax-java/README.md?plain=1#L89-L113

diegomarquezp reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@diegomarquezp
docs: indicate versioning characteristics of the repository, includin…
f2c323b
…g @ObsoleteApi
@diegomarquezp

diegomarquezp commented Sep 3, 2025

Copy link
Copy Markdown
Contributor Author

@lqiu96 Thanks for your review. I have added a small section in the README ("Versioning") and modified the description to avoid exposing too much detail on the api-commons dependency.

All reactions

Sorry, something went wrong.

Uh oh!

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

@diegomarquezp
diegomarquezp requested a review from lqiu96 September 4, 2025 15:41
lqiu96
lqiu96 reviewed Sep 4, 2025
View reviewed changes
Comment thread README.md Resolved

Uh oh!

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

@lqiu96

lqiu96 commented Sep 4, 2025

Copy link
Copy Markdown
Member

Changes LGTM. Just a few things to check out and smaller notes to add. I would love to add this as part of the v1.39.0 release.

All reactions

Sorry, something went wrong.

Uh oh!

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

@diegomarquezp
docs: update versioning section with API stability annotations
4082e4e
Also includes a note on possible deprecation upon critical bugs and vulnerabilities
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Sep 4, 2025
lqiu96
lqiu96 reviewed Sep 4, 2025
View reviewed changes
Comment thread README.md Resolved

Uh oh!

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

diegomarquezp and others added 3 commits September 4, 2025 15:12
@diegomarquezp @lqiu96
docs: simplify note on critical fixes
0261d6d
Co-authored-by: Lawrence Qiu <[email protected]>
@diegomarquezp
deps: update error-prone.version to 2.38.0 and guava.version to 33.4.…
d76a6af
…0-jre

>
> This is in order to align with the versions declared in https://github.com/googleapis/sdk-platform-java/blob/main/gapic-generator-java-pom-parent/pom.xml
@diegomarquezp
docs: reorder versioning subsections
fc4c079
Obsolete and Internal Api go first now, since they are more important
@diegomarquezp diegomarquezp added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 4, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 4, 2025
@diegomarquezp
diegomarquezp requested a review from lqiu96 September 4, 2025 19:47
@diegomarquezp
deps: use guava-android instead and exclude guava-jre from api-common
696780f
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 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 reviewed Sep 4, 2025
View reviewed changes
Comment thread pom.xml
Comment on lines +203 to +208
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>

@lqiu96 lqiu96 Sep 4, 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.

@diegomarquezp I meant if you can add a comment about the exclusion into the pom.xml and not in the release notes.

I think us deciding the exclude guava is more of a implementation detail for us and not relevant for users.

Sorry, something went wrong.

Uh oh!

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

All reactions

@lqiu96 lqiu96 Sep 4, 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.

Oh nvm, I see you have removed it. Just a comment here and LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions

@diegomarquezp diegomarquezp Sep 4, 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.

Followed up on #1800

Sorry, something went wrong.

Uh oh!

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

All reactions
lqiu96
lqiu96 approved these changes Sep 4, 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.

Changes LGTM. One final comment

Sorry, something went wrong.

Uh oh!

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

All reactions
@blakeli0
blakeli0 merged commit e7d4380 into main Sep 4, 2025
@blakeli0
blakeli0 deleted the warn-non-validated-credential-load branch September 4, 2025 21:03
diegomarquezp added a commit that referenced this pull request Sep 4, 2025
@diegomarquezp
chore: follow up of #1798
9a5f2f4
@diegomarquezp diegomarquezp mentioned this pull request Sep 4, 2025
chore: follow up of #1798 #1800
Merged
diegomarquezp added a commit that referenced this pull request Sep 5, 2025
@diegomarquezp
chore: follow up of #1798 (#1800)
2856b87
This was referenced Sep 17, 2025
docs: additional information for deprecated fromStream() methods. #1802
Merged
fix(sec): warn users of unsafe credential generation methods googleapis/google-api-java-client#2604
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@lqiu96 lqiu96 lqiu96 approved these changes
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.

4 participants

@diegomarquezp @lqiu96 @blakeli0 @yoshi-kokoro
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.