Skip to content

Being able to specify a specific host for Signing the request#64

Open
cladjules wants to merge 1 commit intoTheDeveloper:masterfrom
cladjules:master
Open

Being able to specify a specific host for Signing the request#64
cladjules wants to merge 1 commit intoTheDeveloper:masterfrom
cladjules:master

Conversation

@cladjules
Copy link

When ElasticSearch is below a VPC, there is a way to access it externally using an Nginx proxy as per AWS Documentation (https://docs.amazonaws.cn/en_us/elasticsearch-service/latest/developerguide/es-kibana.html).

If you try to sign the request using the Proxy host, it will fail as it's expecting the original ES Endpoint, I have managed to add a parameter to the ES client in order to specify the host it should be used for the signature.

You can pass an extra parameter to the ES Client:

signatureHost: 'XXXX',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant