elasticsearch-net-aws icon indicating copy to clipboard operation
elasticsearch-net-aws copied to clipboard

Authorization Header not passed in Request

Open ajvs opened this issue 4 years ago • 0 comments

I'm trying to use v7.1.0 with Elasticsearch.net v7.7 and Nest v7.14.1. After upgrading from v6.0, I am now getting 403 response from my AWS Elasticsearch endpoint. I found out that with the latest version the Authorization Header is not passed to the request.

Please see sample code below for creating the ElasticClient.

var httpConnection = new AwsHttpConnection(new BasicAWSCredentials(
                    AWSAccessKey,
                    AWSSecretKey
                ), Amazon.RegionEndpoint.USEast1);
                
                ConnectionSettings settings = new ConnectionSettings(pool, httpConnection);

               ElasticClient client = new ElasticClient(settings);

ajvs avatar Aug 31 '21 13:08 ajvs