cloudflare-ingress-controller icon indicating copy to clipboard operation
cloudflare-ingress-controller copied to clipboard

400 Bad Request - The plain HTTP request was sent to HTTPS port

Open lorddaedra opened this issue 5 years ago • 5 comments

I followed this guide https://developers.cloudflare.com/argo-tunnel/reference/kubernetes/

But in my case I prefer to use http2 for performance (https://imagekit.io/demo/http2-vs-http1) and security (mitm) reasons...

I see error 400 Bad Request - The plain HTTP request was sent to HTTPS port

I use Cloudflare Origin Certificates for my services...

Also I enable Automatic HTTPS Rewrites in Cloudflare panel.

I do not expect to see any plain http requests here... How to fix it?..

lorddaedra avatar May 21 '19 18:05 lorddaedra

Hi @lorddaedra , could you solve your problem? The same thing is happening to me, any idea how to solve it? Thanks

skilledboy avatar Dec 08 '19 12:12 skilledboy

I've also run into this issue - anyone found a reason why or how to solve it?

xunholy avatar Mar 30 '20 09:03 xunholy

@skilledboy I am sorry to have kept you waiting for so long.

@ here I do not use cloudflare-ingress-controller anymore. (I use Google Cloud Run service for most of my projects...)

lorddaedra avatar Mar 31 '20 18:03 lorddaedra

thanks @lorddaedra , I am particularly a fan of Google Cloud Run, but unfortunately it is not useful for me to expose my services from my raspberry pi 4 cluster. For this reason I use https://developers.cloudflare.com/argo-tunnel/reference/kubernetes

I leave you an image of how I mix everything (Cloudflare argo tunnel, kong gateway, etc ...).

Sorry, my english is very bad

image

skilledboy avatar Mar 31 '20 20:03 skilledboy

We are currently more focused on improving the cloudflared client itself, leaving this ingress controller deprecated. You can read more here: https://github.com/cloudflare/cloudflare-ingress-controller/issues/172#issuecomment-541230988

zackbloom avatar Mar 31 '20 21:03 zackbloom