Investigate use of M2Crypto in postgres workflow

Offen
#424 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
1/100
Issue-Typ
Refactoring
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
cryptography, postgresql, python
Bereich
backend, databases

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

❌ 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

Vorherrschende Sprache
Python
Sterne
15
Forks
27
Ø Merge
6 T. 44 Min.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus learningequality/morango

Alle Issues in learningequality/morango

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.