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

feat: set "Host" header from dest_addr override #63

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

theseion
Copy link
Collaborator

@theseion theseion commented Aug 18, 2022

  • "Host" header should be overridden with value of dest_addr override
    to ensure that requests will be accepted by targets.
  • Added test for the above change.
  • Converted config.FTWConfig.TestOverride.Input from map[string]string
    to test.Input for improved validation and better parsing

Co-authored-by: @dkegel-fastly

Replaces #61
Fixes #60

- "Host" header should be overridden with value of `dest_addr` override
  to ensure that requests will be accepted by targets.
- Added test for the above change.
- Converted `config.FTWConfig.TestOverride.Input` from `map[string]string`
  to `test.Input` for improved validation and better parsing

Co-authored-by: Dan Kegel <dkegel@fastly.com>
Copy link
Member

@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

I see what you did there. Thanks.

@fzipi fzipi merged commit f5f64a1 into coreruleset:main Aug 18, 2022
@theseion theseion deleted the set-host-from-dest_addr-override branch August 19, 2022 18:40
anuraaga pushed a commit to anuraaga/go-ftw that referenced this pull request Sep 1, 2022
…dr-override

feat: set "Host" header from dest_addr override
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.

Overriding dest_addr does not override Host header, leading to connection failures on some cloud WAFs
2 participants