Skip to content

docs(option): add warning about externally-provided credentials #2978

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

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

quartzmo
Copy link
Member

@quartzmo quartzmo commented Jan 23, 2025

@quartzmo quartzmo requested a review from a team as a code owner January 23, 2025 20:34
// Google APIs can compromise the security of your systems and data. For
// more information, refer to [Validate credential configurations from
// external sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
//
// Deprecated: Use WithCredentialsFile instead.
func WithServiceAccountFile(filename string) ClientOption {

Choose a reason for hiding this comment

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

does this method accept only service account or any file?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is a deprecated method. It was probably deprecated because the name was too limited. It now delegates to WithCredentialsFile.

Choose a reason for hiding this comment

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

Got it

@quartzmo quartzmo merged commit 45c3513 into googleapis:main Jan 23, 2025
4 checks passed
@quartzmo quartzmo deleted the option-warning branch January 23, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants