Skip to content
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

Authentication: Fix CME immediate update_connection_password to use username #3330

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

liorsve
Copy link
Contributor

@liorsve liorsve commented Mar 5, 2025

Issue link

This Pull Request is linked to issue: #3289

This PR fixes the update connection password to add the username as arg in update_connection_password(immediateAuth = True) (i.e. send "AUTH [username] [password]") in case username was configured in ServerCredentials during client creation.
Currently, only "AUTH [password]" is sent.

NOTE - currently, the Node tests (also those that were added when update_connection_password was implemented, that are also supposed to check the CMD case) are effectively running on CME only. This needs to change in a follow-up PR that would fix update_connection_password for CMD.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

Signed-off-by: Lior Sventitzky <[email protected]>
Signed-off-by: Lior Sventitzky <[email protected]>
Signed-off-by: Lior Sventitzky <[email protected]>
Signed-off-by: Lior Sventitzky <[email protected]>
Signed-off-by: Lior Sventitzky <[email protected]>
Signed-off-by: Lior Sventitzky <[email protected]>
@liorsve liorsve requested a review from a team as a code owner March 5, 2025 11:57
Signed-off-by: Lior Sventitzky <[email protected]>
@liorsve liorsve force-pushed the add-username-auth branch from 225ff28 to d19562d Compare March 5, 2025 12:41
@liorsve liorsve added Rust core redis-rs/glide-core matter Core changes Used to label a PR as PR with significant changes that should trigger a full matrix tests. labels Mar 5, 2025
Signed-off-by: Lior Sventitzky <[email protected]>
}
}
ClientWrapper::Standalone(_) => {
//TODO: get username and add it as arg in standalone
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you plan to implement this in the current PR?
If no, create a task

@Yury-Fridlyand Yury-Fridlyand added the node Node.js wrapper label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core changes Used to label a PR as PR with significant changes that should trigger a full matrix tests. node Node.js wrapper Rust core redis-rs/glide-core matter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants