Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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