diff --git a/kong/plugins/acme/schema.lua b/kong/plugins/acme/schema.lua index a8cbd03fd58..276ec19317f 100644 --- a/kong/plugins/acme/schema.lua +++ b/kong/plugins/acme/schema.lua @@ -41,6 +41,7 @@ local KONG_STORAGE_SCHEMA = { local LEGACY_SCHEMA_TRANSLATIONS = { { auth = { type = "string", + len_min = 0, func = function(value) deprecation("acme: config.storage_config.redis.auth is deprecated, please use config.storage_config.redis.password instead", { after = "4.0", }) @@ -57,6 +58,7 @@ local LEGACY_SCHEMA_TRANSLATIONS = { }}, { namespace = { type = "string", + len_min = 0, func = function(value) deprecation("acme: config.storage_config.redis.namespace is deprecated, please use config.storage_config.redis.extra_options.namespace instead", { after = "4.0", }) diff --git a/kong/plugins/rate-limiting/schema.lua b/kong/plugins/rate-limiting/schema.lua index 261f68728f8..d871017ef98 100644 --- a/kong/plugins/rate-limiting/schema.lua +++ b/kong/plugins/rate-limiting/schema.lua @@ -119,6 +119,7 @@ return { } }, { redis_password = { type = "string", + len_min = 0, func = function(value) deprecation("rate-limiting: config.redis_password is deprecated, please use config.redis.password instead", { after = "4.0", }) diff --git a/kong/plugins/response-ratelimiting/schema.lua b/kong/plugins/response-ratelimiting/schema.lua index 78bc8978bb8..a6e40163b6c 100644 --- a/kong/plugins/response-ratelimiting/schema.lua +++ b/kong/plugins/response-ratelimiting/schema.lua @@ -158,6 +158,7 @@ return { } }, { redis_password = { type = "string", + len_min = 0, func = function(value) deprecation("response-ratelimiting: config.redis_password is deprecated, please use config.redis.password instead", { after = "4.0", })