简体   繁体   English

从 Heroku 访问 AWS VPC elasticsearch 节点

[英]Access AWS VPC elasticsearch nodes from Heroku

I have a VPC for elasticsearch nodes in AWS behind an internal load balancer.我在内部负载均衡器后面的 AWS 中有一个用于弹性搜索节点的 VPC。 How can I access the nodes from a Heroku Ruby application.如何从 Heroku Ruby 应用程序访问节点。

I can't have the ES nodes as public facing.我不能让 ES 节点面向公众。

Should I instead use a proxy to secure Elasticsearch and reach the proxy from the ruby app with some URL key?我应该使用代理来保护 Elasticsearch 并使用一些 URL 密钥从 ruby​​ 应用程序访问代理吗? Is there a simpler way?有没有更简单的方法?

You probably want to look at a proxy Authentication mechanism.您可能想查看代理身份验证机制。 I personally would recommend using something like Squid我个人建议使用像Squid这样的东西

You can read more about its Authentication support here:您可以在此处阅读有关其身份验证支持的更多信息:

http://wiki.squid-cache.org/Features/Authentication http://wiki.squid-cache.org/Features/Authentication

This is a another post that talks about a similar workflow to what you have:这是另一篇文章,讨论与您拥有的工作流程类似的工作流程:

HTTP Spec: Proxy-Authorization and Authorization headers HTTP 规范:代理授权和授权标头

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM