test: update operator-user ACL e2e for the config|get grant - #355
Conversation
valkey-io#341 granted the _operator user +config|get for auditability, but the denied-commands e2e still lists CONFIG GET among the commands expected to return NOPERM - the command now succeeds, the NOPERM count comes up one short, and the suite fails on main. Move CONFIG GET to the allowed-commands check and replace the denied slot with FLUSHALL, which no grant covers (+config|set is also granted, so neither CONFIG subcommand belongs in the denied list). Signed-off-by: Matan David <matan.david@eon.io>
|
Warning Review limit reached
Next review available in: 9 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
i already opened PR #351 |
| // CONFIG GET is intentionally absent: the _operator user is | ||
| // granted +config|get for auditability (#341), covered by the | ||
| // allowed-commands check above (+config|set is granted too, | ||
| // so neither CONFIG subcommand belongs here). |
There was a problem hiding this comment.
I would remove this comment, I don't see why we would specifically call out CONFIG GET and not any of the other commands in this list.
|
I merged #351 instead as it didn't contain the comment. Thanks for raising this! |
Summary
Main's e2e suite is currently red: the run for #341's merge commit fails in
verifying denied commands fail for operator user:#341 granted the
_operatoruser+config|getfor auditability, but the denied-commands e2e still expectsCONFIG GET *to return NOPERM. Every PR branch inherits the failure (hit it on #333).Changes
CONFIG GET maxmemoryadded to the allowed-commands check, covering the new grant positively.FLUSHALL, which no grant covers.CONFIG SETdeliberately not used:+config|setis also granted, so neither CONFIG subcommand belongs in the denied list.