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

cmd/contour: properly configure request/response headers policy #3519

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

skriss
Copy link
Member

@skriss skriss commented Mar 26, 2021

Fixes two issues with configuring request/response headers policy.
The first issue was that the user's configured request headers to
set were inadvertently also being used as the response headers to
set. The second issue was that some harmless empty strings were
being added to the lists of request/response headers to remove.

Signed-off-by: Steve Kriss krisss@vmware.com

Fixes two issues with configuring request/response headers policy.
The first issue was that the user's configured request headers to
set were inadvertently also being used as the response headers to
set. The second issue was that some harmless empty strings were
being added to the lists of request/response headers to remove.

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss requested a review from a team as a code owner March 26, 2021 16:52
@skriss skriss requested review from stevesloka and danehans and removed request for a team March 26, 2021 16:52
@codecov
Copy link

codecov bot commented Mar 26, 2021

Codecov Report

Merging #3519 (3e620f7) into main (99b3799) will not change coverage.
The diff coverage is 0.00%.

❗ Current head 3e620f7 differs from pull request most recent head 1f46949. Consider uploading reports for the commit 1f46949 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3519   +/-   ##
=======================================
  Coverage   75.63%   75.63%           
=======================================
  Files          98       98           
  Lines        6711     6711           
=======================================
  Hits         5076     5076           
  Misses       1516     1516           
  Partials      119      119           
Impacted Files Coverage Δ
cmd/contour/serve.go 0.00% <0.00%> (ø)

@skriss
Copy link
Member Author

skriss commented Mar 26, 2021

Per #3512 (comment) I'll have a test case covering this in that PR.

Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

Oof, that's a trap for new players. LGTM.

@skriss skriss added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Mar 29, 2021
@skriss skriss added this to the 1.14.0 milestone Mar 29, 2021
@skriss skriss merged commit 49ffa8c into projectcontour:main Mar 29, 2021
@skriss skriss deleted the fix-headerpolicy-config branch March 30, 2021 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants