Investigate use of M2Crypto in postgres workflow

オープン
#424 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

learningequality/morango のほかの issue

learningequality/morango の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。