-
Notifications
You must be signed in to change notification settings - Fork 686
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
Cleartext redirection is not working (w/use_proxy_proto: true) #3125
Comments
fyi, removing:
fixes the issue. But it does mean I can't set the custom alpn_protocols setting. |
Hmmm. What do these three
do for you? Note the trailing slashes, as well as the scheme... |
% curl -I https://www.wetsnow.com
HTTP/2 200
server: envoy
date: Tue, 29 Dec 2020 22:49:26 GMT
content-type: text/html
content-length: 1731
last-modified: Tue, 29 Dec 2020 21:25:17 GMT
etag: "5feb9ebd-6c3"
x-frame-options: SAMEORIGIN
accept-ranges: bytes
x-envoy-upstream-service-time: 0
% curl -I http://www.wetsnow.com/
HTTP/1.1 404 Not Found
content-security-policy: frame-ancestors 'none'
content-type: text/html; charset=utf-8
x-frame-options: deny
date: Tue, 29 Dec 2020 22:49:43 GMT
x-envoy-upstream-service-time: 0
x-content-type-options: nosniff
server: envoy
transfer-encoding: chunked
% curl -I https://www.wetsnow.com/
HTTP/2 200
server: envoy
date: Tue, 29 Dec 2020 22:50:09 GMT
content-type: text/html
content-length: 1731
last-modified: Tue, 29 Dec 2020 21:25:33 GMT
etag: "5feb9ecd-6c3"
x-frame-options: SAMEORIGIN
accept-ranges: bytes
x-envoy-upstream-service-time: 1
For completeness:
% curl -I http://www.wetsnow.com (do-nyc3-cluster-1/default)
HTTP/1.1 404 Not Found
content-security-policy: frame-ancestors 'none'
content-type: text/html; charset=utf-8
x-frame-options: deny
date: Tue, 29 Dec 2020 22:51:07 GMT
x-envoy-upstream-service-time: 0
x-content-type-options: nosniff
server: envoy
transfer-encoding: chunked
On Tue, Dec 29, 2020, at 5:27 PM, Flynn wrote:
Hmmm. What do these three
`curl https://www.wetsnow.com
curl http://www.wetsnow.com/
curl https://www.wetsnow.com/
`
… do for you? Note the trailing slashes, as well as the scheme...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#3125 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAD4PP5JCH2D2JBSZMJBA3TSXJJTNANCNFSM4VNPGHSQ>.
|
I'll leave it in the broken state in case you want to try some queries yourself... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is this still stale? Is there an ongoing issue with proxy protocol and redirection? I'm asking because in this section of the docs, it's indicating that it is
But from this issue, it seems it is possible, or somewhat possible with some restrictions or gotchas or something? |
@DanTulovsky , do you get the same behavior using a host resource vs using a TLSContext resource? This is an L7 load balancer, correct? Does the issue persist on 2.x versions? |
Hi,
Cleartext redirection doesn't seem to be working for me. The symptoms are the same as in this old issue.
Is this still broken by chance, or am I doing something wrong?
Thank you
Dan
Version: 1.9.1. All http:// requests get a 404, while all https:// ones work.
Mapping:
Host:
curl request:
Ambassador log line:
Match from diag screen:
The text was updated successfully, but these errors were encountered: