Skip to content

Commit 9464276

Browse files
csquireyadvr
authored andcommitted
Don't force connections to TLSv1 (#25)
Forcing the connection to TLSv1 is actually downgrading connections that would otherwise be TLSv1_2. Cloudmonkey is better off auto-negotiating ssl/tls versions and versions should be enforced on the server side. Since the Go version is still alpha, it would be very useful to have the Python version play nice with TLSv1_2.
1 parent 721cc26 commit 9464276

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Apache CloudStack CloudMonkey Changelog
22
---------------------------------------
33

4+
Version 5.3.4
5+
=============
6+
This release includes
7+
- Allow ssl version to be negotiated automatically
8+
49
Version 5.3.3
510
=============
611
This release includes

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ MAINTAINER "Apache CloudStack" <dev@cloudstack.apache.org>
2222
LABEL Description="Apache CloudStack CloudMonkey; Python based CloudStack command line interface"
2323
LABEL Vendor="Apache.org"
2424
LABEL License=ApacheV2
25-
LABEL Version=5.3.3
25+
LABEL Version=5.3.4
2626

2727
COPY . /cloudstack-cloudmonkey
2828
RUN pip install requests

cloudmonkey/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818

19-
__version__ = "5.3.3"
19+
__version__ = "5.3.4"
2020
__description__ = "Command Line Interface for Apache CloudStack"
2121
__maintainer__ = "The Apache CloudStack Team"
2222
__maintaineremail__ = "dev@cloudstack.apache.org"

cloudmonkey/requester.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def login(url, username, password, domain="/", verifysslcert=False):
7070

7171
sessionkey = ''
7272
session = requests.Session()
73-
session.mount('https://', SSLAdapter(ssl.PROTOCOL_TLSv1))
73+
session.mount('https://', SSLAdapter())
7474

7575
try:
7676
resp = session.post(url, params=args, verify=verifysslcert)
@@ -217,7 +217,7 @@ def sign_request(params, secret_key):
217217
args["signature"] = sign_request(args, credentials['secretkey'])
218218

219219
session = requests.Session()
220-
session.mount('https://', SSLAdapter(ssl.PROTOCOL_TLSv1))
220+
session.mount('https://', SSLAdapter())
221221

222222
try:
223223
response = session.get(url, params=args, verify=verifysslcert)

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# built documents.
5656
#
5757
# The short X.Y version.
58-
version = '5.3.3'
58+
version = '5.3.4'
5959
# The full version, including alpha/beta/rc tags.
6060
release = version
6161

0 commit comments

Comments
 (0)