-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: fix user ERR NOAUTH Authentication required #2962
Conversation
WalkthroughThe pull request introduces several changes across multiple files, primarily focusing on the addition of a new configuration parameter Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
src/pika_client_conn.cc (1)
555-556
: Consider adjusting log levels for authentication checksThe current implementation uses INFO level for authentication debugging. Consider using DEBUG level for these checks to avoid log spam in production environments.
- LOG(INFO) << "IsAuthed: " << IsAuthed(); - LOG(INFO) << "user_->Flags(): " << user_->Flags(); + LOG(DEBUG) << "IsAuthed: " << IsAuthed(); + LOG(DEBUG) << "user_->Flags(): " << user_->Flags();
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (5)
conf/pika.conf
(1 hunks)include/acl.h
(3 hunks)include/pika_client_conn.h
(3 hunks)src/acl.cc
(1 hunks)src/pika_client_conn.cc
(5 hunks)
✅ Files skipped from review due to trivial changes (2)
- include/acl.h
- src/acl.cc
🔇 Additional comments (3)
include/pika_client_conn.h (1)
87-87
: LGTM: New method for user initialization
The addition of InitUser()
as a public method aligns well with the authentication-related changes and follows the class's responsibility of managing client connections.
src/pika_client_conn.cc (1)
543-551
: LGTM: Clear and correct user initialization logic
The implementation properly:
- Checks blacklist configuration to determine user type
- Sets appropriate user based on blacklist presence
- Correctly initializes authentication state based on user flags
conf/pika.conf (1)
694-694
: Verify relevance of new configuration parameter
The addition of best-delete-min-ratio
appears unrelated to the PR's objective of fixing authentication issues. Please clarify the relationship between this configuration parameter and the authentication fix.
* fix authrequired bug * init pika.conf * fix InitUser * fix InitUser * fix no userblacklist * fix acl * delete annotation * fix bug
* fix authrequired bug * init pika.conf * fix InitUser * fix InitUser * fix no userblacklist * fix acl * delete annotation * fix bug
solve has requirepass & blacklist
Summary by CodeRabbit
New Features
best-delete-min-ratio
for improved compaction strategy.InitUser
method to enhance user initialization in connection contexts.Bug Fixes
AuthRequired
method for better authentication insights.Style