purton-tech / skytrace

SkyTrace from Airbus and The European Space Agency - We want to improve space situational awareness by providing a data sharing and communication platform for satellite operators.
https://skytrace.space
98 stars 2 forks source link

Cloudflare not working with gRPC #12

Closed 9876691 closed 1 year ago

9876691 commented 1 year ago

https://github.com/cloudflare/cloudflared/issues/491

gRPC Cloudflare testing example

docker run -it -p 50051:50051 grpc/java-example-hostname

docker run --network host fullstorydev/grpcurl -plaintext localhost:50051 list

docker run --network host cloudflare/cloudflared:latest tunnel --protocol http2 --url localhost:50051 --no-autoupdate

$ docker run --network host cloudflare/cloudflared:latest tunnel --protocol http2 --url localhost:50051 --no-autoupdate
2023-04-19T07:20:15Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
2023-04-19T07:20:15Z INF Requesting new quick Tunnel on trycloudflare.com...
2023-04-19T07:20:17Z INF +--------------------------------------------------------------------------------------------+
2023-04-19T07:20:17Z INF |  Your quick Tunnel has been created! Visit it at (it may take some time to be reachable):  |
2023-04-19T07:20:17Z INF |  https://spouse-settle-subsequent-solution.trycloudflare.com                               |
2023-04-19T07:20:17Z INF +--------------------------------------------------------------------------------------------+
2023-04-19T07:20:17Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]
2023-04-19T07:20:17Z INF Version 2023.4.1
2023-04-19T07:20:17Z INF GOOS: linux, GOVersion: go1.19.8, GoArch: amd64
2023-04-19T07:20:17Z INF Settings: map[ha-connections:1 no-autoupdate:true p:http2 protocol:http2 url:localhost:50051]
2023-04-19T07:20:17Z INF Generated Connector ID: 1147cf33-693e-4468-876c-a91c5a927f7a
2023-04-19T07:20:17Z INF Initial protocol http2
2023-04-19T07:20:17Z INF ICMP proxy will use 192.168.178.57 as source for IPv4
2023-04-19T07:20:17Z INF ICMP proxy will use 2003:c9:8f05:9f00:35ae:b6d7:2a0f:6a in zone enp24s0 as source for IPv6
2023-04-19T07:20:17Z INF Starting metrics server on 127.0.0.1:33927/metrics
2023-04-19T07:20:18Z INF Registered tunnel connection connIndex=0 connection=fdc6e2ef-4aa0-4a74-b0c4-069c828a5a7a event=0 ip=198.41.192.227 location=DUS protocol=http2

docker run fullstorydev/grpcurl spouse-settle-subsequent-solution.trycloudflare.com:443 list

$ docker run fullstorydev/grpcurl outputs-h-diabetes-games.trycloudflare.com:443 list
Failed to list services: rpc error: code = PermissionDenied desc = unexpected HTTP status code received from server: 403 (Forbidden); malformed header: missing HTTP content-type