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

Ability to disable Envoy adding server headers to responses #4359

Closed
youngnick opened this issue Feb 22, 2022 · 6 comments · Fixed by #4906
Closed

Ability to disable Envoy adding server headers to responses #4359

youngnick opened this issue Feb 22, 2022 · 6 comments · Fixed by #4906
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@youngnick
Copy link
Member

From #3692, @LiddersUK:

My security team and the external pen testers continue to raise this as an (admittedly low impact) issue as if an attacker knows the technology that we employ then it gives them an attack vector.
Their recommendation is for us to remove any server banners from response headers.

According to envoyproxy/envoy#14421, it seems like we will need to set the server_header_transformation param on the HTTPConnectionManager top PASS_THROUGH.

This will require a new global config boolean that defaults to true that will allow disabling of Envoy's server header responses.

@youngnick youngnick added kind/feature Categorizes issue or PR as related to a new feature. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor. labels Feb 22, 2022
@github-actions
Copy link

github-actions bot commented Nov 5, 2022

The Contour project currently lacks enough contributors to adequately respond to all Issues.

This bot triages Issues according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the Issue is closed

You can:

  • Mark this Issue as fresh by commenting
  • Close this Issue
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 5, 2022
@chris93111
Copy link

Hi any update of this ?

@github-actions github-actions bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 7, 2022
@sunjayBhatia sunjayBhatia added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Nov 15, 2022
@sunjayBhatia
Copy link
Member

Hey @chris93111 This has not been prioritized at this time, but nevertheless I think this issue is a good candidate for community contribution if you are in need of this feature! We can of course provide some guidance on where to start to get this implemented

@vishal-chdhry
Copy link
Member

Hi @sunjayBhatia! I would love to implement this, can you please guide me on where to start?

@sunjayBhatia
Copy link
Member

sunjayBhatia commented Nov 23, 2022

@vishal-chdhry

@vishal-chdhry
Copy link
Member

@sunjayBhatia, Sorry for the delay on this issue, i was busy in college exams.

why cant we directly use an enum, i am having trouble with figuring out where it should be an enum and where should i convert it to the boolean type.

I have to add it as an enum here

type httpConnectionManagerBuilder struct {

and convert it to an enum as well probably by doing something like this

func (b *httpConnectionManagerBuilder) MergeSlashes(enabled bool) *httpConnectionManagerBuilder {

I have opened a PR on this as well

@skriss skriss added this to Contour Jan 11, 2023
@skriss skriss moved this to In Progress in Contour Jan 11, 2023
@skriss skriss removed the lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor. label Jan 11, 2023
@skriss skriss added this to the 1.24.0 milestone Jan 11, 2023
skriss added a commit that referenced this issue Jan 23, 2023
…4906)

Adds support for configuring Envoy's server
header transformation, which customizes how
Envoy treats the Server header on responses.
The Server header can now be passed through
as-is or only set to "envoy" if no other value
is present, in addition to the default behavior
of always setting the Server header to "envoy".

Closes #4359.

Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Steve Kriss <[email protected]>
Co-authored-by: Steve Kriss <[email protected]>
@github-project-automation github-project-automation bot moved this from In Progress to Done in Contour Jan 23, 2023
vmw-yingy pushed a commit to vmw-yingy/contour that referenced this issue Feb 28, 2023
…rojectcontour#4906)

Adds support for configuring Envoy's server
header transformation, which customizes how
Envoy treats the Server header on responses.
The Server header can now be passed through
as-is or only set to "envoy" if no other value
is present, in addition to the default behavior
of always setting the Server header to "envoy".

Closes projectcontour#4359.

Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Vishal Choudhary <[email protected]>
Signed-off-by: Steve Kriss <[email protected]>
Co-authored-by: Steve Kriss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants