Skip to content

Commit c8008e8

Browse files
authored
Merge pull request #6055 from StackStorm/update/cryptography
Update cryptography and pyOpenSSL (security)
2 parents 8f6cb46 + 7520c18 commit c8008e8

File tree

9 files changed

+33
-18
lines changed

9 files changed

+33
-18
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Fixed
2222

2323
* Fix codecov failures for stackstorm/st2 tests. #6035, #6046, #6048
2424

25+
* Update cryptography 3.4.7 -> 39.0.1, pyOpenSSL 21.0.0 -> 23.1.0, paramiko 2.10.5 -> 2.11.0 (security). #6055
26+
2527
Added
2628
~~~~~
2729

contrib/runners/python_runner/python_runner/python_action_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
from __future__ import absolute_import
1717

18-
# Ignore CryptographyDeprecationWarning warnings which appear on older versions of Python 2.7
18+
# Ignore CryptographyDeprecationWarning warnings which appear on Python 3.6
19+
# TODO: Remove after dropping python3.6
1920
import warnings
20-
from cryptography.utils import CryptographyDeprecationWarning
2121

22-
warnings.filterwarnings("ignore", category=CryptographyDeprecationWarning)
22+
warnings.filterwarnings("ignore", message="Python 3.6 is no longer supported")
2323

2424
import os
2525
import sys

fixed-requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ chardet<3.1.0
77
cffi<1.15.0
88
# NOTE: 2.0 version breaks pymongo work with hosts
99
dnspython>=1.16.0,<2.0.0
10-
cryptography==3.4.7
10+
cryptography==39.0.1
1111
# Note: 0.20.0 removed select.poll() on which some of our code and libraries we
1212
# depend on rely
1313
eventlet==0.30.2
@@ -36,15 +36,16 @@ decorator==4.4.2
3636
# See https://github.com/StackStorm/st2/issues/4160#issuecomment-394386433 for details
3737
oslo.config>=1.12.1,<1.13
3838
oslo.utils<5.0,>=4.0.0
39-
paramiko==2.10.5
39+
# paramiko 2.11.0 is needed by cryptography > 37.0.0
40+
paramiko==2.11.0
4041
passlib==1.7.4
4142
prompt-toolkit==1.0.15
4243
pyinotify==0.9.6 ; platform_system=="Linux"
4344
pymongo==3.11.3
4445
pyparsing<3
4546
zstandard==0.15.2
46-
# pyOpenSSL 22.0.0 requires cryptography>=35.0
47-
pyOpenSSL<=21.0.0
47+
# pyOpenSSL 23.1.0 supports cryptography up to 40.0.x
48+
pyOpenSSL==23.1.0
4849
python-editor==1.0.4
4950
python-keyczar==0.716
5051
pytz==2021.1

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bcrypt==3.2.0
1414
cffi<1.15.0
1515
chardet<3.1.0
1616
ciso8601
17-
cryptography==3.4.7
17+
cryptography==39.0.1
1818
decorator==4.4.2
1919
dnspython>=1.16.0,<2.0.0
2020
eventlet==0.30.2
@@ -40,12 +40,12 @@ orjson==3.5.2
4040
orquesta@ git+https://github.com/StackStorm/[email protected]
4141
oslo.config>=1.12.1,<1.13
4242
oslo.utils<5.0,>=4.0.0
43-
paramiko==2.10.5
43+
paramiko==2.11.0
4444
passlib==1.7.4
4545
prettytable==2.1.0
4646
prompt-toolkit==1.0.15
4747
psutil==5.8.0
48-
pyOpenSSL<=21.0.0
48+
pyOpenSSL==23.1.0
4949
pyinotify==0.9.6 ; platform_system=="Linux"
5050
pymongo==3.11.3
5151
pyparsing<3

st2client/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
argcomplete==1.12.2
99
cffi<1.15.0
1010
chardet<3.1.0
11-
cryptography==3.4.7
11+
cryptography==39.0.1
1212
importlib-metadata==3.10.1
1313
jsonpath-rw==1.4.0
1414
jsonschema==2.6.0
1515
orjson==3.5.2
1616
prettytable==2.1.0
1717
prompt-toolkit==1.0.15
18-
pyOpenSSL<=21.0.0
18+
pyOpenSSL==23.1.0
1919
pysocks
2020
python-dateutil==2.8.1
2121
python-editor==1.0.4

st2client/st2client/shell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
from __future__ import print_function
2323
from __future__ import absolute_import
2424

25-
# Ignore CryptographyDeprecationWarning warnings which appear on older versions of Python 2.7
25+
# Ignore CryptographyDeprecationWarning warnings which appear on Python 3.6
26+
# TODO: Remove after dropping python3.6
2627
import warnings
27-
from cryptography.utils import CryptographyDeprecationWarning
2828

29-
warnings.filterwarnings("ignore", category=CryptographyDeprecationWarning)
29+
warnings.filterwarnings("ignore", message="Python 3.6 is no longer supported")
3030

3131
import os
3232
import sys

st2common/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ apscheduler==3.7.0
1111
cffi<1.15.0
1212
chardet<3.1.0
1313
ciso8601
14-
cryptography==3.4.7
14+
cryptography==39.0.1
1515
decorator==4.4.2
1616
dnspython>=1.16.0,<2.0.0
1717
eventlet==0.30.2
@@ -29,8 +29,8 @@ networkx>=2.5.1,<2.6
2929
orjson==3.5.2
3030
orquesta@ git+https://github.com/StackStorm/[email protected]
3131
oslo.config>=1.12.1,<1.13
32-
paramiko==2.10.5
33-
pyOpenSSL<=21.0.0
32+
paramiko==2.11.0
33+
pyOpenSSL==23.1.0
3434
pymongo==3.11.3
3535
python-dateutil==2.8.1
3636
python-statsd==2.1.0

st2common/tests/integration/log_unicode_data.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020

2121
from __future__ import absolute_import
2222

23+
# Ignore CryptographyDeprecationWarning warnings which appear on Python 3.6
24+
# TODO: Remove after dropping python3.6
25+
import warnings
26+
27+
warnings.filterwarnings("ignore", message="Python 3.6 is no longer supported")
28+
2329
import os
2430
import sys
2531

st2common/tests/integration/test_logging.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
from __future__ import absolute_import
1717

18+
# Ignore CryptographyDeprecationWarning warnings which appear on Python 3.6
19+
# TODO: Remove after dropping python3.6
20+
import warnings
21+
22+
warnings.filterwarnings("ignore", message="Python 3.6 is no longer supported")
23+
1824
import os
1925
import sys
2026
import signal

0 commit comments

Comments
 (0)