| 1 |
[appendix] |
| 2 |
== Migrating from Cowboy 2.16 to 2.17 |
| 3 |
|
| 4 |
Cowboy 2.17 fixes a number of security vulnerabilities |
| 5 |
and improves the xref:security_checklist[security checklist]. |
| 6 |
The checklist is now included in the Hex package for |
| 7 |
convenience. |
| 8 |
|
| 9 |
Cowboy 2.17 updates Cowlib to 2.18.0. Both applications |
| 10 |
must be updated as they both contain security fixes. |
| 11 |
|
| 12 |
Cowboy 2.17 requires Erlang/OTP 24.0 or greater. |
| 13 |
|
| 14 |
=== Features added |
| 15 |
|
| 16 |
* Potential incompatibility: HTTP/2 now defaults |
| 17 |
`max_concurrent_streams` to 100. |
| 18 |
|
| 19 |
* Potential incompatibility: Websocket now defaults |
| 20 |
`max_frame_size` to 1MB. |
| 21 |
|
| 22 |
* Add the `invalid_response_headers` option to HTTP/2. |
| 23 |
|
| 24 |
* Extend `invalid_response_headers` to responses sent |
| 25 |
following an `early_error` stream handler call. |
| 26 |
|
| 27 |
* Document the `max_authority_length` option. |
| 28 |
It limits the length of the authority component, |
| 29 |
regardless of where that component is found (request |
| 30 |
line in absolute-form, host header, :authority |
| 31 |
pseudo-header). |
| 32 |
|
| 33 |
* Defense-in-depth: Add the `max_keys` option to |
| 34 |
`cowboy_req` functions that parse the query string |
| 35 |
or form-urlencoded bodies. This new limit is applied |
| 36 |
in addition to existing length limits. It defaults |
| 37 |
to 100. |
| 38 |
|
| 39 |
* Update Cowlib to 2.18.0. |
| 40 |
|
| 41 |
=== Bugs fixed |
| 42 |
|
| 43 |
* Defense-in-depth: Cowboy will reject some control |
| 44 |
characters early such as the NUL byte or CR and LF |
| 45 |
where they are not expected. |
| 46 |
|
| 47 |
* Strengthen HTTP/1.1 request parsing. Note that |
| 48 |
request trailers will now be skipped up to a certain |
| 49 |
length, instead of triggering an error. |