Redis user:password issues?
-
I’m sharing a single Redis instance amongst a few sites and trying to lock down each site to have it’s own ACLs within Redis.
But similar to the previous issue here – I can’t seem to get Redis to work using the syntax type of redis://user:pass@localhost:6379.
I can confirm the credentials work via redis-cli and there are no firewall issues. I also have the same details working for object cache on other plugins, albeit via different methods.
On reading the documentation for the DSN configuration – it seems that maybe user+password syntax is limited to a method (2nd below) that doesn’t seem to be supported within the Crowdsec WP plugin?:
A?Data Source Name (DSN)?for this adapter must use either one of the following formats.?
redis[s]://[pass@][ip|host|socket[:port]][/db-index]
redis[s]:[[user]:pass@]?[ip|host|socket[:port]][¶ms]
Values for placeholders
[user]
,[:port]
,[/db-index]
and[¶ms]
are optional.Oddly enough the redis default user will work if a password is assigned – ie. default:pass@localhost or pass@localhost – but this defeats the purpose of what I would like to achieve by having seperate redis acls/users per site to create some isolation.
Hope you can help, thanks in advance.
- You must be logged in to reply to this topic.