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

Envoy-Mobile sends "x-" headers #1557

Closed
carloseltuerto opened this issue Jun 29, 2021 · 5 comments
Closed

Envoy-Mobile sends "x-" headers #1557

carloseltuerto opened this issue Jun 29, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@carloseltuerto
Copy link
Contributor

Envoy Mobile seems to systematically send these two request headers:

x-envoy-mobile-cluster: base_clear_alt
x-forwarded-proto: https

This has been noticed with HTTP1. It is not known it this happens for HTTP2 also.

@carloseltuerto carloseltuerto added the bug Something isn't working label Jun 29, 2021
@alyssawilk
Copy link
Contributor

XFP can hopefully be removed but it's going to take some time for safe migration (6 months so far, probably another 3-6 to go: envoyproxy/envoy#14587)

cluster_header: x-envoy-mobile-cluster is added here:
https://github.com/envoyproxy/envoy-mobile/blob/main/library/common/config/config.cc#L163

@junr03 @buildbreaker I assume you folks value having that sent from client to server? If it's Ok to remove I can do so, otherwise should we kick off a way to template that config file so cronvoy can have different defaults than E-M?

alyssawilk added a commit that referenced this issue Jul 21, 2021
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Part of #1557

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk
Copy link
Contributor

Ok charles, I think I've fixed this one but I'm not sure which cronvoy test it was so throwing it over to you for verification
BTW if you want to start tagging example tests when you file issues I can look at updating tests when I update config. Your call!

@alyssawilk alyssawilk self-assigned this Jul 22, 2021
@carloseltuerto
Copy link
Contributor Author

Unfortunately, not yet. This is what the MockWebServer gets:

User-Agent: io.envoyproxy.envoymobile.test/0 (Linux; U; Android 8.1.0; en_US; robolectric; Build/OSM2.180218.001; Cronet/99.0.4512.7)
x-envoy-mobile-cluster: base_clear
x-forwarded-proto: https
accept-encoding: gzip

And there is something interesting: x-envoy-mobile-cluster: and x-forwarded-proto: are only being sent on the wire when there is an accept-encoding: in the request

alyssawilk added a commit that referenced this issue Jul 27, 2021
… routes (#1621)

Risk Level: medium
hopefully addresses #1558 and #1557

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk
Copy link
Contributor

ok, mind checking again when you have a few?

@alyssawilk alyssawilk removed their assignment Jul 27, 2021
@alyssawilk
Copy link
Contributor

confirmed fixed, thanks @carloseltuerto

Augustyniak pushed a commit to Augustyniak/envoy-mobile that referenced this issue Aug 2, 2021
… routes (envoyproxy#1621)

Risk Level: medium
hopefully addresses envoyproxy#1558 and envoyproxy#1557

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Rafal Augustyniak <raugustyniak@lyft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants