Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

chore: deprecate unsafe client options#1804

Closed
GautamSharda wants to merge 3 commits into
mainfrom
windy-eagle
Closed

chore: deprecate unsafe client options#1804
GautamSharda wants to merge 3 commits into
mainfrom
windy-eagle

Conversation

@GautamSharda
Copy link
Copy Markdown

@GautamSharda GautamSharda commented Sep 20, 2025

Description

Deprecates the keyFilename and credentials constructor options in ClientOptions to mitigate a security vulnerability. This change adds detailed JSDoc warnings guiding users to adopt a safer, explicit credential loading pattern by creating an auth object via google-auth-library before passing it to a client constructor.

Impact

Users relying on the keyFilename or credentials options will now see deprecation warnings in their IDEs and potentially in logs, encouraging them to migrate to the more secure credential handling mechanism.

Testing

No new tests or changed tests.

Checklist

  • b/437993913
  • Ensure the tests and linter pass
  • Code coverage does not decrease
  • Appropriate docs were updated
  • Appropriate comments were added, particularly in complex areas or
    places that require background
  • No new warnings or issues will be generated from this change

Fixes b/437993913

@GautamSharda GautamSharda requested review from a team September 20, 2025 00:51
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Sep 20, 2025
@GautamSharda GautamSharda added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 20, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 20, 2025
@GautamSharda GautamSharda added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 23, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 23, 2025
@GautamSharda GautamSharda deleted the windy-eagle branch September 23, 2025 21:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants