Guten tag Oryers! I want to use the keto grpc clie...
# ory-network
c
Guten tag Oryers! I want to use the keto grpc client with ory network. Is this supported? If so, where do I connect and how do I auth? Kind regards, your friend HC
r
Yes, gRPC for Keto is supported. Auth works by creating an API key in the console, and setting that as a bearer token in the header (
Authorization: Bearer ory_pat_xyz123…
).
c
Ah, smooth! And you run the grpc server on the same interface/port as the http one? So no custom ports or anything?
r
Yep
c
I'm kinda stuck @ tls rn. I see your client is running
Copy code
// nolint explicity set through scary flag
			InsecureSkipVerify: true,
Do I have to do this too?
It would, in all honesty, be way cooler to actually trust your certs 😎
Well, you have the possibility to run insecure at least. I'm currently trusting my system ca pool, I feel like your cert should probably be trusted there already
s
It should work with tls
c
Yeah, I must be doing something wrong. Esp. since I'm using the same tlsconfig for http and grpc, and http does not complain, while grpc does (unless I run insecureSkipVerify)
You're right, it was me being a dumbass the entire time. I made a PublicGrpcClient which trusts the root pool rather than our internal CA, but guess what? Even though I made a public one, I kept using the internal one when testing. What a moron...
Of course, when I actually use the public tls config, it works first try 🙃
👍 2
s
Nice