PragmaTwice opened a new pull request, #3139:
URL: https://github.com/apache/kvrocks/pull/3139

   Accessing undeclared keys in lua scripting may lead to unexpected behavior 
in the current design of kvrocks (also in redis, refer to 
https://redis.io/docs/latest/commands/eval/), so in this PR we add a new option 
`lua-strict-key-accessing` to prevent users to access undeclared keys in lua, 
e.g.
   
   ```
   EVAL "return redis.call('set', 'a', 1)" // ERROR!
   
   EVAL "return redis.call('set', KEYS[1], 1)" 1 a // ok
   ```
   
   This check is performed in both lua scripting and lua functions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to