Investigate use of M2Crypto in postgres workflow

未关闭
#424 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
1/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
cryptography, postgresql, python
领域
backend, databases

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

❌ 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

主要语言
Python
星标
15
派生
27
平均合并
6 天 44 分钟
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

learningequality/morango 的其他 Issue

查看 learningequality/morango 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。