Ambassador Gives 403 Trying to Connect to Websocket
Ambassador will redirect incoming request froms http to https.
You can verify by
$ curl localhost/websocket/ -v* Trying ::1...* TCP_NODELAY set* Connected to localhost (::1) port 80 (#0)> GET /websocket/ HTTP/1.1> Host: localhost> User-Agent: curl/7.54.0> Accept: */*> < HTTP/1.1 301 Moved Permanently< location: https://localhost/websocket/< date: Fri, 07 Aug 2020 08:25:38 GMT< server: envoy< content-length: 0< * Connection #0 to host localhost left intact
So, you will need to add this config to disable redirection on localhost
apiVersion: getambassador.io/v2kind: Hostmetadata: name: localhost namespace: defaultspec: hostname: localhost acmeProvider: authority: none requestPolicy: insecure: action: Route