fix(acl/admin_port): skip acl validation on admin port (#1997)

* skip all acl related functionality on admin port
This commit is contained in:
Kostas Kyrimis 2023-10-10 08:28:07 +03:00 committed by GitHub
parent 6e76f8e6cc
commit cbba6f4e11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 54 additions and 18 deletions

View file

@ -13,6 +13,10 @@ namespace dfly::acl {
[[nodiscard]] bool IsUserAllowedToInvokeCommand(const ConnectionContext& cntx,
const facade::CommandId& id) {
if (cntx.skip_acl_validation) {
return true;
}
const bool is_authed =
IsUserAllowedToInvokeCommandGeneric(cntx.acl_categories, cntx.acl_commands, id);