Will Laine
09/23/2024, 6:25 PMbuilder.Services.AddSingleton<ICerbosClient>(sp => CerbosClientBuilder.ForTarget("unix:/sock/cerbos.sock").WithPlaintext().Build());
but I'm getting the following error:
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
data:
".cerbos.yaml": |-
server:
# Configure Cerbos to listen on a Unix domain socket.
httpListenAddr: "unix:/sock/cerbos.sock"
Will Laine
09/23/2024, 6:29 PMWill Laine
09/23/2024, 6:29 PMWill Laine
09/23/2024, 10:57 PM"unix:/sock/cerbos.sock"
to <http://localhost:3593>
when creating the Cerbos client