Commit Graph

22 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
53a6a59699 Added Merge and Replace methods to ACL user struct to aid user updating upon load and for other potential user cases.
Implemented handler for ACL load command.
2023-12-20 05:21:03 +08:00
Kelvin Clement Mwinuka
30e70e3804 Implemented ACL SAVE command 2023-12-19 12:12:01 +08:00
Kelvin Clement Mwinuka
1d36d2c772 Added resetpass, nocommands, resetkeys and resetchannels directives in ACL DSL 2023-12-19 10:02:17 +08:00
Kelvin Clement Mwinuka
ab86694bc2 Show nopass flag in ACL LIST command 2023-12-19 08:15:05 +08:00
Kelvin Clement Mwinuka
e5291421f4 Created User methods for normalising fields and removing debug print statement in SetUser 2023-12-19 07:26:05 +08:00
Kelvin Clement Mwinuka
5b2a0c1375 Use reference for User instead of copying values in Connection type 2023-12-19 05:21:28 +08:00
Kelvin Clement Mwinuka
f4432a4d0e Pass context to DeleteUser and AuthenticateUser 2023-12-18 05:12:29 +08:00
Kelvin Clement Mwinuka
29b7d808eb Added KeepAlive config in tcp listener.
Implemented delete user functionality from ACL.
2023-12-18 05:07:47 +08:00
Kelvin Clement Mwinuka
501a435157 Removed unused Plugin declarations 2023-12-16 23:38:13 +08:00
Kelvin Clement Mwinuka
1c8b617541 Channel publish command returns OK instead of PUBLISH_OK 2023-12-16 23:26:21 +08:00
Kelvin Clement Mwinuka
5e16a8ff74 Implemented ACL GETUSER command handler 2023-12-16 05:25:46 +08:00
Kelvin Clement Mwinuka
77b21b4522 Implemented handler for ACL LIST command 2023-12-16 03:27:16 +08:00
Kelvin Clement Mwinuka
1f22c59f38 Added GetAllCommands method to server interface. Implemented ACL CAT command 2023-12-15 23:48:38 +08:00
Kelvin Clement Mwinuka
e6a107f78b Moved OK and WRON_ARGS_RESPONSE to utils const file 2023-12-15 20:04:02 +08:00
Kelvin Clement Mwinuka
acb7cd6973 Added command categories in utils/types.go and in each of the current modules and commands 2023-12-15 01:03:39 +08:00
Kelvin Clement Mwinuka
14465732db Implemented ACL USERS command 2023-12-14 23:10:46 +08:00
Kelvin Clement Mwinuka
c3194b0d2d Implemented connection authentication and ACL WHOAMI command 2023-12-14 23:01:32 +08:00
Kelvin Clement Mwinuka
39bf074e33 Call ACL Authorize for command before processing. Call ACL Authenticate when auth command is triggered. 2023-12-14 18:43:56 +08:00
Kelvin Clement Mwinuka
42c145ef3c Added KeyExtractionFunc for all commands and sub commands to extract keys for ACL authorization.
Deleted genpass command.
2023-12-13 22:09:14 +08:00
Kelvin Clement Mwinuka
5f39a64a8d Refactored command modules to always accept connection parameter in order to streamline command processing.
Updated server command list and enabled subcommands and granular cluster sync for individual subcommands.
Renamed "set" packate to "etc" as "set" will be used for the set data type in the future.
2023-12-13 19:34:52 +08:00
Kelvin Clement Mwinuka
e7c7cf1553 Deleted plugin folder.
Removed nested plugin in command list for modules.
Moved PubSub feature from plugin folder to modules folder.
2023-12-13 01:56:55 +08:00
Kelvin Clement Mwinuka
acc3e1961b Moved get, list, ping, set, and string plugins into internal modules folder. This should simplify future testing efforts. 2023-12-13 00:37:21 +08:00