summaryrefslogtreecommitdiff
path: root/src/acl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix command help for unexpected options (#7476)WuYunlong2020-07-151-1/+1
|
* Fix handling of special chars in ACL LOAD.antirez2020-05-291-4/+8
| | | | | | | | | | | Now it is also possible for ACL SETUSER to accept empty strings as valid operations (doing nothing), so for instance ACL SETUSER myuser "" Will have just the effect of creating a user in the default state. This should fix #7329.
* fix clear USER_FLAG_ALLCOMMANDS flag in aclhujie2020-05-191-4/+5
| | | | | | | | in ACLSetUserCommandBit, when the command bit overflows, no operation is performed, so no need clear the USER_FLAG_ALLCOMMANDS flag. in ACLSetUser, when adding subcommand, we don't need to call ACLGetCommandID ahead since subcommand may be empty.
* Converge hash validation for adding and removingMadelyn Olson2020-05-141-14/+21
|
* ACL: re-enable command execution of disabled users.antirez2020-04-231-4/+0
| | | | | | | After all I changed idea again: enabled/disabled should have a more clear meaning, and it only means: you can't authenticate with such user with new connections, however old connections continue to work as expected.
* ACL GENPASS: take number of bits as argument.antirez2020-04-231-6/+21
|
* ACL GENPASS: emit 256 bits instead of 128.antirez2020-04-231-1/+1
|
* ACL: deny commands execution of disabled users.antirez2020-04-221-0/+4
|
* Don't allow empty spaces in ACL usernames.antirez2020-04-151-8/+36
| | | | Fixes issue #6418.
* Don't allow empty spaces in ACL key patterns.antirez2020-04-151-1/+12
| | | | Fixes issue #6418.
* fix spelling in acl.chwware2020-04-141-2/+2
|
* Fix ACL HELP table missing comma.antirez2020-04-081-12/+12
|
* ACL: Make Redis 6 more backward compatible with requirepass.antirez2020-03-161-10/+1
| | | | Note that this as a side effect fixes Sentinel "requirepass" mode.
* Avoid compiler warningsShooterIT2020-02-291-0/+1
|
* Merge branch 'unstable' of github.com:/antirez/redis into unstableantirez2020-02-061-0/+2
|\
| * add SAVE subcommand to ACL HELP and top commentOran Agra2020-02-061-0/+2
| |
* | ACL LOG: make max log entries configurable.acl-logantirez2020-02-041-0/+6
| |
* | ACL LOG: log failed auth attempts.antirez2020-02-041-8/+29
| |
* | ACL LOG: implement LOG RESET.antirez2020-01-291-2/+6
| |
* | ACL LOG: group similar entries in a given time delta.antirez2020-01-291-3/+58
| |
* | ACL LOG: actually emit entries.antirez2020-01-281-4/+30
| |
* | ACL LOG: implement ACL LOG subcommadn skeleton.antirez2020-01-281-0/+37
| |
* | ACL LOG: data structures and initial functions.antirez2020-01-271-1/+50
|/
* typo fix in acl.chwware2020-01-071-2/+2
|
* Add module APIs for custom authenticationMadelyn Olson2019-12-171-0/+1
|
* ACLs: change hashed passwords opcode to also remove them.hashed-pass-opcodeantirez2019-09-301-10/+22
| | | | Related to PR #6405
* Allowed passing in of password hash and fixed config rewriteMadelyn Olson2019-09-301-5/+38
|
* ACL: store hashed passwords in memory.antirez2019-09-121-7/+17
| | | | | | | | | Note that this breaks API compatibility with Redis < 6: CONFIG GET requirepass Will no longer return a cleartext password as well, but the SHA256 hash of the password set.
* ACL: SHA256 based password hashing function implemented.antirez2019-09-121-0/+20
|
* Fixed some spelling issues in ACL codepath including user facing errorMadelyn Olson2019-06-071-11/+11
|
* ACL: Fix memory leak in ACLResetSubcommandsForCommand().antirez2019-04-081-0/+2
| | | | This commit fixes bug reported at #5998. Thanks to @tomcat1102.
* ACL: GENPASS subcommand.antirez2019-03-051-0/+7
|
* Make PR #5872 more compatible with Redis coding style.antirez2019-02-271-7/+5
|
* Merge pull request #5872 from madolson/dev-unstable-acl-setuser-fixSalvatore Sanfilippo2019-02-271-3/+18
|\ | | | | Updated acl setuser to be all or nothing
| * Updated acl setuser to be all or nothingMadelyn Olson2019-02-261-3/+18
| |
* | ACL: authCommand() refactored into ACLAuthenticateUser().antirez2019-02-251-3/+17
| |
* | ACL: move AUTH implementation in acl.c.antirez2019-02-251-0/+46
|/
* ACL: fix ACLSaveToFile() return value.antirez2019-02-221-1/+1
|
* ACL: less error prone error handling in ACLSaveToFile().antirez2019-02-221-15/+14
|
* Merge pull request #5858 from madolson/dev-unstable-acl-deluserSalvatore Sanfilippo2019-02-221-2/+6
|\ | | | | Making deleting users better defined and update documentation
| * Making deleting users better defined and update documentationMadelyn Olson2019-02-211-2/+6
| |
* | ACL: remove leak in ACLLoadFromFile().antirez2019-02-211-0/+1
| |
* | ACL: implement ACL SAVE.antirez2019-02-211-10/+18
| |
* | ACL: ACLSaveToFile() implemented.antirez2019-02-211-0/+66
| |
* | ACL: add LOAD subcommand to ACL HELP.antirez2019-02-211-0/+2
|/
* ACL: show categories in COMMAND replyzhaozhao.zz2019-02-141-0/+12
| | | | | | Adding another new filed categories at the end of command reply, it's easy to read and distinguish flags and categories, also compatible with old format.
* ACL: fix cat type format warningzhaozhao.zz2019-02-131-1/+1
|
* ACL: CAT subcommand implemented.antirez2019-02-121-0/+26
|
* ACL: return error when removing a non existing password.antirez2019-02-111-1/+10
| | | | | | Otherwise it's very simple for an human mistake to think a password is removed because of a typo in the ACL SETUSER myuser <somepass command line.
* ACL: ACLFreeUserAndKillClients(): free user later.antirez2019-02-111-1/+1
| | | | | | | | | | | | | Soon or later we may have code in freeClient() that may have to deal with ACLs. Imagine for instance the command proposed multiple times (not sure if this will ever be accepted but still...): ONCLOSE DEL mykey Accumulating commands to run when a client is disconnected. Now the function is compatible with such use cases. Related to #5829.