bcuff / elasticsearch-net-aws

Add-on to Elasticsearch.Net & NEST for using AWS's elasticsearch service.
Apache License 2.0
72 stars 27 forks source link

feat(signing): use new signing #67

Closed bcuff closed 2 years ago

bcuff commented 3 years ago

Use new signing technique that allows for all http headers to be accounted for correctly. This may fix signing when http compression is turned on.

zhuvaka commented 2 years ago

This new signing technique seems to be working fine. I tested it with AWS elastic cluster of version 7.9 Iit works fine for both open and private security settings. Here is snippet of code I have

var httpConnection = new AwsHttpConnection();
            var connectionPool = new SingleNodeConnectionPool(new Uri(nodeUrl));
            var settings = new ConnectionSettings(connectionPool, httpConnection)
                .DefaultIndex(indexName)
                .EnableHttpCompression()
                .ThrowExceptions();

            var client = new ElasticClient<T>(settings);

Looking forward to see updated nuget package @bcuff

bcuff commented 2 years ago

@zhuvaka published in 7.2.0