Comments (8)
Thanks for reporting. I will check it out and will plan out the switch to Grpc.Net.Client
from dotnet-etcd.
I just need to do some final tests with watch etc and will move to stable once everything seems fine.
from dotnet-etcd.
This seems a big change on how certs used to be loaded before. Have already pushed a few changes, should be able to test em and release a new version soon.
from dotnet-etcd.
I have tested and released a pre-release version. You may check it out.
Version: 5.0.0-alpha
Thanks !
from dotnet-etcd.
That's fantastic news! I did some testing with it, and it seems to work just fine with .net 5 on Alpine linux. Features used on the client: PutAsync, GetAsync, GetRangeAsync, DeleteAsync and TransactionAsync. Thanks for the quick support! Could you provide a timeline for it to go into a final 5.0.0 version please?
from dotnet-etcd.
I am testing now using certificates, and getting the following exception when creating the EtcdClient whilst specifying the caCert, clientKey and clientCert parameters:
System.InvalidOperationException: SslCredentials with non-null arguments is not supported by GrpcChannel. GrpcChannel uses HttpClient to make gRPC calls and HttpClient automatically loads root certificates from the operating system certificate store. Client certificates should be configured on HttpClient. See https://aka.ms/aspnet/grpc/certauth for details.
at Grpc.Net.Client.Internal.DefaultChannelCredentialsConfigurator.SetSslCredentials(Object state, String rootCertificates, KeyCertificatePair keyCertificatePair, VerifyPeerCallback verifyPeerCallback)
at Grpc.Core.SslCredentials.InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase configurator, Object state)
at Grpc.Net.Client.GrpcChannel..ctor(Uri address, GrpcChannelOptions channelOptions)
at Grpc.Net.Client.GrpcChannel.ForAddress(Uri address, GrpcChannelOptions channelOptions)
at dotnet_etcd.multiplexer.Balancer..ctor(List`1 nodes, String caCert, String clientCert, String clientKey, Boolean publicRootCa)
at dotnet_etcd.EtcdClient..ctor(String connectionString, Int32 port, String caCert, String clientCert, String clientKey, Boolean publicRootCa)
....
It may be possible to configure the client certificates directly on the GrpcChannelOptions.HttpHandler property.
// Add client cert to the handler var handler = new HttpClientHandler(); handler.ClientCertificates.Add(certificate); // Create the gRPC channel var channel = GrpcChannel.ForAddress(baseAddress, new GrpcChannelOptions { HttpHandler = handler });
from dotnet-etcd.
I managed to get a secure connection working by providing the new 5.0.2-alpha EtcdClient constructor with the HttpClientHandler containing the certificates.
from dotnet-etcd.
Thanks for the update. Will release a stable version soon.
from dotnet-etcd.
Related Issues (20)
- Support IConfiguration and DI
- Exception type when cancelling async operations HOT 4
- Prefix request with Limit HOT 2
- How to read past version of keys HOT 2
- add separated community contrib project or repo HOT 1
- GrpcChannelOptions parameter configuration HOT 2
- Lock permission denied HOT 5
- Possible NullReference HOT 3
- Add optional ExceptionHandler in LeaseKeepAlive HOT 1
- Invalid port specified HOT 1
- method name is misspelled HOT 1
- Cannot use constructor EtcdClient(string) anymore HOT 1
- Exception while opening a watch on etcd grpc-proxy
- Watch stops listening to changes after server restart HOT 3
- IClusterProvider I need to implement this interface. HOT 2
- Failing to initiate with ambiguous and crashing with this exception 6.0.2-beta
- lock error HOT 2
- missing Election request HOT 1
- Switch to license expression
- new EtcdClient Expected,Please give more Example to new player HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-etcd.