You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NOAUTH Authentication required when REDIS_URL is set with password #442
Scenario
Users might want to protect their connection to Redis by setting the --requirepass option in Redis. With this option, users will need to use the ?password= parameter/option when using any client to connect to Redis instance.
Expected behavior
When user sets REDIS_URL to something like redis://redis:6379?password=SOMEPASSWORDHERE, the password gets propagated to the Redis client as one of the options.
Current behavior
When I set the REDIS_URL with a ?password= parameter, this parameter doesn't get taken into account because current implementation doesn't support Redis options, i.e. current implementation seems to only be taking the URL and nothing else. Instead, I get the NOAUTH Authentication required. exception (see logs below).
The logs:
[ioredis] Unhandled error event: ReplyError: NOAUTH Authentication required.
at parseError (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:302:14)
ReplyError: NOAUTH Authentication required.
at parseError (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:302:14) {
command: { name: 'info', args: [] }
}
ReplyError: NOAUTH Authentication required.
at parseError (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:302:14) {
command: { name: 'info', args: [] }
}
ReplyError: NOAUTH Authentication required.
at parseError (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/app/node_modules/.pnpm/[email protected]/node_modules/redis-parser/lib/parser.js:302:14) {
command: { name: 'info', args: [] }
Activity