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 proxy-add-original-uri-header config flag #2353

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

bashofmann
Copy link
Contributor

What this PR does / why we need it:

This makes it configurable if a location adds an X-Original-Uri header to the backend request. Default is "true", the current behaviour.

Our use case, we have some internal services where the URL can be quite long, though still quite below nginx's large_client_header_buffers default limit. But by automatically adding the request URI as an additional header on the backend proxy request, a similar request header size limit from the backend web server, e.g. Jetty or another nginx, is exceeded.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 16, 2018
@bashofmann bashofmann force-pushed the master branch 2 times, most recently from b0ff7a7 to 32f6a4c Compare April 16, 2018 10:31
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 16, 2018
This makes it configurable if a location adds an X-Original-Uri header to the backend request. Default is "true", the current behaviour.
@codecov-io
Copy link

Codecov Report

Merging #2353 into master will decrease coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2353      +/-   ##
==========================================
- Coverage   39.23%   39.11%   -0.13%     
==========================================
  Files          73       73              
  Lines        5202     5203       +1     
==========================================
- Hits         2041     2035       -6     
- Misses       2872     2878       +6     
- Partials      289      290       +1
Impacted Files Coverage Δ
internal/file/bindata.go 57.42% <ø> (ø) ⬆️
internal/ingress/controller/config/config.go 98.19% <100%> (+0.01%) ⬆️
cmd/nginx/main.go 21.37% <0%> (-4.83%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 986e87e...1c17962. Read the comment docs.

@aledbf
Copy link
Member

aledbf commented Apr 16, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2018
@aledbf
Copy link
Member

aledbf commented Apr 16, 2018

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2018
@aledbf
Copy link
Member

aledbf commented Apr 16, 2018

@bashofmann thanks!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, bashofmann

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 564ec88 into kubernetes:master Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants