Fix: Loading ACL file was resetting requirepass config.#6835
Fix: Loading ACL file was resetting requirepass config.#6835oranagra wants to merge 1 commit intoredis:unstablefrom oranagra:acl_reset_requirepass
Conversation
Unlike loading users from lines embedded in the config file.
|
@antirez if i understand the code correctly, the purpose of creating the default user again in that code path was to re-create and re-register the user in the rax tree, but you did not intend to resets it's properties, right? |
|
i'm having second thoughts about keeping all the flags from i.e. in case the previous ACL file disabled the default user, and the new ACL file doesn't do anything with the default user, i suppose it should have a default configuration (i.e. be enabled). and if i keep the flags i ruin that. on the other hand, maybe you intended that as soon as someone uses an ACL file, he should avoid using |
|
Hi Oran, "requirepass" is only for compatibility with the past. If users mix the two, ACL LOAD should indeed remove the default user and load what is specified by the ACL file, without preserving anything I believe, so the old code looks reasonable to me. |
|
In other terms, requirepass is a alias for ACL SETUSER default >"somepassword", or something like that. |
|
ok. closing. thanks. |
Unlike loading users from lines embedded in the config file.