Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6208-upgrade gunicorn #6254

Merged
merged 1 commit into from
May 14, 2024
Merged

6208-upgrade gunicorn #6254

merged 1 commit into from
May 14, 2024

Conversation

cnlucas
Copy link
Member

@cnlucas cnlucas commented May 9, 2024

Summary (required)

Upgrades gunicorn to remove snyk vulnerability

Breaking changes:
V. 22
minimum version is Python 3.7
the limitations on valid characters in the HTTP method have been bounded to Internet Standards
requests specifying unsupported transfer coding (order) are refused by default (rare)
HTTP methods are no longer casefolded by default (IANA method registry contains none affected)
HTTP methods containing the number sign (#) are no longer accepted by default (rare)
HTTP versions < 1.0 or >= 2.0 are no longer accepted by default (rare, only HTTP/1.1 is supported)
HTTP versions consisting of multiple digits or containing a prefix/suffix are no longer accepted
HTTP header field names Gunicorn cannot safely map to variables are silently dropped, as in other software
HTTP headers with empty field name are refused by default (no legitimate use cases, used in exploits)
requests with both Transfer-Encoding and Content-Length are refused by default (such a message might indicate an attempt to perform request smuggling)
empty transfer codings are no longer permitted (reportedly seen with really old & broken proxies)
V.21
We made this release major to start our new release cycle. More info will be provided on our discussion forum.
V.20
minimum version is Python 3.5
Remove version from the Server header
Removed gaiohttp worker
Drop support for Python 2.x
Drop support for EOL Python 3.2 and 3.3
Drop support for Paste Deploy server blocks

Required reviewers

2-3 devs, I couldn't find any breaking issues that would effect us, but this several major versions upgraded.

Impacted areas of the application

General components of the application that this PR will affect:

  • gunicorn servers

How to test

(Include any information that may be helpful to the reviewer(s). This might include links to sample pages to test or any local environmental setup that is unusual such as environment variable (never credentials), API version to point to, etc)

I couldn't get running gunicorn locally to work ---if anyone has done that successfully please let me know.

@cnlucas cnlucas changed the title [WIP] upgrade gunicorn 6208-upgrade gunicorn May 10, 2024
Copy link
Contributor

@tmpayton tmpayton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good thanks @cnlucas!

Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@patphongs patphongs merged commit cf19bed into develop May 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Synk:High] Gunicorn (Due 05/17/2024)
3 participants