-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Support default client proxy headers to be overwritten in VirtualServer #2735
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## main #2735 +/- ##
==========================================
+ Coverage 52.52% 52.57% +0.04%
==========================================
Files 58 59 +1
Lines 16070 16080 +10
==========================================
+ Hits 8441 8454 +13
+ Misses 7351 7349 -2
+ Partials 278 277 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
centromere
force-pushed
the
set-header-overrides
branch
2 times, most recently
from
August 8, 2022 16:43
82e7749
to
824b027
Compare
Is someone available to review this PR? |
lucacome
added
the
enhancement
Pull requests for new features/feature enhancements
label
Aug 30, 2022
github-actions
bot
removed
the
enhancement
Pull requests for new features/feature enhancements
label
Nov 3, 2022
shaun-nx
approved these changes
Nov 3, 2022
vepatel
approved these changes
Nov 3, 2022
brianehlert
changed the title
Allow default gRPC/proxy headers to be overwritten in VirtualServer
Support default client proxy headers to be overwritten in VirtualServer
Nov 3, 2022
github-actions
bot
added
documentation
Pull requests/issues for documentation
tests
Pull requests that update tests
labels
Nov 3, 2022
lucacome
force-pushed
the
set-header-overrides
branch
from
November 3, 2022 19:00
7e0a6de
to
663d330
Compare
github-actions
bot
removed
documentation
Pull requests/issues for documentation
tests
Pull requests that update tests
labels
Nov 3, 2022
lucacome
force-pushed
the
set-header-overrides
branch
from
November 3, 2022 19:01
663d330
to
f769a0b
Compare
@centromere Many thanks for your PR on this one. Approved and merged. |
coolbry95
pushed a commit
to coolbry95/kubernetes-ingress
that referenced
this pull request
Nov 18, 2022
…er (nginx#2735) Allow default gRPC/proxy headers to be overwritten in VirtualServer Co-authored-by: Alex Wied <[email protected]> Co-authored-by: Shaun <[email protected]>
lucacome
added
the
enhancement
Pull requests for new features/feature enhancements
label
Jan 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
When using the VirtualServer CRD, it is not possible to override the default values of the following headers:
X-Real-IP
X-Forwarded-For
X-Forwarded-Host
X-Forwarded-Port
X-Forwarded-Proto
For example:
Will result in the following:
This causes the headers to be sent upstream twice: once with the default value and once with the overwritten value. This change prevents this behavior from happening.
Checklist
Before creating a PR, run through this checklist and mark each as complete.