Skip to content

Allowing empty password #102

@hgrubst

Description

@hgrubst

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 defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions