traceloop / traceloop/openllmetry

๐Ÿ› Bug Report: cuid dependency raises sonatype issue sonatype-2023-2645

Open
#4,155 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.4k
Forks
1.1k
Avg merge
8d 14h
Merged PRs (30d)
2

Description

Which component is this bug for?

Traceloop SDK

๐Ÿ“œ Description

cuid package set as dependency has known security issues that led to deprecating the original package and results into sonatype error sonatype-2023-2645.

This causes Sonatype to put traceloop-sdk in quarantine and avoid install on business environments.

A cuid2 package is available with various porting, including Cuid2 for Python.

traceloop-sdk package seems to use cuid just in lines in packages/traceloop-sdk/traceloop/sdk/experiment/experiment.py file lines 125 and 310 so impact should be minimal.

๐Ÿ‘Ÿ Reproduction steps

reproduction is obtain by installing the latest traceloop-sdk version 0.60.0:

pip install traceloop-sdk
Looking in indexes: https:///repository/pipy.org-group/simple
Collecting traceloop-sdk
Using cached https:///repository/pipy.org-group/packages/traceloop-sdk/0.60.0/traceloop_sdk-0.60.0-py3-none-any.whl (88 kB)
Requirement already satisfied: aiohttp<4,>=3.11.11 in c:\users\j18338-cyberark\repo\ca_r4296_be_vendor_connector.venv\lib\site-packages (from traceloop-sdk) (3.13.5)
Requirement already satisfied: colorama<0.5.0,>=0.4.6 in c:\users\j18338-cyberark\repo\ca_r4296_be_vendor_connector.venv\lib\site-packages (from traceloop-sdk) (0.4.6)
Collecting cuid<0.5,>=0.4 (from traceloop-sdk)
ERROR: HTTP error 403 while getting https:///repository/pipy.org-group/packages/cuid/0.4/cuid-0.4.tar.gz#sha256=74eaba154916a2240405c3631acee708c263ef8fa05a86820b87d0f59f84e978 (from https://repository/pipy.org-group/simple/cuid/)

[notice] A new release of pip is available: 25.1.1 -> 26.1.1
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: Could not install requirement cuid<0.5,>=0.4 from https://it/repository/pipy.org-group/packages/cuid/0.4/cuid-0.4.tar.gz#sha256=74eaba154916a2240405c3631acee708c263ef8fa05a86820b87d0f59f84e978 (fro
m traceloop-sdk) because of HTTP error 403 Client Error: -------------------->>> Requested item is quarantined -------------------->>> FOR DETAILS SEE ------>>> https://nexusfirewall.cariprpc.it/ui/links/malware-defense
/repositories/quarantinedComponent/NmFiZmM1Y2Q1YTFiNDNlOGE0ODc3YTExNzdhNTIzYjQ <<<------ for url: https:///repository/pipy.org-group/packages/cuid/0.4/cuid-0.4.tar.gz for URL https:///repository/pipy.org-group/packages/cuid/0.4/cuid-0.4.tar.gz#sha256=74eaba154916a2240405c3631acee708c263ef8fa05a86820b87d0f59f84e978 (from https:///repository/pipy.org-group/simple/cuid/)

๐Ÿ‘ Expected behavior

traceloop should depend on cuid2 to solve the issue

๐Ÿ‘Ž Actual Behavior with Screenshots
Image
๐Ÿค– Python Version

3.11

๐Ÿ“ƒ Provide any additional context for the Bug.

No response

๐Ÿ‘€ Have you spent some time to check if this bug has been raised before?
  • I checked and didn't find similar issue
Are you willing to submit PR?

Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up โ€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/traceloop-sdk/traceloop/sdk/experiment/experiment.py at the cited lines 125 and 310, then locate the package's dependency declaration for cuid. Replace the dependency while preserving the experiment identifier behavior, and verify that traceloop-sdk installs without the quarantined package and that the affected experiment paths still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.