@@ -119,6 +119,14 @@ std::shared_ptr<Credentials> MakeInsecureCredentials(Options opts = {});
119119 * service account key file, or a JSON object describing your user
120120 * credentials.
121121 *
122+ * @warning If you accept a credential configuration (credential
123+ * JSON/File/Stream) from an external source for authentication to Google Cloud
124+ * Platform, you must validate it before providing it to any Google API or
125+ * client library. Providing an unvalidated credential configuration to Google
126+ * APIs can compromise the security of your systems and data. For more
127+ * information, refer to
128+ * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials.
129+ *
122130 * @see https://cloud.google.com/docs/authentication for more information on
123131 * authentication in GCP.
124132 *
@@ -265,6 +273,14 @@ std::shared_ptr<Credentials> MakeServiceAccountCredentials(
265273 * identity provider that supports OpenID Connect (OIDC), such as Microsoft
266274 * Azure, or SAML 2.0.
267275 *
276+ * @warning If you accept a credential configuration (credential
277+ * JSON/File/Stream) from an external source for authentication to Google Cloud
278+ * Platform, you must validate it before providing it to any Google API or
279+ * client library. Providing an unvalidated credential configuration to Google
280+ * APIs can compromise the security of your systems and data. For more
281+ * information, refer to
282+ * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials.
283+ *
268284 * @see https://cloud.google.com/docs/authentication for more information on
269285 * authentication in GCP.
270286 *
0 commit comments