Investigate use of M2Crypto in postgres workflow

Đang mở
#424 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
1/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cryptography, postgresql, python
Lĩnh vực
backend, databases

Hướng nghiên cứu

This issue is explicitly marked as not open for contribution, so it is not a suitable first issue. To investigate the proposed change, read the postgres and accelerated extras and [testenv:postgres] in tox.ini, then inspect the Key selection in morango/models/fields/crypto.py. Done means confirming CI still covers M2CryptoKey after removing M2Crypto from the postgres extra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

❓ Question: Is M2Crypto still needed in the postgres extra for 0.9.0, or can a follow-up keep it only in accelerated?

Both postgres and accelerated already install cryptography==40.0.2, and Key in morango/models/fields/crypto.py selects CryptographyKey whenever cryptography imports cleanly. Meanwhile, M2Crypto versions below 0.51.0 carry CVE-2026-109087 (CVSS 7.4 in M2Crypto.SSL.Checker, which Morango does not import), and 0.46.0 through 0.51.0 cannot be pinned across all supported runtimes because their pyproject.toml [build-system] omits setuptools on Python 3.7 and 3.8.

Because [testenv:postgres] in tox.ini already lists both postgres and accelerated, removing M2Crypto from postgres in a follow-up would keep CI coverage for M2CryptoKey while sparing downstream morango[postgres] installs from SWIG source builds and scanner alerts on 0.45.1:

postgres = [
    "cryptography==40.0.2",
    "psycopg2-binary>=2.9.8,<=2.9.9",
]

Originally posted by @bjesterbot in #423

Ngôn ngữ chính
Python
Star
15
Fork
27
Merge trung bình
6 ngày 44 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của learningequality/morango

Tất cả issue của learningequality/morango

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.