Skip to content

Is there a way to initialise a client using a file descriptor or an XPC connection? #1353

@jvimal-eg

Description

@jvimal-eg

What are you trying to achieve?

There are 3 ways to start a grpc client today: host and port, socket address, and unix domain socket path. Is there a way to start one using a file descriptor?

My use case is that I have a server and client running in two different sandboxes. For some reason, I am unable to share a unix domain socket across the two, and I've resorted to using a TCP socket, which is insecure as any process can connect to it.

Ideally, it would be great if grpc client can work over an XPC connection, which offers stronger authentication between client/server using codesign certificates. Alternatively, I could have the server pass a file descriptor to an authenticated client over XPC and use that file descriptor to start the client.

What have you tried so far?

I tried looking at the source code to see how else I can create connections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportAdopter support requests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions