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

Adding X-Forwarded-for header in httpd access_log when using port 80 and test case #411

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

jordarlu
Copy link
Contributor

@jordarlu jordarlu commented Mar 22, 2024

Description

Adding X-Forwarded-for header in httpd access_log when using port 80 and test case

We prevesiousely add the X-Forwarded-for header on access_log when using port 443.
In this PR, we add it when using port 80 as well.
Along with the test case in ci-stack.test

Issues Resolved

By following up the #403 :
In #403, we added X-Forwarded-for header in httpd access_log when using port 443.
In this PR, we add the same but for the traffic using port 80 to cover all http cases.
And we also add test cases for both 80 and 443.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jordarlu jordarlu changed the title Adding X-Forwarded-for header on port httpd access_log when using port 80 and test case Adding X-Forwarded-for header on httpd access_log when using port 80 and test case Mar 22, 2024
@jordarlu jordarlu changed the title Adding X-Forwarded-for header on httpd access_log when using port 80 and test case Adding X-Forwarded-for header in httpd access_log when using port 80 and test case Mar 22, 2024
@jordarlu jordarlu marked this pull request as ready for review March 22, 2024 22:15
Signed-off-by: Jeff Lu <[email protected]>
@jordarlu jordarlu merged commit 0be4a83 into opensearch-project:main Mar 26, 2024
3 checks passed
@jordarlu jordarlu deleted the adding_header_test branch March 26, 2024 01:27
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