Kelvin Mwinuka
4bc1f44e1d
Added Apache 2.0 license header to all go files in src folder
2024-03-24 18:30:17 +08:00
Kelvin Mwinuka
5bb2bd194a
Implemented tests for ACL SETUSER command handler
2024-03-23 15:56:46 +08:00
Kelvin Mwinuka
018aea7785
Initialise default IncludedCategories to allCategories("*").
...
Implemented test for ACL USERS command.
2024-03-21 15:57:16 +08:00
Kelvin Mwinuka
9191d16762
Implemented test for AUTH command handler
2024-03-21 14:32:20 +08:00
Kelvin Clement Mwinuka
6566bb41c4
Removed all usages of custion utils.Filter function in favour of built-in slices DeleteFunc. Updated utils.ReadMessage to read with 8192 sized chunks to reduce the risk of running into a blocking read call when the end of the input is reached.
2024-02-28 06:34:11 +08:00
Kelvin Clement Mwinuka
1c00706f88
Updated module name to echovault
2024-01-24 22:32:05 +08:00
Kelvin Clement Mwinuka
78aa9a82c6
Renamed memebrlist_layer directory to memberlist.
...
Renamed raft_layer directory to raft.
Created snapshot and aof packages to handle snapshots in standalone mode and aof package to handle append-only function.
Created server package that will contain the server logic.
2024-01-21 15:03:36 +08:00
Kelvin Clement Mwinuka
c82560294d
Refactored memberlist and raft layers into their own packages
2024-01-10 02:37:48 +03:00
Kelvin Clement Mwinuka
a3c7298b4c
Removed IncludedKeys property on user. Keys that are included in both read and write keys will be considered RW
2024-01-06 22:48:38 +03:00
Kelvin Clement Mwinuka
db344c9469
Reset NoKeys when keys are added
2024-01-06 21:29:53 +03:00
Kelvin Clement Mwinuka
5668b759e5
Pre-compile globs for matching during authorization in acl
2024-01-06 20:58:26 +03:00
Kelvin Clement Mwinuka
86fcfad007
Replaces utils.Contains with slices.Contains in modules/acl/user.go
2024-01-06 18:44:03 +03:00
Kelvin Clement Mwinuka
a11a5b4709
Moved CreateUser function int into user.go
2023-12-22 16:17:29 +03:00
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
cec1366f3e
Added conditions to normalising user
2023-12-19 08:03:42 +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