mozilla

Redis Connection: NOAUTH Authentication required


#1

Hey all,

I´m trying to connect to a redis service which is secured by authentication.
Pasting the connection string to my configuration and starting the app runs into the following error:

talk_1   | {"name":"talk","version":"4.4.0","revision":"db11dc4928a89b9d3c918394d6dcb4b19e3ec381","hostname":"a16b27bd3ee1","pid":25,"origin":"redis","level":50,"err":{"message":"NOAUTH Authentication required.","name":"ReplyError","stack":"ReplyError: NOAUTH Authentication required.\n    at JavascriptRedisParser.returnError (/usr/src/app/node_modules/ioredis/lib/redis/parser.js:24:25)\n    at JavascriptRedisParser.execute (/usr/src/app/node_modules/redis-parser/lib/parser.js:572:12)\n    at Socket.<anonymous> (/usr/src/app/node_modules/ioredis/lib/redis/event_handler.js:107:22)\n    at emitOne (events.js:116:13)\n    at Socket.emit (events.js:211:7)\n    at addChunk (_stream_readable.js:263:12)\n    at readableAddChunk (_stream_readable.js:250:11)\n    at Socket.Readable.push (_stream_readable.js:208:10)\n    at TCP.onread (net.js:607:20)"},"msg":"cannot connect to redis","time":"2018-05-11T15:38:07.146Z","src":{"file":"/usr/src/app/services/redis.js","line":32,"func":"client.on.err"},"v":0}
talk_1   | Error: Ready check failed: NOAUTH Authentication required.
talk_1   |     at /usr/src/app/node_modules/ioredis/lib/redis/event_handler.js:45:29
talk_1   |     at /usr/src/app/node_modules/ioredis/lib/redis.js:412:14
talk_1   |     at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
talk_1   |     at Promise.errorAdapter [as _rejectionHandler0] (/usr/src/app/node_modules/bluebird/js/release/nodeify.js:35:34)
talk_1   |     at Promise._settlePromise (/usr/src/app/node_modules/bluebird/js/release/promise.js:566:21)
talk_1   |     at Promise._settlePromise0 (/usr/src/app/node_modules/bluebird/js/release/promise.js:614:10)
talk_1   |     at Promise._settlePromises (/usr/src/app/node_modules/bluebird/js/release/promise.js:689:18)
talk_1   |     at Async._drainQueue (/usr/src/app/node_modules/bluebird/js/release/async.js:133:16)
talk_1   |     at Async._drainQueues (/usr/src/app/node_modules/bluebird/js/release/async.js:143:10)
talk_1   |     at Immediate.Async.drainQueues (/usr/src/app/node_modules/bluebird/js/release/async.js:17:14)
talk_1   |     at runCallback (timers.js:794:20)
talk_1   |     at tryOnImmediate (timers.js:752:5)
talk_1   |     at processImmediate [as _immediateCallback] (timers.js:729:5)

Can someone please explain why a noauth connection is required and how I can use auth connection? Running the redis cluster without authentication is obviously in most cases no option.

Best


#2

Managing redis passwords/secrets on Docker is outside of the scope of what our team can provide, but feel free anyone else would like to comment here.


#3

Hey Kim,

thanks for your reply. If using auth for redis is possible, cloud solutions are not possible since they are in general accessible via web, not subnet which could be used with noauth.
May I ask how the setup of Washington looks like? It would be interesting to know how other clients are hosting talk.