-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DefaultWorkloadApiClient does not work with unix sockets on Mac #76
Comments
Hi @alwaysastudent, it works on Mac with unix sockets, you need to add the dependency Using gradle:
|
Thank you so much @maxlambrecht. Do you know if I need to exclude the transitive dependency |
I wish we didn't have to toggle on these mutually exclusive dependencies as consumers of this project, as this makes it difficult to write wrapper extension libraries around this project and distribute internally within our org. Any reason why can't we unify this logic into the core library itself instead and switch on 2 different GrpcManagedChannelFactory? |
You don't need to exclude the You could use
The reason is that we decided to use the |
hi @maxlambrecht - I am using maven and I had to make sure that the
Wouldn't it be easier to have 2 different OS-specific GrpcManagedChannelFactory classes that can switch on strategies for creating OS-specific |
Yes, we could make
The Linux related implementation would use classes from the shaded dependency and the Macos version would use classes from the other two dependencies. The user of the library will need to exclude the dependencies that are not used. Any thoughts @rturner3 ? |
@maxlambrecht - another approach may be to use |
Seems like
io.spiffe.workloadapi.internal.GrpcManagedChannelFactory
only supports Linux OS for unix schemes. Naive question perhaps, why is it not supporting unix sockets on Mac?The text was updated successfully, but these errors were encountered: