Fix ACL category for SELECT, WAIT, ROLE, LASTSAVE, READONLY, READWRITE, ASKING#9208
Fix ACL category for SELECT, WAIT, ROLE, LASTSAVE, READONLY, READWRITE, ASKING#9208oranagra merged 9 commits intoredis:unstablefrom oranagra:select_acl_cat
Conversation
|
@redis/core-team please approve or share your thoughts. |
|
I would also add readonly, readwrite, and asking to @connection (and remove them from @keyspace), since they modify the client as opposed to having anything to do with the keyspace. |
|
i keep wondering if maybe we don't understand correctly what's was the intended meaning of |
|
I also have questions. Why |
|
don't know.. i don't even know why we have these commands... LASTSAVE and ROLE are part of INFO, i guess backwards compatibility from a time redis was half baked. |
|
INFO is also |
|
certainly.. we wanna document them.. just not sure we understand what each of them meant to be.. |
|
Maybe a generated overview of all categories and commands can help: redis/redis-doc#1598 |
|
@redis/core-team i made a few more changes in the command flags and ACL categories (top comment is updated) |
enhanched description of fast, and blocking cagegories. other changes are just newline, parenthesis and indentation.
Co-authored-by: sundb <[email protected]>
Co-authored-by: sundb <[email protected]>
madolson
left a comment
There was a problem hiding this comment.
Minor comments, but generally still LGTM.
Co-authored-by: Madelyn Olson <[email protected]>
|
Why we flag |
|
@soloestoy you're right. not sure what i was thinking.. reverting. |
…E, ASKING (redis#9208) - SELECT and WAIT don't read or write from the keyspace (unlike DEL, EXISTS, EXPIRE, DBSIZE, KEYS, etc). they're more similar to AUTH and HELLO (and maybe PING and COMMAND). they only affect the current connection, not the server state, so they should be `@connection`, not `@keyspace` - ROLE, like LASTSAVE is `@admin` (and `@dangerous` like INFO) - ASKING, READONLY, READWRITE are `@connection` too (not `@keyspace`) - Additionally, i'm now documenting the exact meaning of each ACL category so it's clearer which commands belong where.
SELECT and WAIT don't read or write from the keyspace (unlike DEL, EXISTS, EXPIRE, DBSIZE, KEYS, etc).
they're more similar to AUTH and HELLO (and maybe PING and COMMAND).
they only affect the current connection, not the server state, so they should be
@connection, not@keyspaceROLE, like LASTSAVE is
@admin(and@dangerouslike INFO)ASKING, READONLY, READWRITE are
@connectiontoo (not@keyspace)Additionally, i'm now documenting the exact meaning of each ACL category so it's clearer which commands belong where.