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

Add ReadHeaderTimeout for security #826

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

duglin
Copy link
Contributor

@duglin duglin commented Dec 8, 2022

Closes #821

Signed-off-by: Doug Davis [email protected]

@duglin duglin force-pushed the issue821 branch 5 times, most recently from 54d75c1 to ca9aea8 Compare December 8, 2022 15:05
@duglin
Copy link
Contributor Author

duglin commented Dec 8, 2022

ping @lionelvillard

Handler: attachMiddleware(p.Handler, p.middleware),
Addr: listener.Addr().String(),
Handler: attachMiddleware(p.Handler, p.middleware),
ReadHeaderTimeout: DefaultReadTimeout,
Copy link
Member

Choose a reason for hiding this comment

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

Question: How about we fix it for both read/write? Or at least set ReadTimeout instead of just for headers to protect the read path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point - I'll do both (read and write) and do the entire thing, not just headers

Copy link
Member

@embano1 embano1 left a comment

Choose a reason for hiding this comment

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

LGTM

@duglin
Copy link
Contributor Author

duglin commented Jan 4, 2023

@lionelvillard wanna review this one?

@lionelvillard lionelvillard merged commit 1f844ba into cloudevents:main Jan 4, 2023
@duglin
Copy link
Contributor Author

duglin commented Jan 4, 2023

@lionelvillard @embano1 thanks!

@duglin duglin deleted the issue821 branch January 4, 2023 18:14
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.

[security] ReadHeaderTimeout not configured
3 participants