Hi! Still trying to make it work using Cloud Run ...
# spicedb
a
Hi! Still trying to make it work using Cloud Run (think this might be useful for others as well) . Currently just want it to connect from python local client to remote Cloud Run SpiceDB instance My Dockerfile:
Copy code
FROM --platform=linux/amd64 authzed/spicedb:latest

EXPOSE 50051

ENV SPICEDB_GRPC_PRESHARED_KEY foobar
ENV SPICEDB_DATASTORE_ENGINE memory

CMD ["serve"]
My Cloud Run instance revision settings:
Copy code
Container port (default) 8080 (tried 50051 didn't work) 
Allowed unauthenticated requests 
Min 1 instance running
Enabled HTTP2
My python local client: using https://gist.github.com/jakedt/100d75048c7ebefdf2fb666de58cda9b provided by @Joey Client looks like client = Client(cloud-run-without-http:443, foobar) (50051 returns tcp handshaker shutdown) Tried also with zed client: cr-spicedb cloud-run-without-http:443 insecure it's ok for now to make it work even without TLS, just to see mvp errors are: from zed client:
Copy code
ERR terminated with errors error="rpc error: code = Unavailable desc = connection error: desc = \"error reading server preface: read tcp 172.xx.xx.xx:60745->216.xxx.xx.xx:443: read: connection reset by peer\""
from python client:
Copy code
debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2024-06-20T17:31:26.872668+03:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv6:%5B2001:xxxx:xxxx:36::35%5D:443: No route to host"}"
would appreciate any help here
36 Views