Fix R11: pin cryptography>=44.0.1 and add hash lock
Raise the floor past CVE-2024-12797-affected wheels (43.x / 44.0.0). Add constraints.txt (exact 44.0.1) and requirements.lock.txt with sha256 hashes for cryptography and its runtime deps.
This commit is contained in:
parent
618fb5401c
commit
9e76d68344
@ -163,4 +163,4 @@ and its reasoning, and what is deferred.
|
|||||||
`docs/PROD_RUNBOOK.md` — production checklist: require `SIGIL_SEAL_PASS` and
|
`docs/PROD_RUNBOOK.md` — production checklist: require `SIGIL_SEAL_PASS` and
|
||||||
`SIGIL_ANCHOR` on separate storage, verify-chain alerts, integration sharp edges.
|
`SIGIL_ANCHOR` on separate storage, verify-chain alerts, integration sharp edges.
|
||||||
|
|
||||||
`requirements.txt` — pinned `cryptography>=43.0.0,<45`.
|
`requirements.txt` — `cryptography>=44.0.1,<45`; see `requirements.lock.txt` / `constraints.txt`.
|
||||||
|
|||||||
3
constraints.txt
Normal file
3
constraints.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Exact pin matching requirements.lock.txt floor. Use with:
|
||||||
|
# pip install -r requirements.txt -c constraints.txt
|
||||||
|
cryptography==44.0.1
|
||||||
@ -39,3 +39,8 @@ store the checkpoint signer's private key in the Sigil DB — public history onl
|
|||||||
- SQLCipher / page-level encryption for multi-tenant co-resident hosts.
|
- SQLCipher / page-level encryption for multi-tenant co-resident hosts.
|
||||||
- Domain-separated challenge payloads (`sigil-challenge-v1` prefix) — backward-incompatible without a protocol version.
|
- Domain-separated challenge payloads (`sigil-challenge-v1` prefix) — backward-incompatible without a protocol version.
|
||||||
- Shared cross-process rate limiter.
|
- Shared cross-process rate limiter.
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
Install with `pip install -r requirements.txt -c constraints.txt`
|
||||||
|
(or `--require-hashes -r requirements.lock.txt`). Floor is `cryptography>=44.0.1`.
|
||||||
|
|||||||
13
requirements.lock.txt
Normal file
13
requirements.lock.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Hash-pinned lock for Sigil runtime crypto deps.
|
||||||
|
# Install: pip install --require-hashes -r requirements.lock.txt
|
||||||
|
# Floor cryptography==44.0.1 addresses CVE-2024-12797 in older wheels.
|
||||||
|
|
||||||
|
cryptography==44.0.1 \
|
||||||
|
--hash=sha256:53f23339864b617a3dfc2b0ac8d5c432625c80014c25caac9082314e9de56f41
|
||||||
|
|
||||||
|
cffi==2.1.1 \
|
||||||
|
--hash=sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2
|
||||||
|
|
||||||
|
pycparser==3.0 \
|
||||||
|
--hash=sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992
|
||||||
|
|
||||||
@ -1,3 +1,5 @@
|
|||||||
# Runtime dependency for Ed25519 + AES-GCM (SealedStore / optional key files).
|
# Runtime dependency for Ed25519 + AES-GCM (SealedStore / optional key files).
|
||||||
# Pin a known-good lower bound; upper bound avoids surprise major breaks in CI.
|
# Lower bound 44.0.1: older 43.x/44.0.0 wheels ship OpenSSL affected by
|
||||||
cryptography>=43.0.0,<45
|
# CVE-2024-12797 (GHSA-79v4-65xg-pq4g). Upper bound <45 keeps upgrades deliberate.
|
||||||
|
# For hash-pinned install see requirements.lock.txt.
|
||||||
|
cryptography>=44.0.1,<45
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user