Hi, I'm trying to deploy Cerbos as a sidecar in my...
# help
w
Hi, I'm trying to deploy Cerbos as a sidecar in my Kubernetes cluster (AKS). I'm using the .NET SDK to build the Cerbos client with
builder.Services.AddSingleton<ICerbosClient>(sp => CerbosClientBuilder.ForTarget("unix:/sock/cerbos.sock").WithPlaintext().Build());
but I'm getting the following error:
Copy code
System.InvalidOperationException: No address resolver configured for the scheme 'unix'.
   at Grpc.Net.Client.GrpcChannel.GetResolverFactory(GrpcChannelOptions options)
   at Grpc.Net.Client.GrpcChannel..ctor(Uri address, GrpcChannelOptions channelOptions)
   at Grpc.Net.Client.GrpcChannel.ForAddress(Uri address, GrpcChannelOptions channelOptions)
   at Grpc.Net.Client.GrpcChannel.ForAddress(String address, GrpcChannelOptions channelOptions)
   at Cerbos.Sdk.Builder.CerbosClientBuilder.Build()
I don't have any experience working with local unix sockets so I'm sure I'm missing something here. Does my target need to be an http localhost port? My configmap has the following
Copy code
data:
  ".cerbos.yaml": |-
    server:
      # Configure Cerbos to listen on a Unix domain socket.
      httpListenAddr: "unix:/sock/cerbos.sock"
Untitled
My deployment config (redacted)
Resolved I updated my target path from
"unix:/sock/cerbos.sock"
to
<http://localhost:3593>
when creating the Cerbos client
🎉 1