chore: add acl categories to all commands (#1711)

1. Add acl categories to each command
2. Extend `facade::CommandId` to include acl category
3. Add dragonfly extensions to acl categories for modules like search, json etc (since modules in redis do not have acl categories by default but in dragonfly these are not implemented as modules)
This commit is contained in:
Kostas Kyrimis 2023-08-20 13:27:14 +03:00 committed by GitHub
parent 98c6aac4e7
commit cfc04cf952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 709 additions and 355 deletions

View file

@ -4,6 +4,8 @@
#include "server/test_utils.h"
#include "server/acl/acl_commands_def.h"
extern "C" {
#include "redis/zmalloc.h"
}
@ -67,7 +69,7 @@ void TestConnection::SendPubMessageAsync(PubMessage pmsg) {
}
void TransactionSuspension::Start() {
CommandId cid{"TEST", CO::WRITE | CO::GLOBAL_TRANS, -1, 0, 0, 0};
CommandId cid{"TEST", CO::WRITE | CO::GLOBAL_TRANS, -1, 0, 0, 0, acl::NONE};
transaction_ = new dfly::Transaction{&cid};