AUTH(3valkey)
π AUTH π
okay bestie, welcome to AUTH(3valkey) β the Valkey command manual page that's literally just about proving you are who you say you are. gatekeeping but make it secure π
β¨ NAME β¨
auth β authenticates the connection. that's it. that's the whole vibe. π«Ά
πΈ SYNOPSIS πΈ
AUTH [username] password
π¦ DESCRIPTION π¦
okay so. AUTH authenticates the current connection using the valkey-acl(7) Valkey ACL system. like, it's the bouncer at the door of the club and your password is the fit check. π
The standard way to AUTH is the two-argument form:
AUTH <username> <password>
This authenticates the current connection with one of the users defined in the ACL list (peep valkey-acl-setuser(7) ACL SETUSER and the official valkey-acl(7) ACL guide for more info, iykyk).
When the single argument form of the command is used, where only the password is specified, it is assumed that the implicit username is βdefaultβ. lowkey convenient.
AUTH <password>
This form authenticates against the βdefaultβ user's password set with requirepass. yes, the default user. the main character. β¨
If the password provided via AUTH matches the password in the configuration file, the server replies with the OK status code and starts accepting commands. slay. Otherwise, an error is returned and the clients needs to try a new password. not me getting rejected π try again bestie.
π Security notice π
Because of the high performance nature of Valkey, it is possible to try a lot of passwords in parallel in very short time, so make sure to generate a strong and very long password so that this attack is infeasible. fr fr, do NOT be out here using password123. π
A good way to generate strong passwords is via the valkey-acl-genpass(7) ACL GENPASS command. use it. it's iconic. π
π REPLY π
valkey-protocol(7) Simple string reply: OK, or an error if the password, or username/password pair, is invalid. so either you're in, or you're not. no in-between, periodt.
β‘ COMPLEXITY β‘
O(N) where N is the number of passwords defined for the user. math girlies rise π§
π ACL CATEGORIES π
@connection @fast
π HISTORY π
- Available since:
1.0.0 - Changed in
6.0.0: Added ACL style (username and password).
so she's been around a minute and then got a glow-up in 6.0.0. growth. π±
π SEE ALSO π
client(3valkey)client-caching(3valkey)client-capa(3valkey)client-getname(3valkey)client-getredir(3valkey)client-help(3valkey)client-id(3valkey)client-import-source(3valkey)client-info(3valkey)client-kill(3valkey)client-list(3valkey)client-no-evict(3valkey)client-no-touch(3valkey)client-pause(3valkey)client-reply(3valkey)client-setinfo(3valkey)client-setname(3valkey)client-tracking(3valkey)client-trackinginfo(3valkey)client-unblock(3valkey)client-unpause(3valkey)echo(3valkey)hello(3valkey)ping(3valkey)quit(3valkey)reset(3valkey)select(3valkey)
okay that's the whole page bestie, go forth and authenticate responsibly π«Ά
and that's a wrap!! this little manual moment is brought to you by version 9.0.0, dated 2025-10-21 β the AUTH(3valkey) era. mwah π stay safe, stay authenticated, stay slay. πβ¨ππ¦πΈπ
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms