person_detection_int8_vela_convert.sh installs Vela with the venv's seeded pip before upgrading it
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- build-system, security
Hướng nghiên cứu
Bắt đầu với tensorflow/lite/micro/tools/make/ext_libs/person_detection_int8_vela_convert.sh, đặc biệt là phần thiết lập venv và cài đặt pip quanh các dòng 61–64. Đọc hướng dẫn Python được liên kết, sau đó kiểm tra cách script có thể cài đặt và xác minh pip 26.2.2 trở lên mà không phụ thuộc vào kho chứng chỉ tin cậy có sẵn của pip. Công việc hoàn tất khi venv mới nâng cấp pip trước khi cài NumPy và Vela, đồng thời bật xác minh TLS; kiểm tra hồi quy được đề xuất có thể xác minh hành vi với pip có sẵn phiên bản cũ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
tensorflow/lite/micro/tools/make/ext_libs/person_detection_int8_vela_convert.sh creates a fresh venv and installs NumPy and Vela with the pip that python3 -m venv seeds from the interpreter's ensurepip (:61-64):
python3 -m venv $TEMPFILE
source $TEMPFILE/bin/activate
pip install numpy==1.26.4 >&2
pip install --prefer-binary ethos-u-vela >&2
pip loads its vendored certifi bundle in addition to the system trust store, so the downloads trust whatever roots the seeded pip shipped with. After the eMudhra/emSign incident, the Python maintainers' guidance is that pip must be at least 26.2.2, and that until the CPython ensurepip fix ships, pip should be upgraded in every new venv before it is used: https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576/1. Upgrading the parent environment or the OS trust store does not change the pip inside the new venv.
The script runs when ethos_u.inc:82 converts the person-detection model and ethos-u-vela is not already installed, for example in Corstone-300 builds with CO_PROCESSOR=ethos_u (test_cortex_m_corstone_300.sh:39).
Observed
We found this in heliaRT (Ambiq's TFLM fork), which carries this script unchanged. In our CI image, the ensurepip wheel holds pip 23.0.1 with certifi 2022.12.07, which still includes the distrusted emSign ECC Root CA - G3. We measured this in our image only, not in upstream's CI images or runners. The script is unchanged at tensorflow/tflite-micro@0f3f6012.
Suggested fix
After creating the venv, install a fixed pip (>= 26.2.2) in a way that does not depend on the old pip's trust store (for example a hash-pinned wheel, as the guidance above does), check its version, then install NumPy and Vela. TLS verification stays enabled throughout. I can send a PR with a regression check that seeds the venv with an old pip.
- Ngôn ngữ chính
- C++
- Star
- 3.1k
- Fork
- 1.1k
- Merge trung bình
- 1 ngày 48 phút
- Pull request đã merge (30 ngày)
- 83
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tensorflow/tflite-micro
-
Update linux-x86-n2-16 runers to linux-x86-n4-16Có thể đã có người làm @veblush đã nhận 16 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 73/100
tensorflow/tflite-micro#3895 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Hardening Request Optional bounds-validation for Slice kernel when processing untrusted modelsĐang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 15/100
tensorflow/tflite-micro#3984 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type:feature
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
tensorflow/tflite-micro#3982 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve layer_by_layer_debugger for use with models using DECODECó thể đã có người làm @ddavis-2015 đã nhận 5 ngày trước. Đang mởtype:bug
tensorflow/tflite-micro#3977 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type:cleanup
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
tensorflow/tflite-micro#3974 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của tensorflow/tflite-micro
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
-
area:qmc bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ysql kind/bug priority/medium status/awaiting-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
yugabyte/yugabyte-db#37523 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Let agents name their jobsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100