Skip to content

(codec) Increase max_request_headers_kb limit to 64 and add http2 codec checks#5773

Merged
mattklein123 merged 14 commits intoenvoyproxy:masterfrom
aunu53:max
Feb 5, 2019
Merged

(codec) Increase max_request_headers_kb limit to 64 and add http2 codec checks#5773
mattklein123 merged 14 commits intoenvoyproxy:masterfrom
aunu53:max

Conversation

@aunu53
Copy link
Contributor

@aunu53 aunu53 commented Jan 30, 2019

Description: Extra http2 codec check hard-coded at 63KB has been removed. Instead, the codec max_request_headers_kb is based on the http conn manager config value, or the default value from codec.h. In addition, change instances of ~max_request_headers_size_kb -> ~max_request_headers_kb. Also, split http2/codec_impl_[fuzz_]test.cc connection testing classes into common util.

Risk Level: Medium, touches codec instantiation which is in a lot of places. (There are a lot of call sites on the codec instantiation so please review carefully in case I plugged the default value somewhere I shouldn't have.)

Part of #5626.

Copy link
Contributor

@alyssawilk alyssawilk 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 overall - just a few request/suggestions

@aunu53

This comment has been minimized.

@repokitteh-read-only

This comment has been minimized.

@aunu53
Copy link
Contributor Author

aunu53 commented Feb 1, 2019

(sorry matt I ran rebase without dropping a merge commit :$)

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM, few small nits. Thank you!

/wait

Copy link
Member

Choose a reason for hiding this comment

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

This can be const I think. Can you check to see if any others can be also?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

const-ified everything in source :)

@aunu53 aunu53 force-pushed the max branch 2 times, most recently from be02d8b to 3eb18af Compare February 4, 2019 17:03
aunu53 added 12 commits February 4, 2019 12:11
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Auni Ahsan <auni@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks! I think will need a master merge to fix OSX.

Signed-off-by: Auni Ahsan <auni@google.com>
@mattklein123 mattklein123 merged commit cbf03b9 into envoyproxy:master Feb 5, 2019
@aunu53 aunu53 deleted the max branch February 6, 2019 14:44
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
…ec checks (envoyproxy#5773)

Signed-off-by: Auni Ahsan <auni@google.com>
Signed-off-by: Fred Douglas <fredlas@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants