-
Notifications
You must be signed in to change notification settings - Fork 569
MOD-10748: Fix ACLUserMayAccessIndex #6651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6651 +/- ##
==========================================
- Coverage 87.48% 87.45% -0.03%
==========================================
Files 282 282
Lines 44844 44840 -4
Branches 7747 7751 +4
==========================================
- Hits 39231 39217 -14
- Misses 5495 5503 +8
- Partials 118 120 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Reproduced by sending a write command on Enterprise on an existing index: @oshadmi This will be tested once we run our flow-tests on RE, something that is long due and planned for the short term AFAIK. For now tested manually. |
* Allow access in ACLUserMayAccessIndex when no user is associated * Touchup --------- Co-authored-by: Raz Monsonego <[email protected]> (cherry picked from commit 3ec7115)
|
Successfully created backport PR for |
MOD-10748: Fix ACLUserMayAccessIndex (#6651) * Allow access in ACLUserMayAccessIndex when no user is associated * Touchup --------- (cherry picked from commit 3ec7115) Co-authored-by: nafraf <[email protected]> Co-authored-by: Raz Monsonego <[email protected]>
Describe the changes in the pull request
A clear and concise description of what the PR is solving, including:
In Redis, the "master" client (such as replication) may not have an associated user, and
RedisModule_GetCurrentUserName()will return NULL in such cases.Redisearch was not validating the previous case.
Allow access in ACLUserMayAccessIndex when no user is associated
Similar approach was used by RedisTimeSeries in CheckKeyIsAllowedByAcls
Mark if applicable