- Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
I have upgraded from version 4 to 5.0.1 and cannot pass a empty password to my cache configuration anymore :
"cache": { "name": "rate-limit", "provider": { "constructor": "@hapi/catbox-redis", "options": { "partition": "rate-limit", "host": {"$param": "redis.host"}, "port": {"$param": "redis.port"}, "password": {"$param": "redis.port"}, } } } In the example above I use the confidence module to get the strings for host port and password replaced. When in dev, my local redis has no password and so the configuration results in an empty string. But catbox-redis has a joi validation schema with password set to Joi.string()
Would be good to have Joi.string().allow("")
Metadata
Metadata
Assignees
Labels
bugBug or defectBug or defect