diff --git a/Google.Api.Gax.Grpc/ClientBuilderBase.cs b/Google.Api.Gax.Grpc/ClientBuilderBase.cs index e1591170..23cd795f 100644 --- a/Google.Api.Gax.Grpc/ClientBuilderBase.cs +++ b/Google.Api.Gax.Grpc/ClientBuilderBase.cs @@ -118,11 +118,25 @@ public abstract class ClientBuilderBase /// /// The path to the credentials file to use, or null if credentials are being provided in a different way. /// + /// + /// Important: If you accept a credential configuration (credential JSON/File/Stream) from an external source + /// for authentication to Google Cloud, you must validate it before providing it to any Google API or library. + /// Providing an unvalidated credential configuration to Google APIs can compromise the security of your + /// systems and data. For more information, refer to + /// Validate credential configurations from external sources. + /// public string CredentialsPath { get; set; } /// /// The credentials to use as a JSON string, or null if credentials are being provided in a different way. /// + /// + /// Important: If you accept a credential configuration (credential JSON/File/Stream) from an external source + /// for authentication to Google Cloud, you must validate it before providing it to any Google API or library. + /// Providing an unvalidated credential configuration to Google APIs can compromise the security of your + /// systems and data. For more information, refer to + /// Validate credential configurations from external sources. + /// public string JsonCredentials { get; set; } /// diff --git a/Google.Api.Gax.Rest/ClientBuilderBase.cs b/Google.Api.Gax.Rest/ClientBuilderBase.cs index a3522b7f..d6a371a5 100644 --- a/Google.Api.Gax.Rest/ClientBuilderBase.cs +++ b/Google.Api.Gax.Rest/ClientBuilderBase.cs @@ -27,12 +27,26 @@ public abstract class ClientBuilderBase /// The path to the credentials file to use, or null if credentials are being provided in a different way. /// The resulting credential is automatically scoped with the default scopes for the API. /// + /// + /// Important: If you accept a credential configuration (credential JSON/File/Stream) from an external source + /// for authentication to Google Cloud, you must validate it before providing it to any Google API or library. + /// Providing an unvalidated credential configuration to Google APIs can compromise the security of your + /// systems and data. For more information, refer to + /// Validate credential configurations from external sources. + /// public string CredentialsPath { get; set; } /// /// The credentials to use as a JSON string, or null if credentials are being provided in a different way. /// The resulting credential is automatically scoped with the default scopes for the API. /// + /// + /// Important: If you accept a credential configuration (credential JSON/File/Stream) from an external source + /// for authentication to Google Cloud, you must validate it before providing it to any Google API or library. + /// Providing an unvalidated credential configuration to Google APIs can compromise the security of your + /// systems and data. For more information, refer to + /// Validate credential configurations from external sources. + /// public string JsonCredentials { get; set; } ///