At work, I was upgrading the crypton-x509* packages to avoid the vulnerabilities published in the HSEC advisory. The new versions of these packages released with the fixes now depend on ram instead of memory which was kind of an issue because many packages still use memory over ram.
While I have upgraded / forked all the packages that bring in the cryptonite-verse, it’s still possible that a new cabal plan can still bring them into the closure, so here’s how I am currently outlawing dependencies bringing in cryptonite, memory, asn1-*.
-- file: cabal.project.local
constraints:
cryptonite < 0,
memory < 0,
crypto-pubkey-types < 0,
asn1-types < 0,
asn1-encoding < 0,
asn1-parse < 0,
hourglass < 0,
pem < 0
you can also directly import this gist that has the same constraints
-- file: cabal.project.local
import: https://gist.githubusercontent.com/pranaysashank/11fb5bc36b0c71ba7f69e8e2d980340f/raw/no-cryptonite-memory-asn1-universe.project