You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dpgaspar (via GitHub)" <gi...@apache.org> on 2024/05/14 08:07:45 UTC

[PR] chore: bump gunicorn to 22.0.0 [superset]

dpgaspar opened a new pull request, #28490:
URL: https://github.com/apache/superset/pull/28490

   ### SUMMARY
   Bump gunicorn to address a potencial vulnerability
   
   https://docs.gunicorn.org/en/latest/news.html#id1
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "dpgaspar (via GitHub)" <gi...@apache.org>.
dpgaspar merged PR #28490:
URL: https://github.com/apache/superset/pull/28490


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "dpgaspar (via GitHub)" <gi...@apache.org>.
dpgaspar commented on code in PR #28490:
URL: https://github.com/apache/superset/pull/28490#discussion_r1600520396


##########
pyproject.toml:
##########
@@ -55,7 +55,7 @@ dependencies = [
     "flask-wtf>=1.1.0, <2.0",
     "func_timeout",
     "geopy",
-    "gunicorn>=21.2.0, <22.0; sys_platform != 'win32'",
+    "gunicorn>=22.0.0; sys_platform != 'win32'",

Review Comment:
   We may be moving away from always pinning the upper limit: https://github.com/apache/superset/pull/28144#discussion_r1572740500



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #28490:
URL: https://github.com/apache/superset/pull/28490#issuecomment-2109557255

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/28490?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 64.43%. Comparing base [(`76d897e`)](https://app.codecov.io/gh/apache/superset/commit/76d897eaa2f9e137102bc194c2e3109c29d0348f?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`c4ed164`)](https://app.codecov.io/gh/apache/superset/pull/28490?dropdown=coverage&src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 108 commits behind head on master.
   
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #28490      +/-   ##
   ==========================================
   + Coverage   60.48%   64.43%   +3.94%     
   ==========================================
     Files        1931      521    -1410     
     Lines       76236    37467   -38769     
     Branches     8568        0    -8568     
   ==========================================
   - Hits        46114    24141   -21973     
   + Misses      28017    13326   -14691     
   + Partials     2105        0    -2105     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/28490/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [hive](https://app.codecov.io/gh/apache/superset/pull/28490/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `49.09% <ø> (-0.07%)` | :arrow_down: |
   | [javascript](https://app.codecov.io/gh/apache/superset/pull/28490/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [presto](https://app.codecov.io/gh/apache/superset/pull/28490/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `53.65% <ø> (-0.15%)` | :arrow_down: |
   | [python](https://app.codecov.io/gh/apache/superset/pull/28490/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `64.43% <ø> (+0.94%)` | :arrow_up: |
   | [unit](https://app.codecov.io/gh/apache/superset/pull/28490/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `58.81% <ø> (+1.19%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/superset/pull/28490?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "denodo-research-labs (via GitHub)" <gi...@apache.org>.
denodo-research-labs commented on PR #28490:
URL: https://github.com/apache/superset/pull/28490#issuecomment-2120190325

   [CVE-2024-1135](https://nvd.nist.gov/vuln/detail/CVE-2024-1135) is reported as `HIGH` by some security tools like PRISMA.
   
   Will this version bump be applied to the 3.1-x branch too to avoid that CVE affecting current stable versions?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on PR #28490:
URL: https://github.com/apache/superset/pull/28490#issuecomment-2359394650

   Should be in 4.1.0, which has an open release candidate


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "john-bodley (via GitHub)" <gi...@apache.org>.
john-bodley commented on code in PR #28490:
URL: https://github.com/apache/superset/pull/28490#discussion_r1600404581


##########
pyproject.toml:
##########
@@ -55,7 +55,7 @@ dependencies = [
     "flask-wtf>=1.1.0, <2.0",
     "func_timeout",
     "geopy",
-    "gunicorn>=21.2.0, <22.0; sys_platform != 'win32'",
+    "gunicorn>=22.0.0; sys_platform != 'win32'",

Review Comment:
   @dpgaspar should we include an upper limit on `<23.0`? Additionally, do you know why we need the `sys_platform != 'win32'` check, especially given that we don't support Windows?



##########
pyproject.toml:
##########
@@ -55,7 +55,7 @@ dependencies = [
     "flask-wtf>=1.1.0, <2.0",
     "func_timeout",
     "geopy",
-    "gunicorn>=21.2.0, <22.0; sys_platform != 'win32'",
+    "gunicorn>=22.0.0; sys_platform != 'win32'",

Review Comment:
   @dpgaspar should we include an upper limit on `<23.0`?
   
   Additionally, do you know why we need the `sys_platform != 'win32'` check, especially given that we don't support Windows?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "g-jgreen (via GitHub)" <gi...@apache.org>.
g-jgreen commented on PR #28490:
URL: https://github.com/apache/superset/pull/28490#issuecomment-2358842853

   Any update on this? Seems to not be available on release 4.0.2. 
   
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "john-bodley (via GitHub)" <gi...@apache.org>.
john-bodley commented on code in PR #28490:
URL: https://github.com/apache/superset/pull/28490#discussion_r1600404581


##########
pyproject.toml:
##########
@@ -55,7 +55,7 @@ dependencies = [
     "flask-wtf>=1.1.0, <2.0",
     "func_timeout",
     "geopy",
-    "gunicorn>=21.2.0, <22.0; sys_platform != 'win32'",
+    "gunicorn>=22.0.0; sys_platform != 'win32'",

Review Comment:
   @dpgaspar should we include an upper limit on `<23.0`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] chore: bump gunicorn to 22.0.0 [superset]

Posted by "dpgaspar (via GitHub)" <gi...@apache.org>.
dpgaspar commented on PR #28490:
URL: https://github.com/apache/superset/pull/28490#issuecomment-2110956353

   > LGTM after reviewing breaking changes https://docs.gunicorn.org/en/latest/news.html
   > 
   > Looks ok to me but thought I'd paste here for @dpgaspar to have another look pre-merge:
   > 
   > ** Breaking changes **
   > 
   > 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)
   
   I took a look, seems unlikely to break anyones deployments


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org