如何从命令行安全地连接到Heroku托管的Redis? [英] How can I securely connect to Heroku-hosted Redis from the command line?

查看:106
本文介绍了如何从命令行安全地连接到Heroku托管的Redis?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对此有一个较旧的问题,但没有答案:

There's an older question about this, but no answers: How to securely connect to Heroku Redis via the command line?

人们如何远程连接到Redis?只是在运行heroku redis:cli时忽略安全警告?

How are people connecting to Redis remotely? Just ignoring the security warning when running heroku redis:cli?

警告:不安全的动作.所有数据(包括Redis密码)将 不被加密.

WARNING: Insecure action. All data, including the Redis password, will not be encrypted.

还是仅仅是不这样做"?较旧文章的链接文章提到redis-cli连接是不安全的,但仅讨论了如何颠覆警告.

Or is it simply "Don't do that"? The article linked from the older post mentions that redis-cli connections are insecure, but only discusses how to subvert the warning.

我很惊讶没有找到更多关于此的讨论.

I was surprised not to find more discussion about this.

推荐答案

我相信这是因为您正在使用Heroku Redis的hobby-dev层,该层似乎不支持SSL.根据Heroku的说法:

I believe this is because you're using the hobby-dev tier of Heroku Redis which seems not to support SSL. According to Heroku here:

https://devcenter.heroku.com/articles/securing-heroku-redis

用于Heroku Redis的SSL仅在生产层计划中可用.业余开发计划旨在用于测试和暂存环境,而不是生产环境.

SSL for Heroku Redis is only available on production tier plans. The hobby-dev plan is meant for testing and staging environments, not production.

如果您升级高级计划或更高级别的计划,则不会出现此问题.

If you upgrade a premium or higher plan you shouldn't have this issue.

这篇关于如何从命令行安全地连接到Heroku托管的Redis?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆