Skip to content

Commit b40ae3e

Browse files
committed
fix(client): use pyOpenSSL for improved security features
1 parent 1df8eea commit b40ae3e

5 files changed

Lines changed: 19 additions & 4 deletions

File tree

client/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
build: setup-venv
3-
venv/bin/pip install docopt==0.6.2 python-dateutil==2.4.2 PyYAML==3.11 requests==2.5.1 git+https://github.com/pyinstaller/pyinstaller@7413317 tabulate==0.7.4 termcolor==1.1.0
3+
venv/bin/pip install docopt==0.6.2 ndg-httpsclient==0.3.3 pyasn1==0.1.7 pyOpenSSL==0.15.1 python-dateutil==2.4.2 PyYAML==3.11 requests==2.5.1 git+https://github.com/pyinstaller/pyinstaller@7413317 tabulate==0.7.4 termcolor==1.1.0 urllib3==1.10.2
44
venv/bin/pyinstaller deis.spec
55
chmod +x dist/deis
66

client/deis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
import requests
7373
from tabulate import tabulate
7474
from termcolor import colored
75+
import urllib3.contrib.pyopenssl
7576

7677
__version__ = '1.6.0-dev'
7778

@@ -80,6 +81,7 @@
8081

8182

8283
locale.setlocale(locale.LC_ALL, '')
84+
urllib3.contrib.pyopenssl.inject_into_urllib3()
8385

8486

8587
class Session(requests.Session):

client/setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@
5757
],
5858
long_description=LONG_DESCRIPTION,
5959
install_requires=[
60-
'docopt==0.6.2', 'python-dateutil==2.4.2',
61-
'PyYAML==3.11', 'requests==2.5.1',
62-
'tabulate==0.7.4', 'termcolor==1.1.0'
60+
'docopt==0.6.2', 'ndg-httpsclient==0.3.3',
61+
'pyasn1==0.1.7', 'pyOpenSSL==0.15.1',
62+
'python-dateutil==2.4.2', 'PyYAML==3.11',
63+
'requests==2.5.1', 'tabulate==0.7.4',
64+
'termcolor==1.1.0', 'urllib3==1.10.2',
6365
],
6466
zip_safe=True,
6567
**KWARGS)

controller/dev_requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Deis client requirements
22
docopt==0.6.2
3+
ndg-httpsclient==0.3.3
4+
pyasn1==0.1.7
5+
pyOpenSSL==0.15.1
36
python-dateutil==2.4.2
7+
PyYAML==3.11
48
requests==2.5.1
9+
tabulate==0.7.4
510
termcolor==1.1.0
11+
urllib3==1.10.2
612

713
# PyInstaller builds client binaries
814
git+https://github.com/pyinstaller/pyinstaller@7413317

docs/docs_requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ python-ldap==2.4.19
2525

2626
# Deis client requirements
2727
docopt==0.6.2
28+
ndg-httpsclient==0.3.3
29+
pyasn1==0.1.7
30+
pyOpenSSL==0.15.1
2831
python-dateutil==2.4.2
32+
#PyYAML==3.11
2933
requests==2.5.1
3034
tabulate==0.7.4
3135
termcolor==1.1.0
36+
urllib3==1.10.2
3237

3338
# Deis documentation requirements
3439
Sphinx==1.3.1

0 commit comments

Comments
 (0)