mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 13:29:12 -05:00
df0d1a2134
For security reasons, scoping access to a redis server via ACL rules is a good practice. Some parts of the codebase handles prefix like cache[^1] and session[^2], but the queue module doesn't. This patch adds this missing functionality to the queue module. Note about relevant test: I tried to keep the PR as small as possible (and reasonable), and not change how the test runs. Updated the existing test to use the same redis address and basically duplicated the test with the extra flag. It does NOT test if the keys are correct, it ensures only it works as expected. To make assertions about the keys, the whole test has to be updated as the general wrapper doesn't allow the main test to check anything provider (redis) specific property. That's not something I wanted to take on now. [^1]: |
||
---|---|---|
.. | ||
lqinternal | ||
backoff.go | ||
base.go | ||
base_channel.go | ||
base_channel_test.go | ||
base_dummy.go | ||
base_levelqueue.go | ||
base_levelqueue_common.go | ||
base_levelqueue_test.go | ||
base_levelqueue_unique.go | ||
base_redis.go | ||
base_redis_test.go | ||
base_test.go | ||
config.go | ||
manager.go | ||
manager_test.go | ||
queue.go | ||
testhelper.go | ||
workergroup.go | ||
workerqueue.go | ||
workerqueue_test.go |