ACL-DRYRUN(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’… ACL-DRYRUN (from the 3valkey manual, bestie)

okay so this is the acl-dryrun page from the Valkey Command Manual, section 3valkey β€” and no cap, it's lowkey one of the most useful little guys in the whole ACL family. let's get into it 🫢


✨ NAME ✨

acl-dryrun β€” simulates the execution of a command by a user, without actually executing the command. it's giving dress rehearsal, not opening night 🎭


✨ SYNOPSIS ✨

ACL DRYRUN username command arg [arg...]

✨ DESCRIPTION ✨

So basically: you take a given username and a given command, and you ask Valkey to pretend that user ran it. That's it. That's the whole vibe check. πŸ¦‹

Why is this iconic? Because it lets you test the permissions of a given user without having to enable the user and without causing the side effects of actually running the command. no chaos, no consequences, just answers. main character energy fr πŸ’…


✨ REPLY ✨

You get any one of these:


✨ COMPLEXITY ✨

O(1). instant. zero notes. ⚑


✨ ACL CATEGORIES ✨

@admin @dangerous @slow

yes bestie, @dangerous AND @slow β€” she's flagged, be aware πŸ‘€

✨ HISTORY ✨

  • Available since: 7.0.0 πŸŽ‚

✨ EXAMPLES ✨

127.0.0.1:6379> ACL SETUSER VIRGINIA +SET ~*
"OK"
127.0.0.1:6379> ACL DRYRUN VIRGINIA SET foo bar
"OK"
127.0.0.1:6379> ACL DRYRUN VIRGINIA GET foo
"User VIRGINIA has no permissions to run the 'get' command"

see how VIRGINIA got +SET and nothing else? so SET said "OK" and GET said absolutely not. queen behavior honestly πŸ‘‘βœ¨


✨ SEE ALSO ✨

the whole extended friend group, no one left out 🫢


and that's the page bestie!! 🌈✨ this one's from version 9.0.0, dated 2025-10-21 β€” go test your users' permissions safely, you absolute icon, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from