Skip to content

Commit

Permalink
fix(*) remove blacklist/whitelist from schema (#8560)
Browse files Browse the repository at this point in the history
Remove deprecated blacklists / whitelist etc. config fields from bot-detection, ip-restriction and ACL
  • Loading branch information
mayocream authored Mar 22, 2022
1 parent 34e8f38 commit f9e6536
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 51 deletions.
17 changes: 0 additions & 17 deletions kong/plugins/acl/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ return {
{ deny = { type = "array", elements = { type = "string" }, }, },
{ hide_groups_header = { type = "boolean", required = true, default = false }, },
},
shorthand_fields = {
-- deprecated forms, to be removed in Kong 3.0
{ blacklist = {
type = "array",
elements = { type = "string", is_regex = true },
func = function(value)
return { deny = value }
end,
}, },
{ whitelist = {
type = "array",
elements = { type = "string", is_regex = true },
func = function(value)
return { allow = value }
end,
}, },
},
}
}
},
Expand Down
17 changes: 0 additions & 17 deletions kong/plugins/bot-detection/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,6 @@ return {
default = {},
}, },
},
shorthand_fields = {
-- deprecated forms, to be removed in Kong 3.0
{ blacklist = {
type = "array",
elements = { type = "string", is_regex = true },
func = function(value)
return { deny = value }
end,
}, },
{ whitelist = {
type = "array",
elements = { type = "string", is_regex = true },
func = function(value)
return { allow = value }
end,
}, },
},
}, },
},
}
17 changes: 0 additions & 17 deletions kong/plugins/ip-restriction/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ return {
{ status = { type = "number", required = false } },
{ message = { type = "string", required = false } },
},
shorthand_fields = {
-- deprecated forms, to be removed in Kong 3.0
{ blacklist = {
type = "array",
elements = { type = "string", is_regex = true },
func = function(value)
return { deny = value }
end,
}, },
{ whitelist = {
type = "array",
elements = { type = "string", is_regex = true },
func = function(value)
return { allow = value }
end,
}, },
},
},
},
},
Expand Down

0 comments on commit f9e6536

Please sign in to comment.