This pull request from Dependabot #593 upgrades the gunicorn package from version 19.9.0 to 22.0.0. However, while building the Docker images, it installs the latest version of urllib3 by default. Amazon Linux 2, which is the base operating system for the Docker images, has OpenSSL 1.0.2k pre-installed. Unfortunately, urllib3 version 2.0 and later only support OpenSSL 1.1.1 and higher versions. This version mismatch results in the following error when building the Docker
image:
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168
Description of changes:
This commit freezes urllib3 version < 2. This is a temporary solution to unblock the gunicorn upgrade. In the future, we should consider either upgrading the OpenSSL version on our Amazon Linux 2 instances or using a different base image with a newer OpenSSL version pre-installed.
All packages that contains gunicorn are showed as below.
Issue #, if available:
This pull request from Dependabot #593 upgrades the gunicorn package from version 19.9.0 to 22.0.0. However, while building the Docker images, it installs the latest version of urllib3 by default. Amazon Linux 2, which is the base operating system for the Docker images, has OpenSSL 1.0.2k pre-installed. Unfortunately, urllib3 version 2.0 and later only support OpenSSL 1.1.1 and higher versions. This version mismatch results in the following error when building the Docker image:
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168
Description of changes: This commit freezes urllib3 version < 2. This is a temporary solution to unblock the gunicorn upgrade. In the future, we should consider either upgrading the OpenSSL version on our Amazon Linux 2 instances or using a different base image with a newer OpenSSL version pre-installed.
All packages that contains gunicorn are showed as below.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.