问题
There's an older question about this, but no answers: How to securely connect to Heroku Redis via the command line?
How are people connecting to Redis remotely? Just ignoring the security warning when running heroku redis:cli?
WARNING: Insecure action. All data, including the Redis password, will not be encrypted.
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.
回答1:
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
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.
来源:https://stackoverflow.com/questions/41247368/how-can-i-securely-connect-to-heroku-hosted-redis-from-the-command-line