Skip to content

Fix database ACL check for alldbs commands#3215

Merged
zuiderkwast merged 1 commit intovalkey-io:unstablefrom
dvkashapov:fix-alldbs-check
Feb 16, 2026
Merged

Fix database ACL check for alldbs commands#3215
zuiderkwast merged 1 commit intovalkey-io:unstablefrom
dvkashapov:fix-alldbs-check

Conversation

@dvkashapov
Copy link
Member

@dvkashapov dvkashapov commented Feb 16, 2026

At one point in development there was assumption that intset of database IDs would have IDs only in [0, server.dbnum-1] range, but here we decided to change upper bound to INT32_MAX for ACL compatibility reasons between nodes.
Because of that change, assumption is not true anymore and we should explicitly check each database list to contain access to full [0, server.dbnum-1] range.
Also added test for that.

@zuiderkwast zuiderkwast merged commit 80bd689 into valkey-io:unstable Feb 16, 2026
24 checks passed
@dvkashapov dvkashapov deleted the fix-alldbs-check branch February 16, 2026 09:29
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (223bfa8) to head (b527ee2).
⚠️ Report is 1 commits behind head on unstable.

Additional details and impacted files
@@       Coverage Diff        @@
##   unstable   #3215   +/-   ##
================================
================================
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

harrylin98 pushed a commit to harrylin98/valkey_forked that referenced this pull request Feb 19, 2026
At one point in development there was assumption that intset of database
IDs would have IDs only in `[0, server.dbnum-1]` range, but
[here](valkey-io#2309 (comment))
we decided to change upper bound to `INT32_MAX` for ACL compatibility
reasons between nodes.
Because of that change, assumption is not true anymore and we should
explicitly check each database list to contain access to full `[0,
server.dbnum-1]` range.
Also added test for that.

Signed-off-by: Daniil Kashapov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants