rackspace/runway

[BUG] Update awslambda sampleapp to support newer requests library

jake-skipper opened this issue · 1 comments

Bug Description

In tests/functional/cfngin/hooks/test_awslambda/sample_app/src/docker/requirements.txt the requests library is defined. We've temporarily pinned it to a version before they added urllib3 version 2 support. When unpinned, the latest version is installed which results in the following error when executing in AWS Lambda:

urllib3 v2 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

The awslambda unit tests appear to use a lambda layer for dependencies. We need to work out how to update the ssl module before we can roll requests forward.

Dependabot would also like to roll this forward, but if we do it will break things. see #2036

Expected Behavior

Latest version of requests library should import without an OpenSSL version error caused by urllib3 v2.

Steps To Reproduce

Read bug description.

Runway version

2.6.11

Installation Type

pypi (pip, pipenv, poetry, etc)

OS / Environment

Any

Anything else?

No response

Resolved in #2036