diff --git a/src/Credentials/ExternalAccountCredentials.php b/src/Credentials/ExternalAccountCredentials.php index c0306ee80..afaf1ee3f 100644 --- a/src/Credentials/ExternalAccountCredentials.php +++ b/src/Credentials/ExternalAccountCredentials.php @@ -35,6 +35,15 @@ use GuzzleHttp\Psr7\Request; use InvalidArgumentException; +/** + * **IMPORTANT**: + * This class does not validate the credential configuration. A security + * risk occurs when a credential configuration configured with malicious urls + * is used. + * When the credential configuration is accepted from an + * untrusted source, you should validate it before creating this class. + * @see https://cloud.google.com/docs/authentication/external/externally-sourced-credentials + */ class ExternalAccountCredentials implements FetchAuthTokenInterface, UpdateMetadataInterface, diff --git a/src/Credentials/ImpersonatedServiceAccountCredentials.php b/src/Credentials/ImpersonatedServiceAccountCredentials.php index a44b11363..f473f8ebf 100644 --- a/src/Credentials/ImpersonatedServiceAccountCredentials.php +++ b/src/Credentials/ImpersonatedServiceAccountCredentials.php @@ -30,6 +30,15 @@ use InvalidArgumentException; use LogicException; +/** + * **IMPORTANT**: + * This class does not validate the credential configuration. A security + * risk occurs when a credential configuration configured with malicious urls + * is used. + * When the credential configuration is accepted from an + * untrusted source, you should validate it before creating this class. + * @see https://cloud.google.com/docs/authentication/external/externally-sourced-credentials + */ class ImpersonatedServiceAccountCredentials extends CredentialsLoader implements SignBlobInterface, GetUniverseDomainInterface