You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] salt.utils.crypt can use wrong crypto library #60215
bugbroken, incorrect, or confusing behaviorbugfix-bckportwill be be back-ported to an older release branch by creating a PR against that branchseverity-high2nd top severity, seen by most users, causes major problems
In the salt.crypt module we use some logic to determine which crypto library we are using. The logic tries M2Crypto, PyCryptodomex, then PyCrypto. The imports in salt.utils.crypt do not try to import M2Crypto or PyCryptodomex. This can have negative side effects. I observed code in the salt.utils.vt.Terminal stuck after forking because it was calling Crypto.Random.reinit via the salt.utils.crypt.reinit_crypto even though PyCryptodomex is installed (PyCryptodomex's version of this method is a no-op).
Setup
Install both PyCryptdomex and PyCrypto on the same system. Run cloud deployments.
Expected behavior
salt.utils.crypto sould not try to import PyCrypto when PyCryptodomex is installed.
Screenshots
If applicable, add screenshots to help explain your problem.
bugbroken, incorrect, or confusing behaviorbugfix-bckportwill be be back-ported to an older release branch by creating a PR against that branchseverity-high2nd top severity, seen by most users, causes major problems
Activity