Closed hrjn closed 1 month ago
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
Package | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|
pypi/google-auth@2.27.0 | environment, eval, filesystem, network, shell, unsafe | +121 |
596 MB | gcloudpypi, google_opensource |
🚮 Removed packages: pypi/google-auth@2.32.0)
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎
To accept the risk, merge this PR and you will not be notified again.
Alert | Package | Note | Source | CI |
---|---|---|---|---|
AI warning | pypi/pyu2f@0.1.5 |
| ⚠︎ | |
AI warning | pypi/aiohttp@3.10.5 |
| ⚠︎ |
AI has identified unusual behaviors that may pose a security risk.
An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.
Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.
If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.
To ignore an alert, reply with a comment starting with @SocketSecurity ignore
followed by a space separated list of ecosystem/package-name@version
specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0
or ignore all packages with @SocketSecurity ignore-all
@SocketSecurity ignore pypi/pyu2f@0.1.5
@SocketSecurity ignore pypi/aiohttp@3.10.5
These changes originate from some feedback highlighting the challenges of using the Python SDK in a Google Colab environment.
Issues
The default environment of a Colab notebook comes with the
google.colab
package, which has a pinned version of thegoogle.auth
package in its dependencies (source). Trying to run!pip install mistralai[gcp]>=1.0.0
will result in the following error:Colab notebooks do not allow users to fully interact with the underlying shell session via a terminal. The Python SDK relies on the
gcloud
CLI for authentication, but it is impossible to run the authentication process end-to-end using only!
commands, even withgcloud auth application-default login --no-launch-browser
because there is no way for the user to add inputs to a running cell:Fixes
google-auth to 2.27.0
access_token
toMistralGoogleCloud()
which is generated separately by the user.Sample code to test in a Colab notebook: