Repository navigation
Prefer modern Redis patterns in core and security guidance - #62
Open
alberttwong wants to merge 10 commits into
Open
alberttwong wants to merge 10 commits into
alberttwong wants to merge 10 commits into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit d3813a9. Configure here.
| ```text | ||
| user default off | ||
| user app_cache on >replace-with-a-strong-password ~cache:* +get +set +del | ||
| ``` |
There was a problem hiding this comment.
ACL file omits operator user
Medium Severity
The new aclfile snippet turns default off and only defines app_cache with get/set/del on cache:*. Redis loads aclfile as the full user set, so an operator created elsewhere is discarded on startup. The instance then has no admin identity for ACL, CONFIG, replication, or recovery.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit d3813a9. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Existing guidance discourages large blocking reads and mentions ACLs, but it does not consistently guide agents toward modern defaults: the primary security example still leads with
requirepass, and Functions and explicit compatibility decisions are not covered together.This change adds capability-aware modern defaults to
redis-core, movesredis-securityexamples to named ACL users with TLS, and regenerates the matching plugin copies. It covers SCAN semantics, Functions deployment, durable Streams queues, atomic command options, and structured document updates. Valid bounded reads, Lists, Pub/Sub, opaque Strings, and explicitly required older-server compatibility remain supported. A project’s modern-only contract must not be silently weakened, and an unknown write outcome must not be replayed.Closes #61.
Validation
npm run validate: passed, 0 errors; 3 advisory warnings in unchanged skills.npm run eval -- --skill redis-core --suite modern-patterns --concurrency 2 --force: four cases, one model (claude-sonnet-5), one repetition per configuration; with skill 100%, without skill 95% (+5 percentage points). Average delta +25 tokens and +0.8 seconds; total cost $3.5997. The framework verdict is neutral. This is focused initial evidence, not a cross-model or statistical claim.npm run eval -- --skill redis-security --suite security --only-model claude-sonnet-5 --only-eval acl-users-over-requirepass --smoke --concurrency 1 --iteration modern-guidance-review: focused ACL case 100% with skill versus 83% without; +103 average tokens, +7 seconds; total cost $0.9056. This does not represent the full security suite.npm run eval:baseline -- --skill redis-core --suite modern-patterns --iteration iteration-1 --include-html. This is its initial baseline, so there is no historical Against Baseline comparison. The committed report includes summary, model table, per-case results, and a screenshot.Note
Low Risk
Documentation and eval artifacts only; security wording changes agent recommendations but does not alter runtime services.
Overview
Adds a Prefer modern patterns in new code section to
redis-core(host and plugin copies), links a newreferences/modern-patterns.mdreference, and tightens data-structure guidance so Lists are scoped to simple queues and Streams cover work queues with acknowledgments/replay.redis-security examples now lead with named ACL users,
aclfile, and TLS;requirepassis framed as an explicit legacy compatibility path. Matching updates land inauth.md.Introduces the
modern-patternseval suite (evals.json, model matrix) plus an initial baseline snapshot (JSON, Markdown, HTML) fromiteration-1so future skill changes can be compared against this accepted behavior.Reviewed by Cursor Bugbot for commit d3813a9. Bugbot is set up for automated code reviews on this repo. Configure here.