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

[3.2] response to disallowed host #996

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

huangminghuang
Copy link
Contributor

This PR fixes the problem where HTTP plugin doesn't response to requests with disallowed HTTP HOST header.

Resolve IS #859

Copy link
Member

@heifner heifner left a comment

Choose a reason for hiding this comment

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

Can you add a test case for this.

@heifner heifner added the OCI Work exclusive to OCI team label Apr 10, 2023
@heifner heifner requested a review from spoonincode April 11, 2023 15:20

if cluster.launch(dontBootstrap=True, loadSystemContract=False) is False:
if cluster.launch(dontBootstrap=True, loadSystemContract=False, specificExtraNodeosArgs = {0: "--http-validate-host true"}) is False:
Copy link
Member

Choose a reason for hiding this comment

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

Do you really need --http-validate-host true here? It's the default.

Copy link
Contributor Author

@huangminghuang huangminghuang Apr 11, 2023

Choose a reason for hiding this comment

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

Yes, I have to. Somewhere in the TestHarness changed it to false.

http-validate-host = false

Copy link
Member

Choose a reason for hiding this comment

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

ah okay, it's interesting because you can't --http-validate-host true --http-validate-host true nor

http-validate-host = true 
http-validate-host = true 

But you can http-validate-host = true & --http-validate-host true

@huangminghuang huangminghuang merged commit c716ac5 into release/3.2 Apr 11, 2023
@huangminghuang huangminghuang deleted the huangminghuang/http-host-3.2 branch April 11, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants